Re: [PHP] BET News
posted mailed MTV Jams wrote: http://www.mp3.com/mcpedro from [EMAIL PROTECTED] The question is this, If you placed a Jamaican born MC on a Hip Hop/Trance/Techno track and told him to flow without losing his yard essence (Jamaican Vibes), what would you get? Most likely confusion of course, unless the MC was Pedro! does pedro have a problem with PHP ? i thought this group was moderated ? DIE SPAMMER. or i'll soak your nuts in liquid copper. and Pedros too. -- 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]
Re: [PHP] OT-Please bare with me :)
Brandon Orther wrote: menu on the new Cobalt XTR server admin section. If anyone has a JavaScript or a tutorial how to make a drop down menu please send me a link. try http://www.webreference.com/dhtml/ cheers, Hrishi -- 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]
Re: [PHP] HI
Jorge Amaya wrote: I am new user of php, I have installed apache 1.3.x, php3 and mysql, but I have a problem, My navigator doesn't recognize the files of php3, that is to say it doesn't work me php in the navigator, I have configured such and like says the manual in php.ini and also in the directives of Apache are you browsing the filesystem (file://C|/..) or through apache (http://localhost/;) ? remember that you can add hosts/aliases using the file c:\windows\hosts cheers, Hrishi -- 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]
Re: [PHP] Getting the first part out of a string
Richard Kurth wrote: I know how to get last part of a string out of a string But how do I get the first part before the needle On the example below I just what domain $hostdomain= domain.com $host = substr (strrchr ($hostdomain, .), 1); strrchr (two r) finds the first occurence from the end of the string strchr (one r) finds the first occurence from the beginning of the string echo $host; 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]
Re: [PHP] [Fwd: Problem in renaming file]
Sebastian Bergmann wrote: Carrie KL Tam wrote: Hi Sebastian, Don't understand why the following code keep telling me the error "Rename failed (Invalid argument)": ?php $forig = 'd:/pict/orig/YI3 ?a.3WOHF'; way i see it, ? and * (among others) are special chars in wind0ze cheers, hrishi $fcopy = 'd:/pict/copy/test1'; if (rename($sourcepath,$ftppath)) { echo "pass 1\n"; } ? Pls advise Cheers, Carrie Tam [EMAIL PROTECTED] -- -- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. -- 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]
Re: [PHP] [Fwd: Problem in renaming file]
Hrishi wrote: Sebastian Bergmann wrote: Carrie KL Tam wrote: Hi Sebastian, Don't understand why the following code keep telling me the error "Rename failed (Invalid argument)": ?php $forig = 'd:/pict/orig/YI3 ?a.3WOHF'; $fcopy = 'd:/pict/copy/test1'; if (rename($sourcepath,$ftppath)) { echo "pass 1\n"; } ? whoa there. what is sourcepath? what is ftppath? what do the variables forig and fcopy do ? was a bit hasty in answering that :) -- -- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. -- 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]
Re: [PHP] Export Linux Users and Password's to MYSQL database
On Thursday 01 March 2001 17:37, Joe Njeru wrote: Hi All, Is there a way I can export the users in my Linux machine to a mysql database. Together with their passwords without manually entering all of them. the passwords are usually encrypted and stored in /etc/passwd or /etc/shadow you'll have to make a script that takes values from here and stores them in the DB. these passwords cannot usually be decrypted, so for verification/validation you will have to use the same encryption algorithm on the password that the users have sent and compare this with the encrypted key. I will appreciate any input. Thanks in advance, Joe Njeru Nairobi, Kenya. "Where the sun shines all day!!" -- 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]
Re: [PHP] Double Click
On Thursday 01 March 2001 21:41, Brinkman, Theodore wrote: A tactic I've been planning to use, but don't know if it actually works or not, is to disable the button first thing in its onClick so the second click occurs on a disabled button. Does anybody know if this actually works or not? script language="javascript" !-- var submitpressed; submitpressed=0; function submitcheck() { if(submitpressed) return false; submitpressed=1; return true; } //-- /script input type=button value="Submit" onClick="return submitcheck();" - Theo -Original Message- From: John Huggins [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 3:04 PM To: Manuel Lemos; [EMAIL PROTECTED] Subject: RE: [PHP] Double Click If you are lucky and are feeding this form data to a database, you can create a unique hash field from other fields that would not change from click 1 to click 2. Then just make the database treat the hash as a unique index and it should prevent double entries. Works for me. Other advice is to not tell the double clicker that had an error; Just silently ignore their second request. -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Double Click Hello Fabian, On 28-Feb-01 03:01:02, you wrote: Hi, I have a page, and when I have to add a product I use a form, many people are used to make double click in every task, so when the product is sent with a double click in the send button, the program send it twice to the data base. What can I do to prevent this? You may want to try this forms generation class that lets you define a warning message that shows when the user attempts to submit a form more than once. http://phpclasses.UpperDesign.com/browse.html/package/1 Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED] -- E-mail: [EMAIL PROTECTED] URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp -- -- 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 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]
Re: [PHP] CGI BIN PHP
hey, don't go bald yet :) my web host (communitech.net) has the same setup... is that where you're hosted ? i have a script called 'php4.cgi' in my /cgi-bin which contains: #!/bin/sh #echo -e "Content-type: text/plain\n\n"; #set SCRIPT_NAME=$REDIRECT_URL;export SCRIPT_NAME; SCRIPT_FILENAME=$PATH_TRANSLATED;export SCRIPT_FILENAME; /bin/php4; #set the #ed out commands are for debugging you may not need them. my .htaccess in the documentroot contains : Action application/x-php4-script "/cgi-bin/php4.cgi" AddHandler application/x-php4-script php i hope you can use this. if you have any other problems, reply to the list because i'm sure more people can use this 'technique'. its still under testing, (i made it 2 days ago) so if there are any changes i need to make, i'll post it here. cheers, hrishi -- 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]
Re: [PHP] HTTP Content-length...
$string ="foo=barfood=apple"; $contentlength=$string.size; $uuencodestring=uuencode($string); uuencode ? are you looking at urlencode ? use $contentlength=strlen($string); also remember according to the HTTP protocol, you have to show the length of the encoded string, not the original; which in PHP will look like : ? $string ="foo=barfood=apple"; $encodedstring=urlencode($string); $contentlength=strlen($encodedstring); ? other methods may or may not work if they're not HTTP compliant. cheers, hrishi -- 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]
Re: [PHP] PHP as CGI
AddType application/x-httpd-php .php Action application/x-httpd-php /usr/local/php A) I'm not sure you need the "." on ".php" i've tried both with and without the '.' , but the server always responds : --- Not Found The requested URL /usr/bin/php4/test.php was not found on this server. Apache/1.3.3 Server at www.website.com Port 80 --- the installed CGI is php 4.0.3pl1, it runs fine from the command line. any ideas? thanks, Hrishi -- 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]
Re: [PHP] something wrong at my mail set up in php.ini
Is there anyway I can see if script mail() does not work and see what the problem is? Jack Hey Jack, take this line and put it before the part of the code that sends the mail: ? error_reporting(63); ? this turns on ALL error reporting, so make sure yuo use it only for debugging. also, if you dont see any warnings despite the above line, you can be sure its a configuration problem. cheers, Hrishi -- 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]
Re: [PHP] ASP / PHP / embedded scripting (possibly OT)
other languages could be utilized in place of VB(yuck)) you're right !! that jogged my memory. i remember reading on M$DN (Jan 2000) that ASP could be generated with many languages (most of them third party extensions) one of them was Python. however i do not have any details other than the above, a preliminary search of M$DN online for the keyword 'python' yields : http://msdn.microsoft.com/library/psdk/cdo/_olemsg_about_active_server_pages.htm i think you can find your way from here, cheers, Hrishi -- 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]
Re: [PHP] checking image extensions
if ((substr($imgName, -4) != ".jpg") || (substr($imgName, -4) != ".gif")) this case, in plain english is : if ext is not jpg, OR if ext is not gif, error the ext will never be both jpg and gif at the same time, so you're looking for the condition: if ((substr($imgName, -4) != ".jpg") (substr($imgName, -4) != ".gif")) { //error } else { //do image processing thing. } also note, some progs. save jpegs as .jpeg -- 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]
Re: [PHP] MySQL: Add Autoincrement Field?
On Saturday 17 February 2001 10:20, Jeff Oien wrote: So if I want to delete a record by title, I'll end up deleting all songs with that title. just for the discussion, you can use a delete query like "delete from song_list where song_title='title' and song_book='book'" to delete only one record, assuming that song names are unique per book. however, with scalability and performance taken into consideration, an index with a unique id makes a lot of sense. note that you can have only one autoindex field per table as of mysql 3.22.* cheers, hrishi -- 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]
Re: [PHP] DefaultType, FreeBSD, Mod_Rewrite, trailing slash
RewriteCond %{SCRIPT_FILENAME} -d i aint no guru but try puttin %{REQUEST_URI} up there in place of SCRIPT_.. hrishi -- 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]
Re: [PHP]Spider script in PHP.
On Friday 09 February 2001 21:28, Angerer, Chad wrote: maybe late and all, this pieca code was lying around somewhere in my socks ;) see if ya can use it, hrishi begin code snippet ? function recurse($from,$func="echo") { if(strrchr($from,"/")=="/") $from=strrev(substr(strrev($from),1)); $from=str_replace("//","/",$from); chdir("/"); $fromdir=0; $fromdir_class=dir($from); $fromdir=$fromdir_class-handle; $currpath=$fromdir_class-path; chdir($currpath); $dirs=array(); $anchs=array(); $cnt=0; rewinddir($fromdir); while($fname=readdir($fromdir)) { if(is_dir($fname)) { $dirs[]=$fname; } else { $func($currpath.'/'.$fname); } } closedir($fromdir); reset($dirs); while($dir=current($dirs)) { if($dir!="." $dir !="..") { recurse($currpath . '/' . $dir); } next($dirs); // echo "bru::$from/ubr"; } } recurse("/home/public_html/"); ? end code snippet -- -- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. -- 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] *Animated* images. (repost)
Hello, I'm sorry for the repost, but the last one was misunderstood (i think). i'm looking for ways to generate *animated* images using PHP. thanks, Hrishi
[PHP] Animated / Streaming GIF
hello, is there any way to create an animated GIF [or PNG] image using the php image functions ? thanks, Hrishi
Re: [PHP] multiple function returns
On 25 Jan 2001 13:04:27 +0800, Jamie wrote: return array($lang_pref,$currancy_pref); if you make this return array("language" = $lang_pref, "currency" = $currency_pref) you can store the value and reference it by name (eg) $prefs=your_func($whatever); echo "language pref: ".$prefs["language"]; echo "currency pref: ".$prefs["currency"]; hope this helps. Hrishi
Re: [PHP] Search for the documentation
why dont you download the BIG one-file manual compilation from http://www.php.net and use the find t0ol in your web browser ? just my $0.02 --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. - Original Message - From: "Jamie" [EMAIL PROTECTED] To: "PHP" [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 10:20 AM Subject: [PHP] Search for the documentation I'm one of those ppl who find it hard to sit and read documentation especially manuals like the PHP one - presented HTML with no inbuilt search functions. Being a fairly novice programmer and more of a designer I'm not even that familiar with the programming terms to figure out what sections to find what I'm looking for. Sooo -has anyone written a PHP search script for the documentation. I'd like to be able to be able to do it similar to the windows (or most other) find box where it will sort through all the pages until it hits the string I'm after then if that's not it I can hit next and go onto the next matching string that it finds... I guess what I'm thinking of would have to run in a framed html [search at top and manual at bottom] but any other suggestions would be welcomed. Jamie -- 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 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] how to escape ? and ?
Hello all, I'm working on a script that processes and returns a php script. i need to know how to escape the ? and the ? in the string constants that make up the script. thanks, Hrishi -- 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] general CGI question
Hello, I need to know how to get apache to parse CGI output with the SSI parser (the [php] script will have includes, which need to go through mod_include). changing the mime-type to x-server-parsed or anything hooked by mod_include doesnt help. thanks, Hrishi -- 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]
Re: [PHP] I love/hate FrontPage - need another HTML editor.
If you're still interested, try cooledit for linux/unix http://cooledit.sourceforge.net/ --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. -- 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] Template parser
Hello, Is it possible using apache .htaccess to have every file served from a particular domain/directory pass through a custom script? or is it necessary to make changes at the root level? Thanks, Hrishi -- 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: Is there an error??
$odate_sql is not initialized. --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. - Original Message - From: "Dhaval Desai" [EMAIL PROTECTED] To: "Hrishi" [EMAIL PROTECTED] Sent: Sunday, January 14, 2001 4:59 PM Subject: Is there an error?? Hiee Guys I am trying to do the following: but I get an error saying: * You have an error in your SQL syntax near 'dayofmonth(date_add('', INTERVAL 7 DAY)))' at line 2 * ?php $odate = date('Y m d'); $connect = mysql_connect("localhost"); $query = "insert into list(odate,edate) values($odate,dayofmonth(date_add('$odate_sql', INTERVAL 7 DAY))"; $execute = mysql_db_query("dubaiteenz",$query); if($execute) { echo "Success, you are thinking in the right direction"; } else { echo mysql_error(); } ? Can anybody help me out please Thanx! 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]
Re: [PHP] Send Authorization: base64 Header
i'dve waited for your reply but i'm going home now so check the RFC : http://www.freesoft.org/CIE/RFC/index.htm look for Hypertext transfer protocol, v 1.0 in that look for a chapter called client authentication or somehting like that. that should do it. Hrishi -- 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]
Re: [PHP] Months...Problem..
try using the date_* functions in mysql its somewhere in the manual reference section, date and time functions. --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. - Original Message - From: "Dhaval Desai" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 13, 2001 12:41 PM Subject: [PHP] Months...Problem.. Hiee! I am having a problem with months...count in a mysql database.. See what I want is 1st column will have the current date.. 2nd column will add 7 to the current date and store it. This will be for all the 12 months.. So I want the things to happen automatically..I mean one script which will check the months and automatically show output in html page where one columns as : Date when entry was made. Second Column Date when it expires = [Date when entry was made + 7] I really got confused..with this one..Coz When I get current date for the month of January as 30, the expire date becomes... 37. LOL [not logical,,perhaps bad programming on my part]; Help me out please.. Thanx! 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 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]
Re: [PHP] Months...Problem..
ok, here DATE_ADD(date,INTERVAL expr type) and here http://www.mysql.com/doc/D/a/Date_and_time_functions.html --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. - Original Message - From: "Dhaval Desai" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 13, 2001 12:41 PM Subject: [PHP] Months...Problem.. Hiee! I am having a problem with months...count in a mysql database.. See what I want is 1st column will have the current date.. 2nd column will add 7 to the current date and store it. This will be for all the 12 months.. So I want the things to happen automatically..I mean one script which will check the months and automatically show output in html page where one columns as : Date when entry was made. Second Column Date when it expires = [Date when entry was made + 7] I really got confused..with this one..Coz When I get current date for the month of January as 30, the expire date becomes... 37. LOL [not logical,,perhaps bad programming on my part]; Help me out please.. Thanx! 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 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]
RE: [PHP] Dynamic 'left menu's' on site: Like a windows explorer system???
take a look at phpmyadmin. they have something similar. i cant remember the URL (and i'm too lazy) but u can find it from http://freshmeat.net/projects/phpmyadmin -- 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]