[PHP] Installing php with gd what a pain!
Hello Guys, I am trying to install php 4.3.2 with gd support. I have already installed zlib and jpeg-6b. My configure line options are as below: ./configure --with-gd --with-jpeg-dir=/usr/lib it doesn't work. I tried ./configure --with-gd --with-jpeg-dir=/usr/local/bin it still doesn't work even tough all the cjpeg and djpeg files are there... it says libjpeg not found for both Could anybody tell me what could be wrong? -Dhaval _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Php +Xml?
Hello people, I want to start using Xml with php. How do I install xml on Apache with Php? I am running redhat 7.2,Apache 1.3.12 and php latest version. How do I install xml? I am totally new to Xmland want to start somewhere... -Dhaval _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: Mysql Date got prob!
Hi, Thanx for yor reply. Well It worked for me with the same query when I used HAVING instead of where. This is what I got from Mysql Database. However the solution that you have showed is reall good as well. Thanx -Dhaval From: Uttam [EMAIL PROTECTED] To: 'Dhaval Desai' [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: RE: Mysql Date got prob! Date: Sat, 1 Mar 2003 13:45:53 +0530 try: select date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y-%m-%d') as dept_date1 from mytable where (date_add(arrivaldate1, INTERVAL nights1 DAY) BETWEEN '2003-02-01' AND '2003-02-10') regds, -Original Message- From: Dhaval Desai [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 15:48 To: [EMAIL PROTECTED] Subject: Mysql Date got prob! Hello, As related to my earlier question select date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y- %m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN '2003-02-01' AND '2003-02-10') The above query is valid but returns 0 because 'dept_date1' is treated as a string. I want dept_date1 to be treated as date so that it can be compared. I hope it is possible... Thank you! -Dhaval _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _ Add photos to your e-mail 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] Mysql Date problem...weird..
Hello, Please read the below query and the information that I have mentioned. This is really weird... select date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y- %m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN '2003-02-01' AND '2003-02-10') When it goes to database the values will be substituted as follows for 1 row: select date_format(date_add('2003-01-31', INTERVAL 5 DAY), '%Y-%m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN '2003-02-01' AND '2003-02-10') which should return 1 row since, the query will return dept_date1 = '2003-02-05' which falls between the dates '2003-02-01' AND '2003-02-10' but I am getting 0 result. SO then I tried, select date_format(date_add('2003-01-31', INTERVAL 5 DAY), '%Y-%m-%d') as dept_date1 from mytable where ('dept_date1' = '2003-02-01') IT WORKED!!! then I tried, select date_format(date_add('2003-01-31', INTERVAL 5 DAY), '%Y-%m-%d') as dept_date1 from mytable where ('dept_date1' = '2003-02-10') IT gave 0 result then I tried, select date_format(date_add('2003-01-31', INTERVAL 5 DAY), '%Y-%m-%d') as dept_date1 from mytable where ('dept_date1' ='2003-02-01' AND 'dept_date1' = '2003-02-10') IT gave 0 result What could be the problem, could anybody help me please... -Dhaval _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 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] Mysql Date got prob!
Hello, As related to my earlier question select date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y- %m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN '2003-02-01' AND '2003-02-10') The above query is valid but returns 0 because 'dept_date1' is treated as a string. I want dept_date1 to be treated as date so that it can be compared. I hope it is possible... Thank you! -Dhaval _ 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] Checkbox related...
Hi everybody, I have a form with 5 checkboxes. I want to make sure that a user checks atleast 2 boxes before he can proceed. How can that be made possible. Thank you -Dhaval _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Checkbox related...
How do we do it using the first option i.e javascript to count how many boxes are checked...could you give some example... Thanx -Dhaval From: David McInnis [EMAIL PROTECTED] To: 'Dhaval Desai' [EMAIL PROTECTED] Subject: RE: [PHP] Checkbox related... Date: Sun, 16 Feb 2003 10:59:17 -0800 You can use javascript to count the number of items checked or you can check the size of your array once the form has been submitted to the server. David -Original Message- From: Dhaval Desai [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 10:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Checkbox related... Hi everybody, I have a form with 5 checkboxes. I want to make sure that a user checks atleast 2 boxes before he can proceed. How can that be made possible. Thank you -Dhaval _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- 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] Date formating
Hi, I have a string in this format: 2003-02-15 13:19:02 I want to display it in a more readable format like Staurday, 11 Februardy, 2003, 13:19:02. How can I achieve that. I tried date() function but could not get what I wanted. -Dhaval _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] referer keywords
Hello ppl, I want to find out what keywords are people exactly using to get to my website and from where are they coming(Which search engine?)...I want to make a custom script, I don't want to use my web server logs or anything... Is it possible..?? - Dhaval _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 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] Php's future with Asp .NET?
Hello ppl, I was just wondering what is php's future with something like Asp .Net coming up...I have read many articles by Php guys who think Asp.Net is the future. If that's the true case...is it really worth sticking to Php at all? Thanx! -Dhaval _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Date Comparison
Hello ppl, Well, I want to compate date is php, could anybody tell me which is the best way to do so? I have tried various ways but nothing seems consistent. I tried for example: if(2003-1-15 2003-1-11) { echo true; } which doesn't work in some cases... Thank you! Best Regards, Dhaval _ Add photos to your e-mail 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] Multidimensional Array manipluation...
Hello ppl, I was trying to do something with an array...I guess you could see what I mean from the code below: $test[0] = hey; $test[1] = hi; $test[2] = hello; Now I want to hold various values in $test[0][hey] = 1 and $test[1][hi] = 2 and $test[2][hello] = 3 and then I want to use the function let's say in_array(hey, $test) and if it's found in the array I want to update the value in that array from 1 to 1+1 or anything... All of the above would be done dynamically from database, the above is just to get the Logic..I hope it's possible...I am keeping my fingers crossed... Thank You Best Regards, Dhaval _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Multidimensional Array manipluation...
Hi, Thanx for the reply, well but what about the second part or my mail.. I want to use in_array(value, $array); and if found, I want to update the value of that variable... $test[0][hey] = 1; $test[1][hi] = 2; $test[2][hello] = 3; I want to update $test[0][hey] and set it as 1+1; I think it's possible using splice()m I don't know exactly how to use it with Multi Dimensional arrays Also is there any idea on how can we count() the values in a multi dimensional arrays... Thanx From: Chris Shiflett [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Dhaval Desai [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Multidimensional Array manipluation... Date: Thu, 2 Jan 2003 09:04:27 -0800 (PST) --- Dhaval Desai [EMAIL PROTECTED] wrote: $test[0] = hey; $test[1] = hi; $test[2] = hello; Now I want to hold various values in $test[0][hey] = 1 and $test[1][hi] = 2 and $test[2][hello] = 3 Try this instead: $test[0][hey] = 1; $test[1][hi] = 2; $test[2][hello] = 3; Also, remember that you can often learn these types of things with trial and error by using the print_r() function: print_r($test); Chris _ Add photos to your e-mail 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
Re: [PHP] Multidimensional Array manipluation...
Hi, Well, I will be having something like this: $se5f2254321s65s32s65[] will hold various valus like jan_1,jan-2,jan_3,jan_4 etc and then jan_1 will hold 1, jan_2=2,, jan_3=1 etc etc... Depending on certain conditions, I want to increment the values of certain values in the array...like... for($i=0; $i=count($se5f2254321s65s32s65); $i++) { $se5f2254321s65s32s65[$i][jan_1] = 1 } I want to increment it with 1 and so on for the various other values Thanx Best Regards, Dhaval From: Chris Shiflett [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Dhaval Desai [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Multidimensional Array manipluation... Date: Thu, 2 Jan 2003 09:30:43 -0800 (PST) $test[0][hey] = 1; $test[1][hi] = 2; $test[2][hello] = 3; I want to update $test[0][hey] and set it as 1+1; If you just want to increment the value: $test[0][hey]++; Also is there any idea on how can we count() the values in a multi dimensional arrays... The function array_count_values() might give you what you want. What are you wanting to count exactly? A good reference for you online is: http://www.php.net/manual/en/ref.array.php Chris _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strange ....Date problem
Hi! If you try this in php: 2002-01-6 2002-01-10 returns true 2002-01-6 2002-01-9 returns false Jut a leading 0 in the date makes it false...this is really strange.. Any comments? _ 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] Automatic Colspan from database data
Hi everybody! Well this is how it goes... For the month of January there are 31 days... so there are 2 rows in this table on the top row there are 31 columns showing 31 days...and in the row below this one we will have to generatecolspan based on the below information pulled from the database... 211 in the above case we will have to get a colspan as follows: tr td colspan=5 2 /td td colspan=15 1 /td td colspan=8 9 /td tdcolspan=4 2 /td /tr This is all I want to doI know it is difficult...but still waiting for some genius! Thank You! Dhaval _ 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
Re: [PHP] Automatic Colspan from database data
Hi! Well I have 12 table for 2 years which makes it 24 tables named as: jan_2002, feb_2002 ...etc dec_2002 jan_2003, feb_2003 ...etc dec_2003 Each table has fields according to the number of days in the month plus 1 field as a unique key. Each registration will create 1 entry in 24 tables each and it can only be modified as 1 entry per registrant per table. the fields in each table will take values ranging rom 1-20. Well that's all about how my tables are in the database. Thank You for your time Dhaval Desai From: Marco Tabini [EMAIL PROTECTED] To: Dhaval Desai [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Automatic Colspan from database data Date: 09 Nov 2002 13:34:20 -0500 How is your database organized? you might be able to pull this information from the query by using an appropriate group-by clause. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Sat, 2002-11-09 at 11:57, Dhaval Desai wrote: Hi everybody! Well this is how it goes... For the month of January there are 31 days... so there are 2 rows in this table on the top row there are 31 columns showing 31 days...and in the row below this one we will have to generatecolspan based on the below information pulled from the database... 211 in the above case we will have to get a colspan as follows: tr td colspan=5 2 /td td colspan=15 1 /td td colspan=8 9 /td tdcolspan=4 2 /td /tr This is all I want to doI know it is difficult...but still waiting for some genius! Thank You! Dhaval _ 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 _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Automatic Colspan from database data
Hi! Well let's make it simple.. We can see that the following values: 211 are stored in just one row in 31 different columns. Bsaed on this if we were to make a table with colspans how would it go..? Thank you Dhaval From: Marco Tabini [EMAIL PROTECTED] To: Dhaval Desai [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Automatic Colspan from database data Date: 09 Nov 2002 15:10:39 -0500 Ouch... well, assuming you have two columns: day_id and value, here's a possible solution: $rs = mysql_query ('select day_id, value from my_table order by day_id'); $a = mysql_fetch_assoc ($rs); do { $i = 1; $control = $a['value']; while (($a = mysql_fetch_assoc ($rs)) $a['value'] == $control) $i++; echo 'td colspan=' . $i . '' . $control . '/td'; } while ($a); This is a bit rough and can probably be optimized quite a bit, plus I can't test it, so I'm not sure that it will work the first time. Hopefully, it gives you an idea of how it could be done. If I could make a suggestion without knowing how your system works, I think you should revisit your database design a little. Hope this helps, Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Sat, 2002-11-09 at 14:32, Dhaval Desai wrote: Hi! Well I have 12 table for 2 years which makes it 24 tables named as: jan_2002, feb_2002 ...etc dec_2002 jan_2003, feb_2003 ...etc dec_2003 Each table has fields according to the number of days in the month plus 1 field as a unique key. Each registration will create 1 entry in 24 tables each and it can only be modified as 1 entry per registrant per table. the fields in each table will take values ranging rom 1-20. Well that's all about how my tables are in the database. Thank You for your time Dhaval Desai From: Marco Tabini [EMAIL PROTECTED] To: Dhaval Desai [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Automatic Colspan from database data Date: 09 Nov 2002 13:34:20 -0500 How is your database organized? you might be able to pull this information from the query by using an appropriate group-by clause. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Sat, 2002-11-09 at 11:57, Dhaval Desai wrote: Hi everybody! Well this is how it goes... For the month of January there are 31 days... so there are 2 rows in this table on the top row there are 31 columns showing 31 days...and in the row below this one we will have to generatecolspan based on the below information pulled from the database... 211 in the above case we will have to get a colspan as follows: tr td colspan=5 2 /td td colspan=15 1 /td td colspan=8 9 /td tdcolspan=4 2 /td /tr This is all I want to doI know it is difficult...but still waiting for some genius! Thank You! Dhaval _ 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 _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 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 _ The new MSN 8: advanced junk mail protection and 2 months FREE* 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] English/Arabic Mysql problem...
Hello people, I am making a bilingual website English/Arabic. I am facing some problem with this. The problem is that I am not able to insert arabic lanaguage characters ionto Mysql databse. It gets junk characters...when I try to display it... Thank You Best Regards, Dhaval Desai _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mysql unique statement help...
Hello, Well I have a field in Mysql Database called threadid. I have unique threadid's stored in this field. But the problem is that I have like 10 entries for each threadid. When I do a select statement for Mysql I want only unique threadid's to be read. How do I do that because I didn't find any function as unique() under Mysql. Could anybody help me out please. Thank You Best Regards, Dhaval Desai _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Frames creating problems...
Hello Guys, Well I have a website with frames. The problem here is that I have a serach box in the top frame and I want the results to be displayed in the other frame. I have seen this on lot of websites but now I am wondering how to do it when I am facing this problem.. Any help would be greately appreciated. Thanx to all Best Regards, Dhaval Desai __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Html email with Flash content embedded
Hi! I am trying to embed a file into my html email that I want to send my friend on Yahoo. I have uploaded the flash file (.swf) on my server. If I try to embed the file as html and send...as an email...nothin can be seen... Is it because... yahoo filtersI am using Php to send it Thanx Regards, Dhaval Desai __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Php-Gtk.....does it work ever?
Hi! I downloaded the Php-Gtk files for Windows 32 Binary and I am trying to make it work on Windows 98. I already have phpdev2 with Apahce, Mysql and Php installed phpdev2 is in C:\phpdev2 1. Now I downloaded php-gtk and I copied the files from php4 folder to php directory. 2. Then I copied the files from Winnt directory to C:\WINDOWS\SYSTEM32 3. I didn't copy php.ini file anywhere because... C:\phpdev2\php\ already had a php.ini file. 4. Copied the sameples to the same folder as that of Php C:\phpdev2\php\samples. Now When I try to run the a sample file.eg. C:\phpdev2\php\php_win.exe -q C:\phpdev2\php\samples\hello.php It doesn't do anything...it just comas back to the command line in Dos Prompt Is the thing installed properly..? How can we check it and if it is installed why isn't the thing showing any results... Please reply to me...coz I am just making a beginning with Php-Gtk Thank You Greetings!~ Dhaval __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Expire page...
Hi! Well I would like to expire a page after you move away from that page and the user should not be able to hit the browser's back button and see the contents. I t should show that the page has expired.. In ASp it is very easy to do that but in Php I am looking all over and still can't find it. Can anybody help me please... Thank You Regards, Dhaval __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Page Expired...!!!
Hi! Well I have a form page. WHen people submit the information, they and they go to the other page where form action is specified, they should not be able to come back to the form page. They should get a message saying the Page expired. The concept is used on http://www.mtnsms.com Please tell me how is this possible. Thank You Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Code works in reverse order...
Hello everybody The below code is going crazy..and doing the reverse thing... when the value of $check!= for example still it shows thankyou.html page. But if I reverse the code meaning if($check!=) then insert into database..it doesn't do that it does the reverse thing. Is something wrong with the code? Thank You Dhaval Desai ?php $connect = mysql_connect(); $query = select email from newsletter where email='$email'; $execute = mysql_db_query(database, $query); $check = mysql_num_rows($execute); if($check!=) { $insert = insert into newsletter (name,email,country) VALUES ('$name','$email','$country'); $putin = mysql_db_query(database, $insert); if($putin) { header (Location: ./thankyou.html); } } else { header (Location: ./sorry.html); } ? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] hotmail, yahoo..why can't me?
Hi! I wanna do something like in ur mailboxes. if u check ur hotemail or yahoo a/c u can find checkboxes on the left side of each message. U can check the boxes and delete the messages.. I want to delete certain rows that come out of a database. So if I have 20 records coming out of the databases i want a checkbox on the left of each message so that I can delete some of them if i want. Is there a way.. i don't seem to get the logic to do this.. Please help me out... Thank You Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Credit Card Class...how do u access?
Hi! I have the following class for checking a credit card type.Can anybody tell me how do I access this class. I mean how should I check a credit card type using this class..? Thank you DHaval Desai ?php class credit_card { function clean_no ($cc_no) { // Remove non-numeric characters from $cc_no return ereg_replace ('[^0-9]+', '', $cc_no); } function identify ($cc_no) { $cc_no = credit_card::clean_no ($cc_no); // Get card type based on prefix and length of card number if (ereg ('^4(.{12}|.{15})$', $cc_no)) return 'Visa'; if (ereg ('^5[1-5].{14}$', $cc_no)) return 'Mastercard'; if (ereg ('^3[47].{13}$', $cc_no)) return 'American Express'; if (ereg ('^3(0[0-5].{11}|[68].{12})$', $cc_no)) return 'Diners Club/Carte Blanche'; if (ereg ('^6011.{12}$', $cc_no)) return 'Discover Card'; if (ereg ('^(3.{15}|(2131|1800).{11})$', $cc_no)) return 'JCB'; if (ereg ('^2(014|149).{11})$', $cc_no)) return 'enRoute'; return 'unknown'; } function validate ($cc_no) { // Reverse and clean the number $cc_no = strrev (credit_card::clean_no ($cc_no)); // VALIDATION ALGORITHM // Loop through the number one digit at a time // Double the value of every second digit (starting from the right) // Concatenate the new values with the unaffected digits for ($ndx = 0; $ndx strlen ($cc_no); ++$ndx) $digits .= ($ndx % 2) ? $cc_no[$ndx] * 2 : $cc_no[$ndx]; // Add all of the single digits together for ($ndx = 0; $ndx strlen ($digits); ++$ndx) $sum += $digits[$ndx]; // Valid card numbers will be transformed into a multiple of 10 return ($sum % 10) ? FALSE : TRUE; } function check ($cc_no) { $valid = credit_card::validate ($cc_no); $type = credit_card::identify ($cc_no); return array ($valid, $type, 'valid' = $valid, 'type' = $type); } } __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Credit Card easy script ..how 2 get results?
Hi! Well the Class that I had sent earlier was really complicated. SO I just found an easier script. Can anybody tell me how this should work. If it returns 1, 0, -1 what should I do?. I am a begineer so please bear with me. THank You ?php function validateCC($ccnum, $type){ //Clean up input $type = strtolower($type); $ccnum = ereg_replace( '[-[:space:]]', '',$ccnum); //Do type specific checks if ($type == 'unknown') { //Skip type specific checks } elseif ($type == 'mastercard'){ if (strlen($ccnum) != 16 || !ereg( '^5[1-5]', $ccnum)) return 0; } elseif ($type == 'visa'){ if ((strlen($ccnum) != 13 strlen($ccnum) != 16) || substr($ccnum, 0, 1) != '4') return 0; } elseif ($type == 'amex'){ if (strlen($ccnum) != 15 || !ereg( '^3[47]', $ccnum)) return a; } elseif ($type == 'discover'){ if (strlen($ccnum) != 16 || substr($ccnum, 0, 4) != '6011') return 0; } else { //invalid type entered return -1; } // Start MOD 10 checks $dig = toCharArray($ccnum); $numdig = sizeof ($dig); $j = 0; for ($i=($numdig-2); $i=0; $i-=2){ $dbl[$j] = $dig[$i] * 2; $j++; } $dblsz = sizeof($dbl); $validate =0; for ($i=0;$i$dblsz;$i++){ $add = toCharArray($dbl[$i]); for ($j=0;$jsizeof($add);$j++){ $validate += $add[$j]; } $add = ''; } for ($i=($numdig-1); $i=0; $i-=2){ $validate += $dig[$i]; } if (substr($validate, -1, 1) == '0') return 1; else return 0; } ? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] bcc, cc limit on recepients?
Hi! Is there any limit on the number of recepients that a bcc or a cc field email can be sent to? I have a loop which extracts arounf 400 emails from the database and then sends it as email to all the 400 recepients but the script fails and I get a mysql error. SO is there any limit on the number of recepients? Thank you Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Newsletter on the way..stuck in the moment!
Hi! Well, I want to send an email to about 300 people. The problem is that if I use this method people can see all the email address of the people whoever it is sent to. ?php $connect = mysql_connect(); $query = "select email from news"; $execute = mysql_db_query("uaegraduate", $query); while($r = mysql_fetch_array($execute)) { $email = $r['email']; $add .= $email . ","; } $headers = "From: [EMAIL PROTECTED][EMAIL PROTECTED]\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $subject = "hey"; $to = "$add"; $mailmessage = "hey this is the message"; $mailsomeone = mail($to, $subject, $mailmessage, $headers); if($mailsomeone) { echo "Success"; } ? If I use the above method, all the email address will apear in the to: like this:- To:[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] and goes on for 300 entries. Is there any way I can stop this from happening yet the mails reaching their destination. Thank You Cheers!~ Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Emails from database...
Hi! This is my code for sending email to all the emails in my database: $connect = mysql_connecT(); $query = "select email from table"; $execute = mysql_db_query("database", $query); while($r=mysql_fetch_array($execute)) { $email .= $r('email') mail("$email", "My Subject", "Line 1\nLine 2\nLine 3"); } Will this send email to all the emails in the database? Is there any otehr wya of doing it? Thank You Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php or Mysql for DATE?
I want to have a posting column wherein people can post their messages and when a new message is posted the Curent date has to be added in the mysql database. Do u think I should use Php to generate the date or should I have mysql to generate the date. I am also going to allow people to search for messages as per date. For example Search for messasges in the last week and stuff.. Please advice me.. THank You Dhaval Deasi __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] I need the command line...
Hi! CAn anybody give me the command line of Mysql for doing the following. I want to have three columns id firstname age the id field mu auto_inrement..meaning it should automatically goas 1.2.3.4.5.6 as someone inserts values into firstname and age. Thank You Dhaval Desai __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Have you ever seen this?
Hi! I know this is in no way related to Php but I am writing this mail coz I didn't know where to ask this question and I am sure there are a lot of Web Developers and Programmers who can help me out. Well There are some versions of some sites in two languages and both of them work equally well even If your system doesn't have fonts. It uses some kindaa server font management I gues.. Has anyone of you all out there worked on some site like that or have any idea on how it works. I can give you the URL: http://www.arabia.com __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Not Allowing REload or REfresh with this script?
Hi! Well I need help with something. I have a form which has a ction to a file called actio.php Now When I hit the submit button. It goes to the file and it performs a certain action as seen below: action.php: is as follows: ?php if(isset($userfile)) { echo "$userfile is set"; global $userfile; unset ($userfile); } else { echo "Sorry buddy , Userfile is not set"; } ? My main intentyion is to unset the variable so that When the page is REFRESHED or RELOADED. It should execute the else code block. I am trying to implement it on one of my websites where users can not refresh a particular a page. Thank You Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] File Upload doesn't work with Netscape Serious problem!
Hi! File upload doesn't work with Netscape Navigato. I have Netscape COmmunicator 4.5. I try to upload files and I get Network Error. If it is working for any of you guys please give me the URL so that I can test it out and check my problem.. Help me out. Thank You! Cheers!~ Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] File upload not for Netscape?
Hi! File upload doesn't seem to work from Netscape. It works with Internet Explorer. In netscape it says Network Error Occured.. Why's that..? Thanl You! Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] found a bug with File Uploads..
Hi! I think I just found a bug in php. I try to upload a file of size 37.0 K and you know what happens.,, The browser takes its own time..and the stupid thing doesnot upload the file. If I upload a file of size 2k then it uploads.. I have specified the file size in the form as : FORM ENCTYPE="multipart/form-data" ACTION="upload.php" METHOD="POST" INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="10" In Php.ini file I have found 8M is the maximum size.. I am running php 4.0.3pl1 wioth Apache on Windows 98. I also have a server on Cqhost.com I have seen the same happen there,.too... Is this a bug or a problem..?? Please Reply Cheers!~ Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Move a file from dir to another or delete file..?
Hi! Well I would like to move a file from one directoy to another using php and a web browser. I could just find a function to move an uploaded file but not a normal file which is allready there in some directory. Is there any way I can move a file from one directory to another and also is tehre any way I can delete a particluar file in a directory.. Thank You! Cheers!~ Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Move a file from dir to another or delete file..?
Hi! Well I would like to move a file from one directoy to another using php and a web browser. I could just find a function to move an uploaded file but not a normal file which is allready there in some directory. Is there any way I can move a file from one directory to another and also is tehre any way I can delete a particluar file in a directory.. Thank You! Cheers!~ Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Change dir mode to writable for uploading..
Hi! I have problem uploading the file to a directory... It says permission denied. THe problem is taht ther directory is on the web. I connect using WS_ftp. THe directory is set to: drwxr-xr-x How do I make it writable..? I am using form to upload the files there.. Is there any way I can make the directory writable..? Thank You! Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Upload --Permission denied simple error...
hi! I have fws simple lines: ?php if ($userfile) { copy($userfile, "C:\\"); } else { echo "Possible file upload attack: filename '$userfile'."; } ? Warning: Unable to create 'C:\': Permission denied in c:\phpdev2\www\upload\action.php on line 3 and I get this error..I tried coyping to D:\ too but the same error.. Can u tell me what could be the problem possibly.. Thank you Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Link back to where u came from..?
Hi! See what I am trying to implement is: 1.I have a website. 2.When ppl come to the website..they see the homepage. 3.When they click on any link, if they have logged in earlier..and a cookie is stored.in their browser..they will be allowed in. 4. If not they will be told that click here to go the login page. 5. When they have logged in., I want the page to automatically go to the link they came from. Is it possible..Please give me some ideas.. Thank You Dhaval Desai __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Linking back to where you came from..
Hi! Thanx for replying to my mail. Well See I have for example two pages. login.php inside.php So when a person clicks on inside.php it checks for the cookie meaning inside.php has a cookie checking code in it. If cookie uis not found it will take him to the login.php page and on successful login he will again be taken to the page he came from which in this case is inside.php. Can u guide me with some more details please. Thank You! Dhaval Desai --- Bilal Abdul Kader [EMAIL PROTECTED] wrote: Hi Try to use the link to the actual page as a parameter to the Authentication script For example your authentication script is login.php and I click directly to page.php Then in the page.php put if (authenticad) go on else header("Location:login.php?usr=$PHP_SELF"); in the login.php add if (authentication complete) go to url Good Luck - Original Message - From: "Dhaval Desai" [EMAIL PROTECTED] Newsgroups: php.general Sent: Wednesday, February 21, 2001 7:10 AM Subject: [PHP] Link back to where u came from..? | Hi! | | See what I am trying to implement is: | | 1.I have a website. | 2.When ppl come to the website..they see the homepage. | 3.When they click on any link, if they have logged in | earlier..and a cookie is stored.in their browser..they | will be allowed in. | 4. If not they will be told that click here to go the | login page. | 5. When they have logged in., I want the page to | automatically go to the link they came from. | | | Is it possible..Please give me some ideas.. | | | Thank You | Dhaval Desai __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] REgular expression....difficult is it?
Hi! I am not able to understand this REgular expression. /Wil?/ would match "Winnie", "Wimpy" "Wilson" and "William", though not "Wendy" or "Wolf". Howz taht..? Can anybody explain me please. Thank You! Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Variable stores incomplete values...
Hi! I need help with this one. See I store a lot of data into one variable like this: $variable = This is the data.This is the data.This is the data.This is the dataThis is the dataThis is the dataThis is the dataThis is the dataThis is the dataThis is the dataThis is the data This is the dataThis is the dataThis is the data This is the; da;taThi's is the dataThis is the dataThis is the data This is the dataThis is the dataThis is the dataThis is the data I mean to say taht it is kidof formatted with REturn character, space characters, ', ; and a lot many characters... Now my question is that. If I store the variable in MYSQL dataabse under a particular filed TYPe varchar or TEXT. It doesn't bring up the same kind of format like it was when it was stored.. Is there any way I can get the same output like I stored it.? Thank YOu! Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Where is my directory on server..?
Hi! I need some help with this one. See When I upload a file to a server to my directory..I connect to the server using Wsftp_pro. Now I want to find out exactly what is the path to my directory on the server... Actually I will be uploading files to the server using php from the web browser... Is there a php function to find out the path to my directory..or is there any other way..? Thanx a lot! Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Upload moves the file doesn't copy it..
Hi! I have finally learned to upload file using php. But the problem is that When I upload a file, it disappears from it's place and moves to the location I have told it to go to. It's more like a cut paste rather then copy and paste... My code is as follows: Index.html: ** html head titleUntitled Document/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /head body bgcolor="#FF" form method="post" action="upload.php" p input type="file" name="userfile" br br input type="submit" name="Submit" value="Upload" /p pnbsp;/p pnbsp;/p pnbsp;/p /form /body /html *** Below is upload.php: *** ?php if (copy($userfile, "c:\\upload.txt")) { echo "Succesful"; } else { echo "failure"; } unlink($userfile); ? ** Thank You! Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] realpath() problem....
Hi! I need some help in using the function $try = realpath("./filename"); I get a blank page when I try to echo. $try Thanx! Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] File Upload stuck in the midst
Hi! I am facing some problems while uploading files.. I just copied the code from php.net from the section "Handling File Uploads". My index.php pages has the following code: html head titleFile Uploads/title /head body FORM ENCTYPE="multipart/form-data" ACTION="action.php" METHOD=POST INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="2000" Send this file: INPUT NAME="userfile" TYPE="file" INPUT TYPE="submit" VALUE="Send File" /FORM /body /html ACtion.php has the following code: ?php if (is_uploaded_file($userfile)) { copy($userfile, "(c:\\)"); } else { echo "Possible file upload attack: filename '$userfile'."; } /* ...or... */ move_uploaded_file($userfile, "(c:\\)"); ? I always get the error: message.. [Possible file upload attack: filename 'none'.] Can anybody tell me what could be the possible reason for this. Thanx a lot! Dhaval Desai __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP File Uplaod Path
Hi! I need help with uploading files with php. What is the default directory where the files are uploaded..? I want to specify a particular directory where the files have to come after they are uploaded. Is it possible to specify a path in the script where the files will automatically be copied after uploading to the temporary directory. Please help me out ... Thank You Dhaval Desai __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] % operator
Hi! what is the use of % Is it called modulo..what is it's use in PHP.? Thanx! Dhaval Desai __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Javascript doesn't work with PHP????
r="#FF"font face="Arial,Verdana" size="2"Your Email/font/td /tr tr td align="right" bgcolor="#FF"font face="Arial,Verdana" From:/font/td td bgcolor="#FF"input type="text" name="fromname" size="30"/td td bgcolor="#FF"input type="text" name="fromemail" size="30"/td /tr tr td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td /tr tr td colspan="3" align="center" bgcolor="#FF"font face="Arial,Verdana"You may enter a personal message below:/font/td /tr tr td colspan="3" align="center" bgcolor="#FF"textarea name="message" cols="40" rows="5"/textarea/td tr td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td /tr tr td colspan="3" align="center" bgcolor="#FF"input type="submit" value="Click here to CONTINUE"/td /tr tr td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td td bgcolor="#FF"nbsp;/td /tr /table /td /tr /table /form /body /html *** Thanx a lot! Cheers!~ Dhaval Desai __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] is 1 a Variable...Discoverd it just now...
HI! When I run the foillowing code: form action="?php echo"$PHP_SELF"; ?" method="post" input type="hidden" name="flag" value="0" select name="recepients" onchange="javascript:submit();" option value=""--/option option value="1"1/option option value="2"2/option option value="3"3/option option value="4"4/option option value="5"5/option /select/form/td /tr /table ?php if(isset($flag)) { for($i=1; $i=$recepients; $i++) { echo "input type=\"text\" name=\"$i\"" ."br"; } } else { echo "input type=\"text\" name=\"1\""; } ? I get error on saying echo $i on the next page... Parse error: parse error, expecting `T_VARIABLE' or `'$'' in C:\HTTPD\HTDOCS\preston\sms\send.php WHy is it so..? Is there any other way of doing the above... Please let me know.. Thanx a lot! Dhaval Desai - Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
[PHP] Integers are not Variables..???
Hi Guys!! Below is my code:(which works but See the ourput on this pageplease... http://dhaval.isamillionaire.com/loop.php form action="?php echo"$PHP_SELF"; ?" method="post" input type="hidden" name="flag" value="0" select name="recepients" onchange="javascript:submit();" option value=""--/option option value="1"1/option option value="2"2/option option value="3"3/option option value="4"4/option option value="5"5/option /select/form/td /tr /table form action="sendmail.php" ?php if(isset($flag)) { for($i=1; $i=$recepients; $i++) { echo "input type=\"text\" name=\"$i\"" ."br"; } } else { echo "input type=\"text\" name=\"1\""; } echo " input type=\"submit\" value=\"Does it work\"/form"; ? I want to accomplish the above..any idea how is it possible..? Thanx everybody.. Dhaval Desai - Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
[PHP] SMs
HI! I am trying to build a SMS(Short message service) mesaging system..can anybody tell me what are the requirements for this... Thanx a lot! Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]