Re: [PHP] exec() and passthru()

2003-06-19 Thread Alberto Ferrer
not is more easy use system ? $output = system('/path/to/a.out'); -- -- Alberto Ferrer [EMAIL PROTECTED] http://www.barrahome.org -- Syntax Error in KITCHEN.H: COFFEE not found. Jason Wong

[PHP] Re: exec() and passthru()

2003-06-19 Thread Mignon Hunter
Still no out put here's my script test.php: $output = shell_exec(/var/www/htdocs/vertex_test/a.out); echo $output; tried and ''. Both test.php and a.out are in same directory and both have 777 perms. also tried $output = shell_exec(./a.out);

Re: [PHP] Re: error handling

2003-06-19 Thread CPT John W. Holmes
I looked in the manual (twice now). I want to keep logging to the log file but print to browser on this one script. I have in my script: error_reporting (E_ALL); error_reporting (E_ERROR | E_WARNING | E_PARSE); but they're still only being logged to file. I dont have access to php.ini.

Re: [PHP] Re: two php installations

2003-06-19 Thread Terje Torkelsen
ok.. thanx ive looked at it a little, and havent tested this yet as my server broke down recently. but i thought this might work: the php4 and php5 modules have different modules name, if i dont remember totaly wrong, so writing LoadModule php4_module modules/libphp4.so LoadModule

[PHP] Re: file downloading

2003-06-19 Thread Bobby Patel
create a script getFile.php when this is called first update the database, then using header you can stipulate what type of document it is and it will prompt for download for example for a Word document ?php #Query here to update the database #then after successful output the headers

Re: [PHP] Why Fatal Error ?

2003-06-19 Thread Leif K-Brooks
Tony Arcucci wrote: Why this error ( Linux Redhat 8.0, PHP 4.2.2): Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1048576 bytes) in /var/www/html/xpai/xmail.class on line 71 Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 131

[PHP] PHP processing for .html files

2003-06-19 Thread Joshua Chapman
I was wondering if there was a way to stick PHP code into html docs and have it processed only in certain web folders. I'm running a Windows 2000 server... IIS with the CGI version of PHP 4.3. not very server savvy so I'm not really sure how to make it work.

[PHP] Migrating pre-4.1 code to a post-4.1 server with register_globals on

2003-06-19 Thread Johnson, Kirk
A heads-up to those who are moving old code with register_globals on to a server with a newer PHP version and register_globals still on: In the old days, the rule was simple. For a session variable, whatever value was in the global variable at the end of the script was what was saved to the

Re: [PHP] Re: exec() and passthru()

2003-06-19 Thread Jason Wong
On Friday 20 June 2003 02:55, Mignon Hunter wrote: Still no out put here's my script test.php: $output = shell_exec(/var/www/htdocs/vertex_test/a.out); echo $output; tried and ''. Both test.php and a.out are in same directory and both have 777 perms. OK, it *ought* to work.

Re: [PHP] Convert KB to MB?

2003-06-19 Thread Brent Baisley
Ahhh, but then marketing gets involved and changes the 1024 to 1000 and ta da, you now have more MegaBytes. 1024 is the right number to use, but don't be surprised if it doesn't match with some numbers you might compare it to. On Thursday, June 19, 2003, at 02:45 PM, Mike Migurski wrote: Is

[PHP] Month loop

2003-06-19 Thread drparker
Is there any way I could loop thru and print all the month names (i.e. January, February)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Month loop

2003-06-19 Thread CPT John W. Holmes
Is there any way I could loop thru and print all the month names (i.e. January, February)? Just make an array and loop through the array. You know the rest of the names, right? :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] SNMP v2

2003-06-19 Thread Russell Handorf
i'm having a heck of a time getting snmpv2 to work with php. does anyone else have it working yet? i'm on rh 7.3 with apache v 1.3.23-14 and php v 4.1.2-7.3.6 on a test system not on the internet. what i'm trying to accomplish is a mib walk with php on a device that only supports snmpv2. here

Re: [PHP] Month loop

2003-06-19 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 20:58, lines prefixed by '' were originally written by you. Is there any way I could loop thru and print all the month names (i.e. January, February)? for($i=1;$i13;$i++){ echo date(F,mktime(0,0,0,$i,1,1)); } For

RE: [PHP] Month loop

2003-06-19 Thread Dan Joseph
Hi, Is there any way I could loop thru and print all the month names (i.e. January, February)? I suppose you could do something like: for ($i = 1; $1 = 12; $i++) { echo date(F, mktime(0, 0, 0, $i, 1, 2003)) . br; } Unless you just want to

Re: [PHP] Month loop

