[PHP] Re: Can't pass query string from HTML to PHP

2003-06-19 Thread Jan Grafström
Hi Robby, try to add this line to your php-file: $name=$_GET['name'] ; change to: Good luck! Jan "Robby Ku" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Hi, > > I've got a problem passing a query string from a HTML file to a PHP file. I created a HTML file called "welcome.ht

[PHP] How to secure site?

2003-06-19 Thread Andrew Afliatunov
Hello! I have an Apache web-server with PHP-4.3.2 installed. Directory structure of my DocRoot is as follows: www/ docs/ tm/ tts/ cache/ lib/ index.html docs, tm, tts are directories of projects, published through ftp by different people, lib - common directory, containing p

RE: [PHP] Can't pass query string from HTML to PHP

2003-06-19 Thread Martin Towell
check your php.ini file to see if you have register_globals set to "on" or "off" (probably "off") You can either turn it "on" or use $_GET["name"] -Original Message- From: Robby Ku [mailto:[EMAIL PROTECTED] Sent: Friday, 20 June 2003 4:06 PM To: [EMAIL PROTECTED] Subject: [PHP] Can't pass

[PHP] Can't pass query string from HTML to PHP

2003-06-19 Thread Robby Ku
Hi, I've got a problem passing a query string from a HTML file to a PHP file. I created a HTML file called "welcome.html" with the following link: Hi, I'm Andy I am trying to pass the query string Andy to a PHP file called "welcome.php" with the following command:

[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

[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 ($this

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 has

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 e

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 o

[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] [Newman] Passing an image through a php file.

2003-06-19 Thread Mark Tehara
This seemed to do the trick for me. Thank you. / Mark - Original Message - From: "CPT John W. Holmes" <[EMAIL PROTECTED]> To: "Awlad Hussain" <[EMAIL PROTECTED]>; "Mark Tehara" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 1:14 AM Subject: Re: [PHP] [Newman

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

[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 mont

[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 acro

[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 sh

[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 use

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 of

[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] 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 i

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] 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 bui

Re: [PHP] How to UPDATE only certain fields

2003-06-19 Thread Thorsten Körner
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 > UPDAT

[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 example

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

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] 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 > > if (file_exists("setup.txt")) { >$rawSetupData = readfile("setup.txt

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

2003-06-19 Thread Sævar Öfjörð
why don't you just do this? *** *** 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 stripslashes() on the output so that you won't get "John\'s X Log" Sævar - ICELAND -- PHP General Mailing List (http://www.php.n

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 th

[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 $setupData

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

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 have

[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

[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 = urlencode(serialize(array($_SESSION['u

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 S

[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] 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

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 coo

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 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 Gener

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 cookie

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 you

Re: [PHP] Month loop

2003-06-19 Thread Tyler Lane
On Thu, 2003-06-19 at 12:57, drparker wrote: > Is there any way I could loop thru and print all the month names (i.e. > January, February)? -- Tyler Lane <[EMAIL PROTECTED]> signature.asc Description: This is a digitally signed message part

[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 = system('/path/to/a.ou

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 th

[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 C

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=1&pddid=$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 exam

[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 call

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, Feb

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)) . ""; } Unless you just want to m

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;$i<13;$i++){ echo date("F",mktime(0,0,0,$i,1,1)); }

[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 is

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: http://www.php.net/

[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] 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 th

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. P

[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 se

[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.

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 byte

[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 Notes: make sure you don't echo anything before the headers even suppress any errors that m

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 php5_modu

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] 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] 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: error handling

2003-06-19 Thread Mignon Hunter
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. Yes,

Re: [PHP] Convert KB to MB?

2003-06-19 Thread Mike Migurski
>Is there a simple script that will take a value in Kilobytes and convert >it to MegaBytes? $value_in_mb = $value_in_kb / 1024; ta da - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.h

[PHP] Convert KB to MB?

2003-06-19 Thread MIKE YRABEDRA
Is there a simple script that will take a value in Kilobytes and convert it to MegaBytes? ++ Mike Yrabedra (President) 323 Incorporated Home of MacDock, MacAgent and MacSurfshop ++ W: http://www.323inc.com

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

2003-06-19 Thread Jason Wong
On Friday 20 June 2003 01:56, Mignon Hunter wrote: > I'm only subscribed to digest and found your reply in archives and > couldnt figure out how to reply :{ > > Anyway, right now I'm just trying to get something to work. The c exe > is as follows: > ** > #include > #

[PHP] PHP header and odbc struggle with MS-SQL 2003...

2003-06-19 Thread Scott Fletcher
Any success with making the PHP Header and PHP odbc_connect work successfully on PHP version 4.0.2 while the IIS 5.0 is hooked up to MS-SQL 2003? We had no problem with this if IIS 5.0 is hooked up to MS-SQL 2000. I assumed it had to do with the PHP depending on the named-pipe. I just switched t

Re: [PHP] switch structure...

2003-06-19 Thread Chris Boget
> Oh... you know, I've gotta stop leaving my brain at home. Thanks Chris, > R'twick.. It sure is a relief to know that this list is here when I'm > having bad PHP days.. which lately, is everyday... This solved my problem > perfectly. np. We've all had our brain fart days. Or weeks. :p Ch

[PHP] file downloading

2003-06-19 Thread Roberts, Mark (Tulsa)
I need to provide a way for users to download data files from a web site. I know that I could have then right click and save-as, however, I need to record this action in a database. If they just right click, I don't have any way to trigger the script to record the transaction. Does some one h

Re: [PHP] error handling

2003-06-19 Thread Jason Wong
On Friday 20 June 2003 02:11, Mignon Hunter wrote: > On my dev server the php.ini is set to log all errors and notices. > > Isnt there a way to over ride this on a per script basis to output to > stdout (or my browser) ? Yes, manual > Error Handling and Logging Functions -- Jason Wong -> Gremlin

[PHP] error handling

2003-06-19 Thread Mignon Hunter
On my dev server the php.ini is set to log all errors and notices. Isnt there a way to over ride this on a per script basis to output to stdout (or my browser) ? Thx -- Mignon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] switch structure...

2003-06-19 Thread Dan Joseph
Hi, > Just do a conditional break. > case 0: > blah blah blah. > if (my condition == false) > break; > case 1: > blah blah .. Oh... you know, I've gotta stop leaving my brain at home. Thanks Chris, R'twick.. It sure is a relief to know that th

Re: [PHP] switch structure...

2003-06-19 Thread R'twick Niceorgaw
On 19 Jun 2003 at 13:52, Dan Joseph wrote: > Hi All, > > Looking for some guidance on something I want to be able to do with switch, > and I don't think it exists, but I'd like to consult the list as a last > resort. > > I have a switch setup similar to: > > switch ($step) { >

Re: [PHP] switch structure...

2003-06-19 Thread Chris Boget
> I have a switch setup similar to: > Under case 0, I'd like to do a few things, and then if a certain condition > is met, move into case 1. Is this possible? Am I off the wall here? Is > there a better way of doing this madness I've come up with? Just do a conditional break. Chris -- PHP G

[PHP] exec() and passthru()

2003-06-19 Thread Mignon Hunter
Jason, I'm only subscribed to digest and found your reply in archives and couldnt figure out how to reply :{ Anyway, right now I'm just trying to get something to work. The c exe is as follows: ** #include #define NAME "Mignon" int main(void) { int q; q = 5;

[PHP] switch structure...

2003-06-19 Thread Dan Joseph
Hi All, Looking for some guidance on something I want to be able to do with switch, and I don't think it exists, but I'd like to consult the list as a last resort. I have a switch setup similar to: switch ($step) { case 0 : blah...

Re: [PHP] call-time pass-by-reference feature really deprecated?

2003-06-19 Thread dorgon
Thanks for the explanation. Yes, let us drop call-time pass-by-reference!! I'm with you. ;-) /dorgon Jason Wong wrote: On Friday 20 June 2003 01:11, dorgon wrote: Maybe, there's a setting for this in php.ini. yes. there is: Yes, I know there is ;-) The 'maybe' is maybe you have it set different

Re: [PHP] unique random id

2003-06-19 Thread Don Read
On 19-Jun-2003 Awlad Hussain wrote: > How do i generate a unique random number? > http://www.php.net/manual/en/function.uniqid.php Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor

Re: [PHP] call-time pass-by-reference feature really deprecated?

2003-06-19 Thread Jason Wong
On Friday 20 June 2003 01:11, dorgon wrote: > > Maybe, there's a setting for this in php.ini. > > yes. there is: Yes, I know there is ;-) The 'maybe' is maybe you have it set different on the two systems. > >>declaration of [runtime function name](). If you would like to enable > >>call-time p

Re: [PHP] call-time pass-by-reference feature really deprecated?

2003-06-19 Thread dorgon
I think you are absolutely right. thanx! I'll fix it and see if the warning still remains. /Dorgon Bobby Patel wrote: Isn't Call-time pass-by-reference the following $variable = myFunction1(&$x); Where myFunction1() is defined as function myFunction1($x) Where as pass-be-reference is called as $va

[PHP] Re: Version Independent Sessions?

2003-06-19 Thread dorgon
that's some of my scripts I once used. have a look at it. it won't run instantly, since I just took them from a collection of classes hth /Dorgon the most interesting part will be: // initialize global session object session_start(); if (isset($_SESSION)) { // php versions >= 4.1.0 if (!is

[PHP] Re: Another hosting question....

2003-06-19 Thread Paul Chvostek
On Wed, Jun 18, 2003 at 07:52:21PM -0400, Mike Morton wrote: > > What I am looking for specifically is a company that someone can recommend > from direct experience, one that is customer friendly, offers dedicated > servers at a REASONABLE price, offers admin support and server support, etc, > etc

Re: [PHP] call-time pass-by-reference feature really deprecated?

2003-06-19 Thread Bobby Patel
Isn't Call-time pass-by-reference the following $variable = myFunction1(&$x); Where myFunction1() is defined as function myFunction1($x) Where as pass-be-reference is called as $variable = myFunction2($x); Where is defined as function myFunction2 (&$Obj); I think the latter is better anyways, be

RE: [PHP] Re: header(); Issue

2003-06-19 Thread Mike At Spy
I'll give one of the suggestions a whirl (or both). I do have this same sort of thing on a different server with a more recent version of PHP - which is why I thought it might be a version issue. :) -Mike > -Original Message- > From: Esteban Fernandez [mailto:[EMAIL PROTECTED] > Sent:

RE: [PHP] picture help

2003-06-19 Thread Edward Peloke
thanks Jason, This worked much better! Eddie -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 5:23 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] picture help On Thursday 19 June 2003 05:05, Edward Peloke wrote: > thanks, I tried and it doesn't

Re: [PHP] Re: Processing Form Data /w $_POST

2003-06-19 Thread Bobby Patel
Yes that's right. this was just from the top of my head and it's early for me. it should be $report .= "key:".$index." => ".$value."\n"; as Dan has pointed out. "Dan Joseph" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > > $report = "key:".$index." => ".$value."\n"; > >

[PHP] Version Independent Sessions?

2003-06-19 Thread Lee Herron QCS
Does anyone know of a working snippet to manage sessions using any combination of Register_Global and pre/post php v4.1? Would love to look at some examples .. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: call-time pass-by-reference feature really deprecated?

2003-06-19 Thread dorgon
whats the difference? call-time-pass... is function callMe(&$obj) {...} and pass-by-ref is "return &$obj" ? I'm not sure if I got you. tx dorgon Rush wrote: "Dorgon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Will the pass-by-reference feature really be dropped?! Many software des

RE: [PHP] Re: Processing Form Data /w $_POST

2003-06-19 Thread Dan Joseph
Hi, > $report = "key:".$index." => ".$value."\n"; actually, shouldn't it be: $report .= "key:".$index." => ".$value."\n"; If you don't have the . there, its going to keep overwriting the report, and thus writing only the last $report item that was built. .= would co

Re: [PHP] call-time pass-by-reference feature really deprecated?

2003-06-19 Thread dorgon
Maybe, there's a setting for this in php.ini. yes. there is: >>declaration of [runtime function name](). If you would like to enable >>call-time pass-by-reference, you can set >>allow_call_time_pass_reference to true in your INI file. "pass-by-reference" has not been dropped, it is "Call-time pass-

[PHP] Re: call-time pass-by-reference feature really deprecated?

2003-06-19 Thread rush
"Dorgon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Will the pass-by-reference feature really be dropped?! Many software > design patterns wouldn't be possible anymore! It's an essential feature. I think call-pass-by-reference is going away, but pass-by-reference is going to be

Re: [PHP] call-time pass-by-reference feature really deprecated?

2003-06-19 Thread Jason Wong
On Thursday 19 June 2003 23:53, dorgon wrote: > I just got a warning message on a system using php version 4.3.1: > > > Warning: Call-time pass-by-reference has been deprecated - argument > passed by value; If you would like to pass it by reference, modify the > declaration of [runtime function n

[PHP] Re: Processing Form Data /w $_POST

2003-06-19 Thread Bobby Patel
$setup_filename = "/path/to/file/on/the/server/"; $fd = fopen($setup_filename , 'a'); #a for appending to file, w to write from the beginning checkout php.net for more details on fopen $report = ""; # #Apply any re-ordering of the Post array here to you 'logical' order # look at the manual for

Re: [PHP] Re: Processing Form Data /w $_POST

2003-06-19 Thread Kyle Babich
> What kind of 'logical' order do you need for the Post array? > > To clarify: > Do you need to write to a file the POST variables passed to the script? Yes, setup.php -> processSetup.php -> setup.txt > > > "Kyle Babich" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > I have a

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

2003-06-19 Thread Jason Wong
On Friday 20 June 2003 00:11, Mignon Hunter wrote: > I am trying to use either of the functions above to execute a compiled c > program on linux. The command line works with ./a.out (a.out being the > filename). Both my test.php and the exe are in the same directory. > I've tried combinations of

[PHP] Re: Processing Form Data /w $_POST

2003-06-19 Thread Bobby Patel
What kind of 'logical' order do you need for the Post array? To clarify: Do you need to write to a file the POST variables passed to the script? "Kyle Babich" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a form (setup.php) that passes values to processSetup.php when they ar

RE: [PHP] Processing Form Data /w $_POST

2003-06-19 Thread Henning Sittler
it's in the manual, read here: Henning Sittler www.inscriber.com -Original Message- From: Kyle Babich [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 12:43 PM To: [EMAIL PROTECTED] Subject: [PHP] Processing Form Data

[PHP] Re: header(); Issue

2003-06-19 Thread Esteban Fernandez
Try header("Location: ".$Relative."/outstanding.php?pdd=1&pddid=".$poid.""); EF. "Spyproductions Support Team" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > > I have this in a script: > > header("Location: $Relative/outstanding.php?pdd=1&pddid=$poid"); > > It works fine el

[PHP] Processing Form Data /w $_POST

2003-06-19 Thread Kyle Babich
I have a form (setup.php) that passes values to processSetup.php when they are written into setup.txt. I'm trying to instead of writing every idividual value into setup.txt from setup.php, write a loop that will take as many values as there are in the $_POST array and write them all into a sing

  1   2   >