RE: [PHP] My Sincere Request!![Scanned]

2003-05-27 Thread Michael Egan
And what exactly has this got to do with PHP :-) -Original Message- From: REV DR EGO MOMOH [mailto:[EMAIL PROTECTED] Sent: 01 January 1999 17:59 To: [EMAIL PROTECTED] Subject: [PHP] My Sincere Request!![Scanned] BRANCH MANAGER, UNITED BANK FOR AFRICA PLC ILUPEJU BRANCH LAGOS NIGERIA A

[PHP] Regexp question...

2003-05-27 Thread Andrew D. Luebke
OK, here is the regexp command I am trying to use: $split_filename = preg_split('/\./', $_FILES["userfile"]["name"], -1); However, when I do a count($split_filename) I don't get what I expect. For instance if the input is: abc.xyz.123 I get 2 from count, why doesn't preg_split put three ele

[PHP] My Sincere Request!!

2003-05-27 Thread REV DR EGO MOMOH
BRANCH MANAGER, UNITED BANK FOR AFRICA PLC ILUPEJU BRANCH LAGOS NIGERIA ATTN: PRESIDENT/C.E.O I am pleased to get across to you for a very urgent and profitable business proposal, though I don't know you neither have I seen you before but my confidence was reposed on you when the Chief Executive

Re: [PHP] include_path

2003-05-27 Thread Ashley M. Kirchner
Tom Rogers wrote: You can do this at the top of each page ini_set ("include_path",'./:/local/path/:'.ini_get("include_path")); Found it. I was looking for the php_value option that I can stick in the vhost directive. Works now, thanks! -- H| I haven't lost my mind; it's backed up on tap

Re: [PHP] include_path

2003-05-27 Thread Tom Rogers
Hi, Wednesday, May 28, 2003, 2:56:31 PM, you wrote: AMK> Can I adjust the include_path on a specific vhost, as opposed to AMK> having it globally done in php.ini ? If so, how please? AMK> -- AMK> H| I haven't lost my mind; it's backed up on tape somewhere. AMK> +

[PHP] include_path

2003-05-27 Thread Ashley M. Kirchner
Can I adjust the include_path on a specific vhost, as opposed to having it globally done in php.ini ? If so, how please? -- H| I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner

Re: [PHP] strip_tags() Quandry....

2003-05-27 Thread Justin French
on 28/05/03 2:56 PM, CF High ([EMAIL PROTECTED]) wrote: > I've got a chunk of HTML text I'd like to format for insertion into our > mySql db. > > Let's say $html_string equals the following: > > > 1 > Bardo, Jesse > S > A > Andover, MA > > > To setup this chunk of text for insertion I first

[PHP] Re: Help With Queue mail

2003-05-27 Thread Manuel Lemos
Hello, On 05/27/2003 11:40 AM, Manoj Nahar wrote: My application requires mail to be sent as reminder before say 10 minutes of even time in future. I have read about an option to send mail to queue of sendmail and sendmail takes over from there. I have tried this but without any luck. If you ne

[PHP] Re: Mail problem

2003-05-27 Thread Manuel Lemos
Hello, On 05/27/2003 07:39 AM, Rosen wrote: The problem is in the "Cc: Support <[EMAIL PROTECTED]>\r\n". If I write it "Cc: [EMAIL PROTECTED]" - i.e. only E-mail adress without "Support <..mailadress>" - it works. Can someone tell me where is the problem ? This looks like one of those bugs of the

Re: [PHP] secure code

2003-05-27 Thread Evan Nemerson
Good question! I rarely see this type of question here. http://www.dwheeler.com/secure-programs/ is a good one- even has a small section dedicated specifically to PHP The Shmoo Group has a good list at http://www.shmoo.com/securecode/ And if you're one of the learn by example of how not to do i

[PHP] Re: secure code

2003-05-27 Thread Marco Weber
hi, well, there are a lot of articles on the internet... however, i bought a book... it really helped a lot! :) there are so many things, developers can do worng, but here is a listing of the most important ones: but the most important thing you can do is to check very varaible for bad character

[PHP] Re: Wild Card with unlink

2003-05-27 Thread Vernon
Figured it out thanks anyway for looking. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strip_tags() Quandry....

2003-05-27 Thread CF High
Hey all. I've got a chunk of HTML text I'd like to format for insertion into our mySql db. Let's say $html_string equals the following: 1 Bardo, Jesse S A Andover, MA To setup this chunk of text for insertion I first use strip_tags($html_string); that results in: 1 Bardo,

