[PHP] Re: a 4 days diary
since there aren't much data you can do something like this: 1 . make db table tableName id INT title VARCHAR(30) Data TEXT timestamp VARCHAR(30) 2. just dump the data you get from the user into a db.. 3. when you are ready to get the data back for view from database you can simply use SQL and ask for the right time and date.. SELECT * FROM myTable WHERE timestamp BETWEN x AND y where x and yy is the timastamp value Pierre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I have to code a 4 days diary for a client, schedule every 30 mn and with a system of rdv accepted by mail. I really don't know how to start to draw a cool diary and to code it correctly to be the most reusable as possible. POO or not? If you have there any examples of this style of coding this is could great or just maybe an idea of how I can start my code to have a good one? Just a good direction and way of coding to not have many surprises... I hope I was clear Thx all Pierre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: thumbnail problems
just turn on the error report on php and look for errors.. and if you use @ in front of any method, take it away.. I think you've got some error on your script that dosent show Ninti Systems [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've searched the archives on this and, while I have turned up some tips, they don't seem to solve my problem. I an building a website for an indigenous organisation where jpg images are uploaded, resized to a standard format, and thumbnails also generated at the same time (so that is two resizes for each image). Most of the time this works OK, but there are a lot of pages where many thumbnails are just blacked out, eg: http://waru.org/arakuwaritja.php?p=63 On some pages, all images are blacked out, eg: http://waru.org/arakuwaritja.php?p=36 whereas on others they're all OK, eg: http://waru.org/arakuwaritja.php?p=43 The people in the field taking and uploading the photos insist that the format, color depth, etc, is not changing from photo to photo, and I can't discern any differences. Yet some work, some don't. I read somewhere that memory limitations could cause this, but still, it only happens sometimes and not others. We are on a crowded shared server I think. I'm use ImageCreateTrueColor() after checking with ImageIsTrueColor(), otherwise just ImageCreate(). The initial resizes almost always work (down from 640x480 to 400x300), with the thumbnails it is looking like a 50% failure rate. Thanks in advance for any assistance. Michael Hall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to built desktop applications.
It's easy... Al you have to do is call the php script like: php4 mydesktopscript.php and use other languages like TCL/TK to have some GUI on your script.. but i would rather learn my self C instead of using php for Desktop app. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I know that is possible to built desktop applications with PHP (applications that run only on desktop and not client applications). How is possible this? Is necessary use the php standard or there is help from other application or particular tool? Can anyone show me how is possible this with example or link to resorces about this? Thanks in advance, Francesco [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Extension problem
It's apache that runs the php script it must some how know that this is a script file.. and the way you tell the apache to run the script is by the extention (.php) since .html is not an serverside script, apache dont nead to run that before sending it. but you can declare that in apache.conf (if you want html files to use php code) :) Enrico Comini [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I use php without problem, but my file is processed by php only if the extension is .php , why ? If I have for example a index.html with ?php at the beginning , this file is not parsed by php and I have to rename in index.php Thanks, Enrico -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php