Re: [PHP] whats this!!!!
the world has come to an end :-P - Original Message - From: Chris Edwards [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 3:35 PM Subject: [PHP] whats this read: http://php.weblogs.com/ -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] http://www.OuterBanksInternet.com -- 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
Re: [PHP] mail() Bcc:
$mail-BCC( [EMAIL PROTECTED] ); - Original Message - From: Oden Odenius [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:44 PM Subject: [PHP] mail() Bcc: How can send bcc: with mail()? -- Programmers are tools for convert coffeine into code... (c) Oden _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- 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
RE: [PHP] help me please
download and install the apache web server. that along with php should do the trick. if you're doing any database work you may want to pick up the windows version of that too. some decent instructions are here: http://www.thesitewizard.com/archive/php4install.shtml -Original Message- From: Blair Robinson [mailto:[EMAIL PROTECTED] Sent: Sunday, March 16, 2003 7:47 PM To: [EMAIL PROTECTED] Subject: [PHP] help me please Hello, I am making a web site i just want to be able to view my php outputs On my Computer how do i do this i have downlaoded the 1mb windows php installer. and have the zipped version(4.3.0) that is 4mb I have windows xp. Can you please point me in the right direction or give me some answers on how to view my pages. Thanks Blair. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cURL PHP compile error
Trying to setup PHP with cURL support... I run this configure command: ./configure --with-mysql --with-apxs --with-openssl=/usr/local/ssl --with-curl --with-mcrypt --enable-sockets and receive this error: /usr/local/lib/libcurl.so: undefined reference to `UI_OpenSSL' Help!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Read
yes - Original Message - From: Karl James To: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 11:11 PM Subject: [PHP] Read Hey does anyone know if you can use PHP and ASP 3.0 or I.I.S on the same hard drive on XP pro? I need to know for school, because I'm taking classes for both languages. ultimatefootballleague.com/index.php [EMAIL PROTECTED]
[PHP] search script
Ok, my problem of the day. I need to take a field from a form that has either a first name, last name or both and then search the database for all records that match one of those items. The problem, the database only has one field for the name.. where both the first and last name are stored. Is there anyway I can do this?
[PHP] Skipping Image Upload if Filename is blank
I have a form for uploading images. If the browse field is empty I would like it to not process the following copy command, thus eliminating the error message it displays. I thought this would work.. but I have been proven wrong. Anyone have any insight? **snip** if ($_FILES['imagefile']['tmp_name']) { copy ($_FILES['imagefile']['tmp_name'], ../images/.$_FILES['imagefile']['name']) or die (Could not copy); } **snip** Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Skipping Image Upload if Filename is blank
Chris.. you are 100% correct, that took care of it. Thanks for the help, Bryan -Original Message- From: Chris Cook [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 10:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Skipping Image Upload if Filename is blank I have had this problem before. Try to echo out $_FILES['imagefile']['tmp_name'] when the field is blank. Then you will know what to control for... If I recall correctly, the file name is none if there is no uploaded photo. Thus, it exists and that is why the program enters your if statement when you would think that it wouldn't. Good luck, Chris From: Bryan Brannigan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Skipping Image Upload if Filename is blank Date: Wed, 19 Feb 2003 20:44:32 -0500 I have a form for uploading images. If the browse field is empty I would like it to not process the following copy command, thus eliminating the error message it displays. I thought this would work.. but I have been proven wrong. Anyone have any insight? **snip** if ($_FILES['imagefile']['tmp_name']) { copy ($_FILES['imagefile']['tmp_name'], ../images/.$_FILES['imagefile']['name']) or die (Could not copy); } **snip** Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- 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
RE: [PHP] php and sql problem with mysql_query and insert
Have you tried echo'ing out the variable before and after the mysql_query? -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 6:20 AM To: Sunfire; [EMAIL PROTECTED] Subject: Re: [PHP] php and sql problem with mysql_query and insert im having a little problem with mysql_query(insert into members ('$company', '$name1', '$name2', '$address1', '$address2', ''$ac1', '$ext2', '$num1', '$ac2', '$ext2', '$num2', '$city', '$state', '$zip', '$desc', '$flags')); for some reason those variables are empty by the time they get into the table... Where are those variables coming from then? If the data in the table is empty, then these variables are empty. They can't get lost along the way or anything... ---John Holmes... -- 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
RE: [PHP] Multiple Emails
are all your email duplicated? if people are replying to a message you sent you are probably getting one copy from them and one from the list. -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Multiple Emails Is anyone else getting multiple emails from this list? I'm about to jump on people for asking the same question 3 or 4 times, but maybe it's just me getting copies of the same message. ---John Holmes... -- 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
RE: [PHP] MySQL Madness
put your password in the mysql_connect. mysql_connect(localhost, root, yourpassword); or create a new user in mysql that has no password and minimal permissions. -Original Message- From: Gibbs, Liam - SXIA [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 9:46 AM To: '[EMAIL PROTECTED]' Subject: [PHP] MySQL Madness First off, when executing this command: $connection = mysql_connect(localhost, root, ); I get this error msg: Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'root@localhost' (Using password: NO) in /home/superpage/public_html/index.php on line 49 I've gone and read some information on the Internet (understanding almost nothing from the technical stuff--I'm a MySQL/server admin newbie), but I gathered some information. Now, a lot of what I read pertains to MySQL and not running it with PHP, but what I did gather from my own gruntwork file-searching and stuff on the Web was that I changed php.ini so that mysql.default_user = root and mysql.default_password = my password. Not a smart idea to run MySQL as root, but I'm trying to make headway. I restarted Apache. That didn't work. I didn't touch mysql.default_port, .default_host, or .default_socket (don't know if I should; didn't find anything that said I should), but I'm really stuck on this. Any other information on MySQL pertained strictly to MySQL and not PHP, and when I included PHP in my search criteria, it just came up with a bunch of pages that had PHP as an extension or a directory name. Searching the PHP-dev archives seems to bring up two search results which are the same conversation, and only really mention it in passing from what I understand. Any clues? I can access MySQL through the command ./mysql -u root -p mysql, but obviously that doesn't help when I'm supposed to access it through PHP. I've executed commands there fine. Not sure if it matters, but I have PHP 4.3.0 and MySQL 11.18 Distrib 3.23.54 for pc-linux (i686). -- 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] mysql_fetch_row problem
Can someone tell me what I'm doing wrong with the following code. What I am trying to do with this is insert some data from a form into a database. Then I am querying another database to retrieve the email addresses related to $location. This is the error I get: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in D:\inetpub\webroot\usrmgr\upd.php on line 15 This is the problematic code: $db = mysql_connect(localhost, webapp); mysql_select_db(usermgr,$db); $sql = INSERT INTO usernames (name,location,position,email,home,citrix,timberline,sawmill,counter,insides upport,am,receiving,shipping,purchasing,management,approval,uniqueid) VALUES ('$Name','$Location','$Position','$Emailaccess','$workathome','$citrix','$ti mberline','$sawmill','$countersales','$insidesales','$accountmanager','$rece iving','$shipping','$purchasing','$management','Waiting','$uniqueid'); $result = mysql_query($sql); mysql_close($db); $db = mysql_connect(localhost, webapp); mysql_select_db(helpdesk,$db); $result = mysql_query(SELECT contactemail FROM loc WHERE location=$Location,$db); while($row = mysql_fetch_row($result)){ $contactemail = $row[0]; } Thanks in advance, Bryan ~~ 90% of being smart is knowing what you're dumb at. Bryan Brannigan Hancock Lumber System Administrator Information Technology (v)207.627.7694 (f)207.627.7041 [EMAIL PROTECTED] ~~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Executing Shell Commands.
I believe something like this would do it: system('ls -l'); -Original Message- From: scott [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 9:06 AM To: [EMAIL PROTECTED] Subject: [PHP] Executing Shell Commands. Hello, Does anybody know how to execute a shell command from PHP on a Linux system? Thanks, Scott -- 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: Solved [PHP] mysql_fetch_row problem
Thanks all for the responses.. the solution was to add single quotes around the $Location variable. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 10:10 AM To: Bryan Brannigan; Php List (E-mail) Subject: Re: [PHP] mysql_fetch_row problem I'm gong to bet that $Location is alpha, not numeric. Therefore: $result = mysql_query(SELECT contactemail FROM loc WHERE location=\$Location\,$db); - Original Message - From: Bryan Brannigan [EMAIL PROTECTED] To: Php List (E-mail) [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 8:03 AM Subject: [PHP] mysql_fetch_row problem Can someone tell me what I'm doing wrong with the following code. What I am trying to do with this is insert some data from a form into a database. Then I am querying another database to retrieve the email addresses related to $location. This is the error I get: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in D:\inetpub\webroot\usrmgr\upd.php on line 15 This is the problematic code: $db = mysql_connect(localhost, webapp); mysql_select_db(usermgr,$db); $sql = INSERT INTO usernames (name,location,position,email,home,citrix,timberline,sawmill,c ounter,insides upport,am,receiving,shipping,purchasing,management,approval,un iqueid) VALUES ('$Name','$Location','$Position','$Emailaccess','$workathome', '$citrix','$ti mberline','$sawmill','$countersales','$insidesales','$accountm anager','$rece iving','$shipping','$purchasing','$management','Waiting','$uni queid'); $result = mysql_query($sql); mysql_close($db); $db = mysql_connect(localhost, webapp); mysql_select_db(helpdesk,$db); $result = mysql_query(SELECT contactemail FROM loc WHERE location=$Location,$db); while($row = mysql_fetch_row($result)){ $contactemail = $row[0]; } Thanks in advance, Bryan ~~ 90% of being smart is knowing what you're dumb at. Bryan Brannigan Hancock Lumber System Administrator Information Technology (v)207.627.7694 (f)207.627.7041 [EMAIL PROTECTED] ~~ -- 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