[PHP] Wild Card with unlink

2003-05-27 Thread Vernon
I'm trying to delete two files in on fell shoop. One is defined with $file2 // returns "filename without extension" $filename_small = substr($file1, 8, 10); // returns define location and file name to delete $file2 = "/home/httpd/vhosts/servername/httpdocs/photoalbum/$filename_small"; // the other

Re: [PHP] how to read the stuff that got piped ("|") to the script?

2003-05-27 Thread Joe Stump
If you're on any UNIX: $fp = fopen('/dev/stdin','r'); if($fp) { while(!feof($fp)) { $line = trim(fgets($fp,4096)); echo $line."\n"; } } ?> On Tuesday, May 27, 2003, at 06:17 PM, Marco Weber wrote: hi, i've a simple question: how can i read the stuff that got

[PHP] secure code

2003-05-27 Thread Tim Burgan
Hello, I'm wondering if you can recommend any resources that discuss writing secure code and how to put the best methods in place to prevent hackers. I'm particularly looking at resources from the web coding perspective, not securing a server. Or, what things to you do to 'block' hackers. Thank

Re: [PHP] $_FILES help. Counting help

2003-05-27 Thread Jordan S. Jones
Didier, My guess is in your HTML, you have the input(s) named as 'file'.. Because of the way that PHP handles it's POST/GET variables, you will want to redeclare your input names in your HTML to 'file[]'... This basically defines that it is an array.. Hope that helps, Jordan Didier McGillis wro

[PHP] Matching titles from distinct data sources

2003-05-27 Thread Composite Design
Hello Does anyone know of an algorithm or program for matching pieces of text (such as film titles) that are conceptually the same, but which may be written/spelled differently? eg. I need something which will identify a (likely to be) the same: "The Matrix Reloaded" "Matrix Reloaded, The" "Matri

[PHP] $_FILES help. Counting help