2003-06-19 Thread drparker
that's what I'm looking for - thanks. David Nicholson wrote: Hello, This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 20:58, lines prefixed by '' were originally written by you. Is there any way I could loop thru and print all the month names (i.e. January, February)?

[PHP] OOT Payflow Urgent

2003-06-19 Thread Haseeb Iqbal
hi all, i am using curl to post data to the payflow link server. now here are the questions that i want to ask. here is the server stats Linux+ php + mysql + curl + ssl 1) now i want to know if curl is safe to use? i know about the payflow sdk but i also know that i can execute the sdk by exec

Re: [PHP] header(); Issue

2003-06-19 Thread Chris Shiflett
--- SpyProductions Support Team [EMAIL PROTECTED] wrote: I have this in a script: header(Location: $Relative/outstanding.php?pdd=1pddid=$poid); A good way to make sure you are sending the header you think you are is to use echo instead of header() for a quick debugging run. For example:

[PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread Sparky Kopetzky
Yes, this question is about PHP cookies. Two questions: 1. How do you setup a cookie that will not expire?? 2. How do you put 2 items that you want to save in the cookie and retrieve?? Examples in the PHP manual only show how to work with a single value. Thanks! Robin E. Kopetzky Black Mesa

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 21:13, lines prefixed by '' were originally written by you. Yes, this question is about PHP cookies. Two questions: 1. How do you setup a cookie that will not expire?? You can't, but you can use an expiry date in the

[PHP] Re: exec() and passthru()

2003-06-19 Thread Mignon Hunter
Thanks everybody system() worked in this case, but safe mode off, had to switch machines but at least i got something. The below produced my output: system('/var/www/html/vertex/a.out'); - not is more easy use system ? $output =

Re: [PHP] Month loop

2003-06-19 Thread Tyler Lane
?php $months = array(, January, February, March, April, May, June, July, August, September, October, November, December); foreach( range( 1, 12 ) as $month ) { print $months[ $month ]; } ? On Thu, 2003-06-19 at 12:57, drparker wrote: Is there any way I could loop thru and print all the

RE: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread Henning Sittler
1. Set a big value in seconds for the time argument 2. Send 2 cookies OR Create one string value containing the two values you want to save, seperated by a a sepcific character of your choice and send this new value as your cookie. Remember to parse the cookie's value when you request it in

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread Brent Baisley
Both. 1. If you don't specify an expiration date, it's good for the session. Usually this means until the exit the browser. Otherwise you must set a date far into the future. 2. You can name cookies, thus storing multiple values in multiple cookies. Or you can store multiple values in one

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread CPT John W. Holmes
1. How do you setup a cookie that will not expire?? You can't. 2. How do you put 2 items that you want to save in the cookie and retrieve?? Examples in the PHP manual only show how to work with a single value. You can't. Use an array or two cookies. ---John Holmes... -- PHP General

RE: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread Dan Joseph
Hi, 1. How do you setup a cookie that will not expire?? You can't however you could just set the year into the distance future a few years. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread Milan Reznicek
Hi, this is an extract from setcookie documentation - how to handle a cookie array. Is this what you were looking for?? You may also set array cookies by using array notation in the cookie name. This has the effect of setting as many cookies as you have array elements, but when the

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread Steve Keller
At 6/19/2003 02:10 PM, Sparky Kopetzky wrote: 2. How do you put 2 items that you want to save in the cookie and retrieve?? Smuch 'em together into a single variable with a delimiter you're sure won't show up in either value, something like #@@#, between them. Then, when you read the cookie

[PHP] securing a graphic

2003-06-19 Thread Ryan Holowaychuk
Is there a way in PHP that I can secure a graphic, so that when the page is loaded it will show the graphic, but is not able to be right clicked on or downloaded to there desktop. Thanks Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] securing a graphic

2003-06-19 Thread Haseeb Iqbal
yeah there is a way you have to use some third party tools for that. http://www.antssoft.com/htmlprotector/index.htm .php can't do this AFAIK - Original Message - From: Ryan Holowaychuk [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Sent: Friday, June 20, 2003 2:26 AM Subject:

[PHP] Problem while retrieving data from cookie with unserialize

2003-06-19 Thread Sævar Öfjörð
Hi, I’m having this problem: I set a cookie using this: $sql = UPDATE member SET cookie=$cookie WHERE . id = $this-id; $this-mysql-query($sql); $cookie =

[PHP] strange crypt() problem

2003-06-19 Thread Huzz
I have this bit of code to crypt user password in user registration as shown below. $cryptpass=crypt($makepass); which generated crypted password like eg 37Q9fppLHc4fQ with php 4.0 And am using the codes below to check for valid login.. // $pass - from login page // $dbpass - from the database

