[PHP] File Uploads
Greetings all, I want to allow users to upload images to an online profile. Anyone know how to let the user browse his/her local filesystem from the web page? __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File Uploads
Hmm, well, to answer my own question, it looks like the following will do. Sorry to make an ass of myself. Hope you were all entertained!! form enctype=multipart/form-data action=_URL_ method=POST input type=hidden name=MAX_FILE_SIZE value=3 Send this file: input name=userfile type=file input type=submit value=Send File /form --- Jough Jeaux [EMAIL PROTECTED] wrote: Greetings all, I want to allow users to upload images to an online profile. Anyone know how to let the user browse his/her local filesystem from the web page? __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP IDE?
Was wondering what everyone's favortie IDE is for coding in PHP. I've got a big PHP project in the works. I'll be doing alot with it and am looking for ways to boost my productivity. --Jough __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP IDE?
Hmm, I'm currently a vim user also. You'll have to elaborate on this folding and ctag business though... --- Ahbaid Gaffoor [EMAIL PROTECTED] wrote: vim - with folding and ctags sweet. Ahbaid Jough Jeaux wrote: Was wondering what everyone's favortie IDE is for coding in PHP. I've got a big PHP project in the works. I'll be doing alot with it and am looking for ways to boost my productivity. --Jough __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP, MySQL and datetime
Greetings all, I'm working on a message-board-type application that will use time stamps to sort part of the messages. I was wondering what everyone's favorite way to transfer dates between PHP and MySQL was? --Jough - Do you Yahoo!? Free Pop-Up Blocker - Get it now
Re: [PHP] PHP, MySQL and datetime
Nope, that's what I was looking for. Looking at the functions I realized there was more than one way to do it. I'm just a bandwagon jumper. And yes, if all of you jumped off a cliff I would to. --- Richard Davey [EMAIL PROTECTED] wrote: Hello Jough, Thursday, December 4, 2003, 6:39:13 PM, you wrote: JJ Greetings all, I'm working on a message-board-type JJ application that will use time stamps to sort part of the JJ messages. I was wondering what everyone's favorite way to JJ transfer dates between PHP and MySQL was? Seeing as MySQL will only take them in one standard format you have to adhere to that ('-MM-DD HH:MM:SS'). All the MySQL date operations work on this format, so keep to it. When you pass from PHP to MySQL, make sure it's in that format (easy to do with the date() function). If you need to convert more esoteric formats, or do date handling from within PHP before sending to MySQL then use the strtotime function combined with the date(). Unless you meant something else of course? :) -- Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OOP, dynamic class extention
Shouldn't this line: class my_child_class extends MY_BASE_CLASSFILE { Read like this: class my_child_class extends MY_BASE_CLASS { After all base_class.php isn't the name of your class, base_class is. Jackson Miller [EMAIL PROTECTED] wrote: I want to be able to set a base class in a settings file, and then have other classes extend the base class, but PHP won't let me do what I have tried. I get the following error: Fatal error: Class cepweb: Cannot inherit from undefined class my_base_class in /home/me/my_child_class.php on line 10 ex: // settings to be set on install of the app define(MY_BASE_CLASS,base_class); define(MY_BASE_CLASSFILE,base_class.php); // require the class file require_once(MY_BASE_CLASSFILE); class my_child_class extends MY_BASE_CLASSFILE { // yada yada } ? Any thoughts on ways to overcome this? I have tried using a variable instead of a constant, but it didn't work. -Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - Do you Yahoo!? Exclusive Video Premiere - Britney Spears
Re: [PHP] Trying to start a session
There is room left on /tmp. Now that means the 'tmp' directory under the root directory on the filesystem right? I don't have to make a directory called 'tmp' in the DirectoryRoot or someplace else do I? I also went ahead and chmod 777 /tmp to see if that would help. It didn't. I had never used the 'sticky bit'. I went ahead and turned it back on... --- Marek Kilimajer [EMAIL PROTECTED] wrote: Is there any space left on /tmp partition? Jough Jeaux wrote: The very simple following script: ? session_start(); ? Produces an error that says it can't write the file for the session. The permissions for /tmp are rwxrwxrwt Any ideas on how I can fix this? Thanks! These are the exact errors: Warning: open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, O_RDWR) failed: No such file or directory (2) in /nex/htdocs/login/try.php on line 2 Warning: open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Trying to start a session
I'm not using Windows, I'm using OpenBSD. --- Ed van der Mark [EMAIL PROTECTED] wrote: If you are using Windows try C:\windows\temp as /tmp directory. Ed Jough Jeaux [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] The very simple following script: ? session_start(); ? Produces an error that says it can't write the file for the session. The permissions for /tmp are rwxrwxrwt Any ideas on how I can fix this? Thanks! These are the exact errors: Warning: open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, O_RDWR) failed: No such file or directory (2) in /nex/htdocs/login/try.php on line 2 Warning: open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trying to start a session
Okay for those interested the reason session_start() wasn't working was b/c in OpendBSD Apache runs in a chroot by default. So you have to change put a 'tmp/ directory in the ServerRoot of the web server. You also have to change your include paths and stuff to something inside the ServerRoot. --- Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Jough Jeaux ([EMAIL PROTECTED]): There is room left on /tmp. Now that means the 'tmp' directory under the root directory on the filesystem right? I don't have to make a directory called 'tmp' in the DirectoryRoot or someplace else do I? df -h /tmp will ensure you are looking at the proper device that tmp is mounted on. I also went ahead and chmod 777 /tmp to see if that would help. It didn't. I had never used the 'sticky bit'. I went ahead and turned it back on... That is good, the sticky bit makes it so only the creator of the file has permissions to see the contents of the file. Curt -- My PHP key is worn out PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Trying to start a session
The very simple following script: ? session_start(); ? Produces an error that says it can't write the file for the session. The permissions for /tmp are rwxrwxrwt Any ideas on how I can fix this? Thanks! These are the exact errors: Warning: open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, O_RDWR) failed: No such file or directory (2) in /nex/htdocs/login/try.php on line 2 Warning: open(/tmp/sess_54e80d88f91dae66fa58b1aa262a9417, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php