[PHP] Re: verify file types when uploading to server...
Maybe you want to share with the rest of us, or at least me how you did it? :) /Micke Jas [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Nevermind... =) Jas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am wondering if any one has a good idea on how to do checking based on a files extension, what I am trying to accomplish is to be able to upload files to a webserver however I only want to have .jpg files uploaded. If anyone has a good way to do this please share. Thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Global variable
Maybe you could use sessions like: session_start(); session_register('verified'); $verified=0 Erich Kolb [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have developed a simple login script. Right now it will check a submitted username and password and verify it against a database. This part works fairly well, however I want to know how to assign a variable that will pass through to the next page(s) to do something like: if verified == 1 then {display the page} else {display error message} My apoligies on the syntax of the above, but hopefully you will get the idea. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php+myslq+IDE
Try homesite, its all worth the money Brian Drexler [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm a big Edit Plus fan as well. Really though, it's just a fancy text editor with color coding and autocompleting, and IMHO the autocompleting can get annoying fast. However I have yet to find anything better. Anyone know of anything worth while? -Original Message- From: Joel Colombo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 5:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: php+myslq+IDE go download.com get EditPlus the trial runs up and still works without limit. very cool program Javier [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there any free app. for php coding? I tried komodo but I can't get it to work in debug mode. Also tried Zend's Studio but it expires. :( Is there any free choice? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Formatting timestamp date in MySQL
I´m kind of new to this mysql stuff but anyway... I have a row in a table with a timestamp of 14 chars and i dont know how to convert the row named 'tidsstampel' into something like this: select DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y'); i dont wanna use a static date for this, id rather use a variable that i get from the dbase.. anyone getting this or is it just ribberish? /Micke Mike Robinson [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You should consider using mysql's built-in DATE_FORMAT function. Why pull data, parse it, and format it, when you can retrieve it formatted the way you want in one call. Double/triple handling of data is a bad thing. Nyon [EMAIL PROTECTED] wrote in message 001c01c1dfbd$a7403320$[EMAIL PROTECTED]">news:001c01c1dfbd$a7403320$[EMAIL PROTECTED]... Hi, I need to recall a date data in a MySQL database. The column is set as date timestamp(8). A sample of date is 20020409 I use the PHP Date function to format it back to say 9th April 2002. $date_formated = date($date, 'S M Y' ); However, it's still doesn't appear as formatted. Anyone mind sharing their code to do this? Nyon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Php + Mysql Hosting problem
To use php+mysql on spaceports you have to sign up for a cgi-bin account and store your files on that server.. /Micke Simonk [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have made a web site containing Php and Mysql script And I have applied for a free web hosting account in www.spaceports.com there are two folder i can use: Public_html Cgi-bin which one i should put mysql files in? and what user name and password should i use for connecting mysql server? the current setting is mysql_connect (localhost, Administrator); thank you! and which free hosting is recommanded for php + mysql? I can only found this spaceports free! Thank you very much! __ ¦èªù³½ SeeMon Simonk ICQ#: 25943733 Current ICQ status: + More ways to contact me i See more about me: __ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Upload problem
Have you tried to change the defualt timeout value from 30 secs to something larger or even -1 in the php.ini file? Could be a problem to upload 4mb in 30 secs if your on a slow conn.. /Micke FyiÎ?rk µérkt [EMAIL PROTECTED] skrev i meddelandet 004001c1e12d$43ca16a0$020296c2@actarus">news:004001c1e12d$43ca16a0$020296c2@actarus... Hi All, it's my first post here. I've got a problem with the upload. I want to upload a 4Mo file on the server but it refuses to work. I modified the max_upload_size in the php.ini but it continues to refuse the transfer. If I upload a smaller file it works fine. Someone told me to modify the MAX_FILE_SIZE constant but I don't find it. I need help, Thanks Fred from Paris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Php/Mysql
Myabe you should assign some string to a variable: $string = some string; insert into mytable values ($string) /Just a noob trying to help out Torkil Johnsen [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Just a noob php/mysql question... (I suppose) When I try just putting php code in my insert queries, it goes like this: insert into mytable values('?php echo some string; ?') select * from mytable, returns: ?php echo some string; ?Some string So the insert-query inserts both the code AND the string that the code echoes... Any help would be greatly appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php