RE: [PHP] strange crypt() problem

2003-06-19 Thread Sævar Öfjörð
Try using md5() instead because it is more widely supported than crypt() and it leaves no room for errors. Hope it helps, Sævar ICELAND -Original Message- From: Huzz [mailto:[EMAIL PROTECTED] Sent: 19. júní 2003 21:43 To: [EMAIL PROTECTED] Subject: [PHP] strange crypt() problem I

Re: [PHP] securing a graphic

2003-06-19 Thread Steve Keller
At 6/20/2003 02:33 AM, Haseeb Iqbal wrote: yeah there is a way No there is not a way. The way the web works is by sending your content to someone else' computer. Once it's there, they have a copy, whether it's in their cache or actually saved as a file. There's no way to prevent a determined

[PHP] explode, split, or what?

2003-06-19 Thread Kyle Babich
Thank you to those of you who helped me with my last problem earlier today. Now I have a text file (setup.txt) that has a series of values all seperated by \r\n's. Inside of another file I'm trying to read setup.txt into $rawSetupData and explode that with \r\n's into an array called

Re: [PHP] strange crypt() problem

2003-06-19 Thread Huzz
I already have about 1000 members their password crypted using crypt(); would they able to login using their password or they have to change it again?? Thanks SævË Ölêöyp [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try using md5() instead because it is more widely supported than

RE: [PHP] explode, split, or what?

2003-06-19 Thread Sævar Öfjörð
why don't you just do this? *** ?php if(file_exists(setup.txt)){ $lines=file(setup.txt); echo stripslashes($lines[0]); } else echo Error opening \setup.txt\; ? *** file() returns the file in an array, each line as new value, so line nr. 1 is $line[0], line nr. 2 is $line[1] etc... I added

Re: [PHP] explode, split, or what?

2003-06-19 Thread Steve Keller
At 6/19/2003 10:41 PM, Kyle Babich wrote: Inside of another file I'm trying to read setup.txt into $rawSetupData and explode that with \r\n's into an array called $setupData. Why on earth? http://us4.php.net/file ?php if (file_exists(setup.txt)) { $rawSetupData = readfile(setup.txt);

RE: [PHP] strange crypt() problem

2003-06-19 Thread Sævar Öfjörð
Well, if you don't find another solution for this, you could generate random passwords for each member and mail them to them. Then you would md5() them and update the DB with new md5()'ed passwords... This is not the easy way out so I hope someone finds out why the crypt() is behaving strangely.

RE: [PHP] strange crypt() problem

2003-06-19 Thread Jeff Harris
It looks like Some operating systems support more than one type of encryption. In fact, sometimes the standard DES-based encryption is replaced by an MD5-based encryption algorithm. The encryption type is triggered by the salt argument. At install time, PHP determines the capabilities of the crypt

[PHP] How to UPDATE only certain fields

2003-06-19 Thread Matt Hedges
Hello, I am building an database of wines. I have fields of stuff like year, grape, etc. However, I want to be able to go in and change something without having to retype every field. As I have it right now, I use the UPDATE where id=$id function. However, this changes EVERY field. For

Re: [PHP] How to UPDATE only certain fields

2003-06-19 Thread Thorsten Krner
Hi Matt Am Freitag, 20. Juni 2003 01:06 schrieb Matt Hedges: Hello, I am building an database of wines. I have fields of stuff like year, grape, etc. However, I want to be able to go in and change something without having to retype every field. As I have it right now, I use the UPDATE

RE: [PHP] How to UPDATE only certain fields

2003-06-19 Thread Sævar Öfjörð
The right SQL syntax would be: UPDATE $table SET type='$type', year='$year' WHERE id='$id'; Sævar - ICELAND -Original Message- From: Matt Hedges [mailto:[EMAIL PROTECTED] Sent: 19. júní 2003 23:07 To: [EMAIL PROTECTED] Subject: [PHP] How to UPDATE only certain fields Hello, I am

[PHP] [CFP] The gathering: International PHP Conference 2003 fall edition

2003-06-19 Thread Björn Schotte
Hi folks, International PHP Conference 2003 is coming! From 11/02 to 11/05 Frankfurt/Main, Germany, will be the hot-spot of the PHP world where another issue of the traditional PHP Conference will take place. We're now calling for papers and contributions to this unique event. Whether you're

Re: [PHP] strange crypt() problem

2003-06-19 Thread Huzz
Thanks guys for your suggestions ... Jeff Harris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It looks like Some operating systems support more than one type of encryption. In fact, sometimes the standard DES-based encryption is replaced by an MD5-based encryption algorithm. The

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-19 Thread Joseph Szobody
For (2) you could even build an array, object, etc. if you need to store several values and use serialize() right before setting the cookie, and unserialize when you retrieve the cookie. Joseph Henning Sittler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 1. Set a big value in

[PHP] Pre-4.1 / register_globals=off

2003-06-19 Thread Lee Herron QCS
If register_globals is turned off, and the php version being used is pre-4.1 (meaning no $_SESSION array) how do you access sessions values? How do you register them? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Pre-4.1 / register_globals=off

2003-06-19 Thread Sævar Öfjörð
From manual on www.php.net: Use $HTTP_SESSION_VARS with PHP 4.0.6 or less Sævar - ICELAND -Original Message- From: Lee Herron QCS [mailto:[EMAIL PROTECTED] Sent: 20. júní 2003 00:01 To: [EMAIL PROTECTED] Subject: [PHP] Pre-4.1 / register_globals=off If register_globals is turned off,

[PHP] safe mode and mail

2003-06-19 Thread Senih .
Hi, safe mode on and mass mailing wished. I know that it's not possible to set the time limit, when safe mode is on. Sure mass mailing using mail function takes longer than default execution time of the script. My codes should be portable, that why modification of php.ini is not an option. The

[PHP] email pipe - attachment problem (zip files)

2003-06-19 Thread Duncan
Hi, I just wrote an script, which scans emails passed to it via a pipe and adds the content to a MySQL database. Attachments are also supported, however, zip files simply don't work. They get processed saved into the database just fine, but once i grab such a zip file from the database, it

[PHP] When to escape slashes, and when not to???

2003-06-19 Thread Gerard Samuel
I have a class method that does one thing and one thing only. Escape characters before going to the DB. Part of it is - if (!get_magic_quotes_gpc()) { $string = pg_escape_string( $string ); } return ' . $string . '; In everyday get/post operation it seems to work flawlessly. I've come across a

[PHP] RE: CRM for website

2003-06-19 Thread YC Nyon
this is slightly off-topic. I run a nonprofit website where people are invited to contribute articles, papers, etc. i'm in search of a system where i can manage all this website maintainence (backups, restarting servers) and on-going correspondence. in some cases, they ask me to contact them 2

Re: [PHP] securing a graphic

2003-06-19 Thread Hugh Bothwell
From: Ryan Holowaychuk [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Sent: Friday, June 20, 2003 2:26 AM Subject: [PHP] securing a graphic Is there a way in PHP that I can secure a graphic, so that when the page is loaded it will show the graphic, but is not able to be right

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-19 Thread Mark Tehara
?php $myimage=..//..//site//images//2.jpg; header(Content-type: image/jpeg); fopen ($myimage, r); readfile($myimage) ; fclose($myimage); ? This seemed to do the trick for me. Thank you. / Mark - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Awlad Hussain [EMAIL

[PHP] Multiple Submission of the Same Form

2003-06-19 Thread Miranda, Joel Louie M
Hello, Any ideas on this? I have a form some users try and try to reload and it floods my mailbox Thanks, Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple Submission of the Same Form

2003-06-19 Thread John W. Holmes
Miranda, Joel Louie M wrote: Any ideas on this? I have a form some users try and try to reload and it floods my mailbox Restrict them from submitting the form for X seconds? or Use a middle-man page that processes your form and then redirects back to the form with a clean URL; the refresh will

Re: [PHP] Multiple Submission of the Same Form

2003-06-19 Thread Leif K-Brooks
Miranda, Joel Louie M wrote: Hello, Any ideas on this? I have a form some users try and try to reload and it floods my mailbox This is one of the most asked questions, right behind OMG! MY VARIABLES DONT PASS111. Search the archives. -- The above message is encrypted with double rot13

RE: [PHP] Multiple Submission of the Same Form

2003-06-19 Thread Miranda, Joel Louie M
Do you have examples? -Original Message- From: Mark Tehara [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 11:33 AM To: Miranda, Joel Louie M Subject: Re: [PHP] Multiple Submission of the Same Form Use a Databace and have a DateStamp String and an IP string, then when the post

[PHP] Image Border Help

2003-06-19 Thread Nilaab Y.
Hey guys, I want to know how I can add different border styles around an image. Here's what I do to create an image: function output_new_img () { $new = $this-calc_new_size ($this-max_w, $this-max_h); $new_w = $new[0]; $new_h = $new[1]; $src_img = ImageCreateFromJPEG

[PHP] preg_match

2003-06-19 Thread Aaron Axelsen
Title: preg_match -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to code a search, and i need to get my matching _expression_ to work right. The user can enter a value swhich is stored in the vraible $search. What the below loop needs to do, is search each entry of the array for

<    1   2