2003-05-27 Thread Didier McGillis
I have three file fields in a form. I need it to upload those three items or two or one. I can get it to upload one, but not all three, habing trouble with the for loop and how I get a value of $i. if(isset($_POST['upload'])){ if (!empty($_FILES['file']['name'])){ $formats = arra

Re: [PHP] but if i do so, my script won't stop reading... :(

2003-05-27 Thread Marco Weber
hi > It is the stdin of the script, you can open that file handle with fopen( > "stdin", "r" ); i believe i also thought so, but there is a big problem: the script runs in an infinite loop... :( that's my piece of code: $message=''; $input=fopen('php://stdin', 'r'); while(!feof($input)) $message.=

Re: [PHP] how to read the stuff that got piped (

2003-05-27 Thread Alex Earl
> hi, > > i've a simple question: > > how can i read the stuff that got piped ("|") to the php-script? > > i.e. "ls -l | /home/myuser/phpscript.php" [snip] It is the stdin of the script, you can open that file handle with fopen( "stdin", "r" ); i believe Slide -- PHP General Mailing List (http:

[PHP] how to read the stuff that got piped ("|") to the script?

2003-05-27 Thread Marco Weber
hi, i've a simple question: how can i read the stuff that got piped ("|") to the php-script? i.e. "ls -l | /home/myuser/phpscript.php" thanks in advance for any help Marco Weber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cookies

2003-05-27 Thread chris sherwood
Hi all I have a cookie on the system and I know the name of the var set in it but I seem to be unable to retrieve the info in the cookie. any pointers? Chris Sherwood Nortia Learning Systems (604)717-4323 office [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Fw: [PHP] greater than question

2003-05-27 Thread Matt Grimm
You could put the vars into an array, and use the max fcn: $limit = max($varArray); foreach($varArray as $value) { if ($value == $limit) { // run something } } -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage,

[PHP] php safemode woes

2003-05-27 Thread km
Hi all, i am running a php script with script owner say x (uid = 501) with safe mode on. php version 4.2.2. i am generating some temporary files in the runtime with tempnam() and storing them in a in temp directory . but the script cant access the temporary files in the temp dir as they are

[PHP] Error with directories

2003-05-27 Thread j0rd1 adame
Hi, I compiled PHP 4.2.3 like this ./configure --with-oracle=/home/oracle/OraHome1/ -with-oci8=/home/oracle/OraHome1/ --with-mysql=/usr --with-apxs I have my DocumentRoot in /var/www when i access php files in /var/www everything's fine, but when I access files in /var/www/whatever i get this er

Re: [PHP] ftp_ssl_connect() Problem

2003-05-27 Thread Shawn McKnight
I too am having problems getting ftp_ssl_connect() enabled, any help is very appreciated. What I am using is as follows, please let me know what it is I am missing.. PHP 4.3.0 installed as a Static Module with Apache 1.3.24 This is a re-configuration of an existing installation of PHP 4.3.0 I h

RE: [PHP] greater than question

2003-05-27 Thread Steven Kallstrom
Steve, Your best bet is to probably stick those values into an array... then you can sort it and operate on the largest values... SJK > I have 4 > variables that each have a number in them. I need to find which one has > the highest number. I then just need to do something with that number.

RE: [PHP] Re: What program do you use to Create PHP Application?

2003-05-27 Thread Edward Peloke
Just got dreamweaver and am curious what benefits you got from PHAkt over what's there in dreamweaver? -Original Message- From: zerof [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: What program do you use to Create PHP Application

Re: [PHP] greater than question

2003-05-27 Thread R'twick Niceorgaw
put them in an array an sort it ? - Original Message - From: "Steve Buehler" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Tuesday, May 27, 2003 3:45 PM Subject: [PHP] greater than question > Hopefully someone has done this and has an easy answer. I know that I can > do what I

Re: [PHP] Anyone know of a php script to extract files from a zipfile.

2003-05-27 Thread Al
Does appear to be promising. I'll try it. His description is a bit vague about what zip formats it handles. Evan Nemerson wrote: http://dev.maxg.info/projets/projet.ziplib.en.maxg maybe??? haven't tried it On Tuesday 27 May 2003 12:16 pm, Al wrote: I doing a little photos album applicatio

[PHP] greater than question

2003-05-27 Thread Steve Buehler
Hopefully someone has done this and has an easy answer. I know that I can do what I need with a LOT of code, but am trying to come up with something a little shorter that 50 lines of code. Here is the problem. I have 4 variables that each have a number in them. I need to find which one has

Re: [PHP] Anyone know of a php script to extract files from a zip file.

2003-05-27 Thread Evan Nemerson
http://dev.maxg.info/projets/projet.ziplib.en.maxg maybe??? haven't tried it On Tuesday 27 May 2003 12:16 pm, Al wrote: > I doing a little photos album application and I'd like my, non-techie, > users to be able to zip together their photos and upload them to a > folder on the site. I've got eve

Re: [PHP] Re: What program do you use to Create PHP Application?

2003-05-27 Thread Evan Nemerson
Nothing, except for the keyboard shortcuts are so damn addictive. I get out of emacs and it pisses me off that every application doesn't have that kind of power that easily accessible. Just like Opera & mouse gestures... On Tuesday 27 May 2003 06:56 am, David Grant wrote: > Joe Stump wrote: >

[PHP] Anyone know of a php script to extract files from a zip file.

2003-05-27 Thread Al
I doing a little photos album application and I'd like my, non-techie, users to be able to zip together their photos and upload them to a folder on the site. I've got everything going nicely except the unzipper. I would not like to teach them to use ftp, even with a browser. I'm on a virtual

[PHP] corrupt images

2003-05-27 Thread Jason Jacobs
Hi all. I've been struggling with getting images to upload cleanly. I'm using php 4.2.2. When I look at the uploaded file info, it gives me no errors and the file size is fine. But the picture is all messed up. I'm using the move_uploaded_file function. The max size is 8mb in php.ini, and

Re: [PHP] breaking up a string (every N chars)

2003-05-27 Thread zavaboy
Thanks! That helped! I didn't need the trim though... It brought my project together, better! "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > php.net/chunk_split > php.net/explode > > explode("\r\n", trim(chunk_split($String, 3, "\r\n"))); > > > On Monday 26 May 2003

Re: [PHP] Where's the cookie file?

2003-05-27 Thread CPT John W. Holmes
> sessions, on my server, go into /tmp. > > Doesn't there have to be a similar file saved on the server for setcookie? > > All I know is mine aren't in /tmp No, cookies are saved on the client. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

RE: [PHP] daily availability chart array

2003-05-27 Thread Jason Dulberg
Thank you for the response. I am not quite sure how that works, can you please give an example? Thanks. Jason > -Original Message- > From: Marek Kilimajer [mailto:[EMAIL PROTECTED] > Sent: May 27, 2003 8:13 AM > To: Jason Dulberg > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] daily availab

Re: [PHP] system requirements to use mail() function

2003-05-27 Thread Marek Kilimajer
Use mimemessage class, you can find it at www.phpclasses.org. Your need to use smtp_message class in there. Iñaki Atienza wrote: do I need to have a mail server running on the PHP server to send e-mails ? is there any possibilty to use an external SMTP server ? (my ISP's actually). Thanks for yo

[PHP] Where's the cookie file?

2003-05-27 Thread Sam
sessions, on my server, go into /tmp. Doesn't there have to be a similar file saved on the server for setcookie? All I know is mine aren't in /tmp Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] system requirements to use mail() function

2003-05-27 Thread Iñaki Atienza
do I need to have a mail server running on the PHP server to send e-mails ? is there any possibilty to use an external SMTP server ? (my ISP's actually). Thanks for your time iatz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session IDs and links...

2003-05-27 Thread Marek Kilimajer
No. BTW cookie is send as a header. Steven Kallstrom wrote: Hello, I have finally figured out sessions a little bit better... but I have a question... is there a way to pass the Session ID on to the next page via a simple link without placing the session ID in the URL... if there were

[PHP] Session IDs and links...

2003-05-27 Thread Steven Kallstrom
Hello, I have finally figured out sessions a little bit better... but I have a question... is there a way to pass the Session ID on to the next page via a simple link without placing the session ID in the URL... if there were a form the session ID is automatically placed as a hidden inpu

[PHP] Problem with big files

2003-05-27 Thread Martin
we would like to upload large files to the server ( 20 MB ). We have changed the configuration of php.ini in order to upload this files via http. We changed the following parameters: post_max_size = 25M file_uploads = On upload_tmp_dir =/tmpupload upload_max_filesize = 25M memory_limit = 25M als

[PHP] Hello! eBay Login Cookie Problem!!

2003-05-27 Thread sevenfiftyflat
Hi! I'm sure lots of you have already tackled this, and so I hope someone can help!!! I'm trying to write a PHP script to make it as easy as 1 or 2 clicks for me to launch my auctions, and I'm writing a db routine to handle payments, auto reminders and print out packing labels etc... so I'm

RE: [PHP] Installation help

2003-05-27 Thread Wim Paulussen
Did you already look up executables in the mysql/bin folder and ran them . Try launching winmysqladmin. -Oorspronkelijk bericht- Van: Brian Dunning [mailto:[EMAIL PROTECTED] Verzonden: Tuesday, May 27, 2003 6:07 PM Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Installation help Hi, I am a lam

RE: [PHP] Installation help

2003-05-27 Thread Jonathan Wilkes
Try downloading the mySQL control center for Windows. That may help you, also at least you can check if the service was started correctly. regards, Jonathan -Original Message- From: David Grant [mailto:[EMAIL PROTECTED] Sent: 27 May 2003 17:11 To: Brian Dunning Cc: [EMAIL PROTECTED] Subje

RE: [PHP] Validation function doesn't work (sort of...)

2003-05-27 Thread Jonathan Wilkes
ok, I admit it, I must have read the documentation wrong concerning "===", but I have only been writing PHP for a week or so. But I do love it, :-) Regards to all, Jonathan -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: 27 May 2003 17:17 To: Jonathan Wilkes Cc:

Re: [PHP] Installation help

2003-05-27 Thread David Grant
Brian Dunning wrote: I am a lamer & a newbie, and ran the PHP and MySQL installers on my XP box, but can't connect to any database and don't see any new processes running. Is there someplace I can find documentation for this that is optimized for the newbie lamer? Thanks, May be a stupid questio

Re: [PHP] Validation function doesn't work (sort of...)

2003-05-27 Thread Marek Kilimajer
$a === $b Identical *TRUE* if $a is equal to $b, and they are of the same type. (PHP 4 only) Jonathan Wilkes wrote: That's not his problem, he is using "===" euality check which just checks the "type" of data, hence his code is returning TRUE for every item in the array. cheers, Jonath

Re: [PHP] Validation function doesn't work (sort of...)

2003-05-27 Thread David Grant
Jonathan Wilkes wrote: That's not his problem, he is using "===" euality check which just checks the "type" of data, hence his code is returning TRUE for every item in the array. http://www.php.net/manual/en/language.operators.comparison.php Not so -- the identical ("===") comparison operator che

Re: [PHP] Validation function doesn't work (sort of...)

2003-05-27 Thread David Grant
Jason Lange wrote: for ($i = 0; $i < $vCount; ++$i) { if (($cryptUser === $validUser[$i]) && ($cryptPass === $validPass[$i])) { $retVal = true; + break; } else { $retVal = false; } } retu

RE: [PHP] Validation function doesn't work (sort of...)

2003-05-27 Thread Philip Olson
On Tue, 27 May 2003, Jonathan Wilkes wrote: > That's not his problem, he is using "===" euality check which just checks > the "type" of data, hence his code is returning TRUE for every item in the > array. === does not just check the type, it checks both type and value. I'm 98% sure I described

Re: [PHP] Installation help

2003-05-27 Thread Pushpinder Singh Garcha
I am having the same story on my Win XP system. I hv looked all over message brds @ phpbuilder/zend/php.net . No success Please let me know if you are able to sort it out. Thx --Pushpinder On Tuesday, May 27, 2003, at 12:07 PM, Brian Dunning wrote: Hi, I am a lamer & a newbie, and ran the PHP a

RE: [PHP] Validation function doesn't work (sort of...)

2003-05-27 Thread Jonathan Wilkes
That's not his problem, he is using "===" euality check which just checks the "type" of data, hence his code is returning TRUE for every item in the array. cheers, Jonathan -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED] Sent: 27 May 2003 17:03 To: Jason Lange Cc:

[PHP] Installation help

2003-05-27 Thread Brian Dunning
Hi, I am a lamer & a newbie, and ran the PHP and MySQL installers on my XP box, but can't connect to any database and don't see any new processes running. Is there someplace I can find documentation for this that is optimized for the newbie lamer? Thanks, - Brian -- PHP General Mailing List (

[PHP] Re:[PHP] Re: What program do you use to Create PHP Application?

2003-05-27 Thread fongming
Yes, I also use PHPEd to program, I've been using it's free verison until now. I've been search another better, but PHPEd is the best for me after all. Fongming from Taiwan. >PHPEd is absolutely fantastic > >It colours everything so you don't for

Re: [PHP] Validation function doesn't work (sort of...)

2003-05-27 Thread Philip Olson
When you found success in the loop you really should end the loop otherwise it will keep checking and will yield results as you describe. For example: while (1) { if (something) { $foo = true; break; } else { $foo = false; } } When $foo = true, the loop ends,

Re: [PHP] Fetch Array Problem

2003-05-27 Thread Philip Olson
On Tue, 27 May 2003, Todd Barr wrote: > Morning > > We recently moved out site to a new server, and scripts that use to work, no longer > do. > > Like mysql_fetch_array worked fine, but now I am getting this error > > mysql_fetch_array(): supplied argument is not a valid MySQL result resource

RE: [PHP] Validation function doesn't work (sort of...)

2003-05-27 Thread Jonathan Wilkes
Shouldn't your equality check be "==" instead of "===" ? Also, try modifying your loop so that after the first correct match, it does a return true; that way, you don't need to process the entire loop

[PHP] preg_match_all

2003-05-27 Thread Jay Fitzgerald
How do I create a preg_match for something like this? 7 PM I want to store the individual times in an array and then loop through them if that makes sense... I tried this but when i try to echo the results back out it doesnt work preg_match_all("| (.*)\n \n|U",$read

Re: [PHP] Fetch Array Problem

2003-05-27 Thread CPT John W. Holmes
Your query more than likely failed. If you had proper error checking, you'd of seen this already. Check mysql_error() after your query to see what the error is: $rs = mysql_query($query) or die(mysql_error()); or $rs = mysql_query($query); if($e = mysql_error()) { echo "Error occurred: $e"; } e

Re: [PHP] Mail problem

2003-05-27 Thread Mark
I don't believe you can use the form of "Someone <[EMAIL PROTECTED]>". I believe this is what the MTA receives as the MAIL TO (not to be confused with eth To: header), and it's not a legal format for that. --- Rosen <[EMAIL PROTECTED]> wrote: > Hi, > I'm using PHP 4.3.1 on Win98 and I have a probl

[PHP] Validation function doesn't work (sort of...)

2003-05-27 Thread Jason Lange
Hello all, I've created this nice validation function which compares a submitted username and password to an array of acceptable values. However, at the moment it will only match the *last* key in the array. Even when I /*know*/ that I typed in the correct values (typed them in Notepad and cop