Re: [PHP] php & interbase problem.....

2003-07-22 Thread Wei
I already set the charset but still cannot work. By the way, I can retrieve the data in other program. Anyway, thanks for your reply "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Wei ([EMAIL PROTECTED]): > > Hope someone can solve my problem. >

[PHP] Hi All

2003-07-22 Thread Shishir Kumar Mishra
Hi All, I am reading one XML which has some german characters. I am sending this data to PHP script but when try to echo ;it prints some other character. eg. XML has "für" but output is coming like " für "; My script is like following: ".$producttext[2]; ?> in XML file : producttex

[PHP] Re: FTP Synching

2003-07-22 Thread Jean-Christian IMbeault
Jwulff wrote: (B> How would I download any new files on a remote machine to my local one (in a (B> specific folder) via ftp? (B (BAnd how does this relate to PHP? I can't see a PHP question in there ... (Bif there is one please make it clear :) (B (BJean-Christian Imbeault (B (B (B-- (B

Re: [PHP] FTP Synching

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "jwulff" claimed that: |How would I download any new files on a remote machine to my local one (in a |specific folder) via ftp? You do realize that this is like subscribing to a automotive mail list and asking how to buy groceries. I would start by checking the man page for wget

Re: [PHP] Backing up: Database and scripts...

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Michael Smith" claimed that: |Hi, | |So I can create the files, move them, etc. to backup my database and a |couple of directories, but how do I create a gzip file of that and send |it to the user? I need to basically execute a command to gzip a couple |of files/directories... I

[PHP] FTP Synching

2003-07-22 Thread jwulff
How would I download any new files on a remote machine to my local one (in a specific folder) via ftp? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] radio button arrays and php3

2003-07-22 Thread daniel
umm yes i had to use select menus instead > * Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): >> hi there i dont know if this happens in php4 but say i have a list of >> radio buttons in an array like >> >> >> >> it only returns the one selected into the array, so instead of having >> 2 keys i

Re: [PHP] Re: Redirection Question (I spoke to soon)

2003-07-22 Thread Curt Zirzow
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]): > Sorry all, apparently this doesn't work on either Windows or Linux. > Again, I thought it was working and once I got farther along I see that > it really wasn't. Basically what I get after I login is an empty screen. > Here is what I have : > > Thi

Re: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Jeff Stillwall
"Tom Rogers" wrote: > I am sure they do not but > I just tried reading the docs and it is as clear as mud so its back to > the suck it and see method >From the on-line docs, regarding $_SESSION (at http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.sessi on): "This is a '

Re: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Curt Zirzow
* Thus wrote Jeff Stillwall ([EMAIL PROTECTED]): > "Tom Rogers" wrote: > > > Try passing a reference to the array like this > > > > function setupUserEnv (&$userArray) { > [snip] > > } > > > > Otherwise no idea at this point :) > > I could give that a shot, but as I mentioned, if I var_dump($us

Re: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Curt Zirzow
* Thus wrote Jeff Stillwall ([EMAIL PROTECTED]): > I have a function that assigns some session variables I need available > during a user's visit. Oddly enough, as I assign about 7 variables, I > noticed that not all had data. This is the function: > > function setupUserEnv ($userArray) { >

Re: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Jeff Stillwall
"Tom Rogers" wrote: > Try passing a reference to the array like this > > function setupUserEnv (&$userArray) { [snip] > } > > Otherwise no idea at this point :) I could give that a shot, but as I mentioned, if I var_dump($userArray) at the beginning of the function, I see that $userArray is pop

RE: [PHP] Re: Redirection Question (I spoke to soon)

2003-07-22 Thread Beauford.2005
Hi, I found one of my problems and also implemented your suggestions, and still the same thing. It will not redirect. The problem I found is that $_SERVER['SERVER_NAME'] does not include the port number. On my Win PC I am using port 800. So I changed this line to: $_SESSION['goto'] = "http://"

Re: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Curt Zirzow
* Thus wrote Warren Vail ([EMAIL PROTECTED]): > Don't all variables registered to a session need to be declared as global? no Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] PEAR::Archive_Tar: File limit???

2003-07-22 Thread Curt Zirzow
Oh, and also, this is off-topic here, there is another list dedicated to pear support: http://www.php.net/mailing-lists.php Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] PEAR::Archive_Tar: File limit???

2003-07-22 Thread Curt Zirzow
* Thus wrote Michael Smith ([EMAIL PROTECTED]): > Hi, > > I'm using PEAR::Archive_Tar to create a tar backup. I already have all > my stuff ready in some folders, so this is whats going on: > > //we need the files > $files[0] = "../downloads/"; > $files[1] = "../images/"; >

RE: [PHP] MySQL/PHP problem.

2003-07-22 Thread Jennifer Goodie
Off the top of my head, try using OR in your query rather than AND day=\"2\" or day=\"3\" day probably won't equal both 2 and 3, which is why you are getting 0. Also, if you group by item name, you are going to get the total for each itemname, is that what you want, or just the overall total? >

Re: [PHP] Array Simplification

2003-07-22 Thread Curt Zirzow
* Thus wrote jwulff ([EMAIL PROTECTED]): > I've got a nested array below that I'm having some trouble simplyfing. > Here is an example of how the array is now: > > [...] > > Array > ( > [0] => Array > ( > [0] => 2003-06-10 17:00:00 > [1] => 9054.89 >

Re[2]: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Tom Rogers
Hi, Wednesday, July 23, 2003, 12:03:07 PM, you wrote: WV> Don't all variables registered to a session need to be declared as global? WV> Warren Vail WV> [EMAIL PROTECTED] I am sure they do not but I just tried reading the docs and it is as clear as mud so its back to the suck it and see meth

Re: [PHP] radio button arrays and php3

2003-07-22 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > hi there i dont know if this happens in php4 but say i have a list of radio > buttons in an array like > > > > it only returns the one selected into the array, so instead of having 2 > keys i only get the one , the empty one doesnt seem to ge

Re: [PHP] php & interbase problem.....

2003-07-22 Thread Curt Zirzow
* Thus wrote Wei ([EMAIL PROTECTED]): > Hope someone can solve my problem. > > I'm using Interbase as a database. I get error message when I retrieve data > from the database (ibase_fetch_row) which contain chinese character. > > Warning: ibase_fetch_row(): arithmetic exception, numeric over

[PHP] radio button arrays and php3

2003-07-22 Thread daniel
hi there i dont know if this happens in php4 but say i have a list of radio buttons in an array like it only returns the one selected into the array, so instead of having 2 keys i only get the one , the empty one doesnt seem to get submitted , how can i make both turn up in the array ? -- PH

RE: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Warren Vail
Don't all variables registered to a session need to be declared as global? Warren Vail [EMAIL PROTECTED] -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 6:15 PM To: Jeff Stillwall Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Some SESSION Vars not Re

Re: [PHP] Redirection Question

2003-07-22 Thread John W. Holmes
Beauford.2005 wrote: Hi, I am trying to figure out how to redirect a user back to a page but not having much luck. For example: I click on a menu item on my site which goes to a.php. This file includes another file that determines if they are logged in or not. If not, they are sent to login.php

[PHP] php & interbase problem.....

2003-07-22 Thread Wei
Hope someone can solve my problem. I'm using Interbase as a database. I get error message when I retrieve data from the database (ibase_fetch_row) which contain chinese character. Warning: ibase_fetch_row(): arithmetic exception, numeric overflow, or string truncation Cannot transliterate ch

Re: [PHP] REDIRECT STATUS CGI

2003-07-22 Thread Curt Zirzow
* Thus wrote Freek van de Griendt ([EMAIL PROTECTED]): > Hi, > > I just started using PHP and installed it on my Windows machine, together > with Xitami (Web server). But now, when I try to write a simple PHP file I > get the following error: > > Security Alert! The PHP CGI cannot be accessed dir

RE: [PHP] Redirection Question

2003-07-22 Thread Beauford.2005
Thanks to all, I got it working - sort of. It works perfectly on Windows, but will not work on Linux. I am using the same versions of PHP, Apache and MySQL on both. I have asked this before and have been told they are interchangeable, but more times than not I have to make a bunch of changes to get

Re: [PHP] Deleting array fields...

2003-07-22 Thread Jason Giangrande
Thanks Curt. Your suggestion works great. I had come up with this to clear the array, which also worked for me in this instance, by doing this $array['item'] = ""; But I think your suggestion is better because one I have used the array fields once I have no further use for them so I might as we

Re: [PHP] Deleting array fields...

2003-07-22 Thread Curt Zirzow
* Thus wrote Jason Giangrande ([EMAIL PROTECTED]): > Is there a way to delete array fields without resort the keys? The keys > of this particular array are the position of the words it holds to their > position in a string and if they are changed it screws everything up. I > tried using array_spl

RE: [PHP] Redirection Question

2003-07-22 Thread Beauford.2005
Maybe I didn't explain enough. What if they come from b.php or c.php. How do I automatically log what page they tried to access. So hard coding login.php?next=a.php would only work for one page. TIA -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: July 22, 2003 4:16 P

[PHP] Deleting array fields...

2003-07-22 Thread Jason Giangrande
Is there a way to delete array fields without resort the keys? The keys of this particular array are the position of the words it holds to their position in a string and if they are changed it screws everything up. I tried using array_splice but that, unfortunately, rearranges the keys. So, to r

Re: [PHP] Some SESSION Vars not Registering

2003-07-22 Thread Tom Rogers
Hi, Wednesday, July 23, 2003, 6:22:58 AM, you wrote: JS> I have a function that assigns some session variables I need available JS> during a user's visit. Oddly enough, as I assign about 7 variables, I JS> noticed that not all had data. This is the function: JS> function setupUserEnv ($userArra

Re: [PHP] MySQL/PHP problem.

2003-07-22 Thread David Otton
On Tue, 22 Jul 2003 17:08:50 -0400, you wrote: >I am trying to count in mySQL the number of entries in the field "day" where day=2 or >3. > >Then I want to check just to see if that returned a value greater than 0 or not. > >I am using the code below, but having a problem, I keep getting 0 as th

[PHP] stop action on movie frame ( ming )

2003-07-22 Thread Tiberiu Craciun
Hi, I have a ming generated movie with 3 frames. How can I add a stop() action to every frame ? Now when the movie start it play to last frame and stop there . (I made a $movie->add( new SWFAction("stop()") ); to every frame ). The resulted moview I want to be stoped at first frame. Thanks

Re: [PHP] Re: Redirection Question (I spoke to soon)

2003-07-22 Thread John W. Holmes
Beauford.2005 wrote: Sorry all, apparently this doesn't work on either Windows or Linux. Again, I thought it was working and once I got farther along I see that it really wasn't. Basically what I get after I login is an empty screen. Here is what I have : This is the script that runs to see if the

RE: [PHP] Array Simplification

2003-07-22 Thread Chris W. Parker
jwulff on Tuesday, July 22, 2003 3:58 PM said: > I've got a nested array below that I'm having some trouble simplyfing. > Here is an example of how the array is now: [snip] How are you creating the array in the first place? c. -- PHP General Mailing List (http:

[PHP] Re: Redirection Question (I spoke to soon)

2003-07-22 Thread Beauford.2005
Sorry all, apparently this doesn't work on either Windows or Linux. Again, I thought it was working and once I got farther along I see that it really wasn't. Basically what I get after I login is an empty screen. Here is what I have : This is the script that runs to see if the user is logged in.

Re: [PHP] Redirection Question

2003-07-22 Thread Curt Zirzow
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]): > Maybe I didn't explain enough. What if they come from b.php or c.php. > How do I automatically log what page they tried to access. So hard > coding login.php?next=a.php would only work for one page. Use the code that Grant Rutherford posted earlier

[PHP] PEAR::Archive_Tar: File limit???

2003-07-22 Thread Michael Smith
Hi, I'm using PEAR::Archive_Tar to create a tar backup. I already have all my stuff ready in some folders, so this is whats going on: //we need the files $files[0] = "../downloads/"; $files[1] = "../images/"; $files[2] = "../pages/"; $files[3] = "../pages_

[PHP] contract position, on-site boston ma

2003-07-22 Thread Sean Brown
I'm looking for an accomplished PHP developer for a contract position (project runs 'till Feb 04). Please contact me for further details w/ a plain-text version of your resume as well as links to portfolio or recent work. Some on-site work is required in Boston and/or Andover MA. Sean Brown [E

[PHP][n00bie question] How to execute a perl module in php page located in unix machine?

2003-07-22 Thread Mike Lau
hi list, i need to write a php page to execute a perl module on my client's unix machine, how do i do that? the perl module is some simple encryption module for security reason my client doesn't allow me to read the source code. the perl function that i need to execute will return an encrypted s

Re: [PHP] Session Problems with 4.3.2

2003-07-22 Thread Joe Sheehan
(Power went out in my area for the last four hours) Thanks for all the feedback. Anyway, just to make sure my scripts etc were correct I threw 4.2 back in using the same ini that I was with 4.3.2 No problems with 4.2 but 4.3.2 doesn't work. Page1.php works properly by creating the session file with

[PHP] Backing up: Database and scripts...

2003-07-22 Thread Michael Smith
Hi, So I can create the files, move them, etc. to backup my database and a couple of directories, but how do I create a gzip file of that and send it to the user? I need to basically execute a command to gzip a couple of files/directories... I also need to figure out how to un-gzip a gzip file

Re: [PHP] bug in addslashes command?

2003-07-22 Thread Robert Cummings
I recently upgraded from 4.1.2 all the way to 4.3.2 without a single bump -- your experience may vary :) Cheers, Rob. On Tue, 2003-07-22 at 16:11, Merlin wrote: > there is definatelly a bug in 4.2.1 since this sentence: > > Argostoli is the 'capitol' of Kefalonia / Kefallinia. One of the Greek >

[PHP] Array Simplification

2003-07-22 Thread jwulff
I've got a nested array below that I'm having some trouble simplyfing. Here is an example of how the array is now: Array ( [0] => Array ( [0] => 2003-06-10 17:00:00 [1] => 9054.89 ) [1] => Array ( [0] => 2003-06-10 17:00:00

Re: [PHP] Redirection Question

2003-07-22 Thread Kevin Stone
The other methods suggested avoid that entanglement. Kevin "Beauford.2005" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Maybe I didn't explain enough. What if they come from b.php or c.php. > How do I automatically log what page they tried to access. So hard > coding login.php?nex

Re: [PHP] REDIRECT STATUS CGI

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Freek van de Griendt" claimed that: |Hi, | |I just started using PHP and installed it on my Windows machine, together |with Xitami (Web server). But now, when I try to write a simple PHP file I |get the following error: | |Security Alert! The PHP CGI cannot be accessed directly.

[PHP] Re: Sending data using the POST method.

2003-07-22 Thread Kevin Stone
"Guillermo Scharffenorth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I am a beginner programmer and I am trying to do the following: > > I have a commercial script (catalog.php) which accepts variables using the > "POST" method. This script, however, is not designed

RE: [PHP] Redirection Question

2003-07-22 Thread Beauford.2005
Nope. What if it's b.php, or c.php. They could come from many pages. I wish it was that easy. -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: July 22, 2003 4:02 PM To: Beauford.2005 Subject: RE: [PHP] Redirection Question Beauford.2005

[PHP] Re: Sending data using the POST method.

2003-07-22 Thread Guillermo Scharffenorth
Hello, Sorry, there was a small error on my previous posting. To call the script I would do "catalog.php?", instead of "translate.php?". Thanks. GS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sending data using the POST method.

2003-07-22 Thread Guillermo Scharffenorth
Hello, I am a beginner programmer and I am trying to do the following: I have a commercial script (catalog.php) which accepts variables using the "POST" method. This script, however, is not designed to handle form fields other than "textfield". I have an intermediate script (translate.php) whi

Re: [PHP] changing the name of a variable by another variable.

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Tony Crockford" claimed that: |I really am having a difficult day. | |I want to do an incrementing while loop that will echo out the values of |$variable1 , $variable2, $variable3 which exist previously. | |so how do I get the incrementing number onto the word variable? to make |

Re: [PHP] Localization and Customization of Application

2003-07-22 Thread Mike Morton
Chris: Thanks for the suggestion - I have peeked through Smarty - not bad - but it seems that the designer would still need to learn a different syntax. That is not an issue for this application however - I have really no need for separating the template and the code, since the template is alread

Re: [PHP] OK

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Rausch Alexandru" claimed that: |Sorry, i didn't itent to be a spam, believe me. But i don't know how to |do this aplication | In that case, you might want to start with something a bit less ambitious, maybe learning to wrap your mail, and some tutorials? http://www.devshed.com/

Re: [PHP] MySQL/PHP problem.

2003-07-22 Thread Phillip Blancher
I tried using the print_r for $shipping. - All i want this to do is to check to see what days in the grouping is there, and if there is anything for a grouping, charge $5 for the delivery. If there are items in two of the groupings, charge $10 and if there is in all three groupings, charge $15. Th

Re: [PHP] MySQL/PHP problem.

2003-07-22 Thread Curt Zirzow
* Thus wrote Phillip Blancher ([EMAIL PROTECTED]): > I am trying to count in mySQL the number of entries in the field "day" where day=2 > or 3. > > Then I want to check just to see if that returned a value greater than 0 or not. > > I am using the code below, but having a problem, I keep gettin

[PHP] OK

2003-07-22 Thread Rausch Alexandru
Sorry, i didn't itent to be a spam, believe me. But i don't know how to do this aplication

Re: [PHP] fsockopen

2003-07-22 Thread Curt Zirzow
* Thus wrote Mike Migurski ([EMAIL PROTECTED]): > >> preg_match('/()/ms', $http_response, $html) > >> > >> ...puts it into $html[1]. Adjust to suit your local standards-compliance > >> practices. You can also look for everything after the first instance of > >> "\n\n". > > > >Thats assuming that th

[PHP] Re: controlling winamp with COM

2003-07-22 Thread John Herren
John Herren wrote: Is there any way to control an open winamp application in php? I want to use php as a scheduler to play Winamp. The API has system calls to do so, but I don't know how to implement the windows calls. Ok, found this: http://www.adcock8.freeserve.co.uk/winamp.htm It's a plugin

[PHP] MySQL/PHP problem.

2003-07-22 Thread Phillip Blancher
I am trying to count in mySQL the number of entries in the field "day" where day=2 or 3. Then I want to check just to see if that returned a value greater than 0 or not. I am using the code below, but having a problem, I keep getting 0 as the total What am i doing wrong. $dbqueryshippi

RE: [PHP] Localization and Customization of Application

2003-07-22 Thread Chris Hubbard
Mike, the easiest way to do this would be to use smarty. (smarty.php.net) abstract out your language specific strings into a file that is called by the template. Use a variable to define the language and use an assign to dynamically change the language file in the template. Then build a function

Re: [PHP] fsockopen

2003-07-22 Thread Mike Migurski
>> preg_match('/()/ms', $http_response, $html) >> >> ...puts it into $html[1]. Adjust to suit your local standards-compliance >> practices. You can also look for everything after the first instance of >> "\n\n". > >Thats assuming that the person used the for the first >item. what bout extra space,

Re: [PHP] Hi

2003-07-22 Thread CPT John W. Holmes
Quit spamming us. We don't want to visit your lousy poker site. ---John Holmes... - Original Message - From: "Rausch Alexandru" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 22, 2003 4:42 AM Subject: [PHP] Hi MYSQL problems problems. I want to install an user login ap

RE: [PHP] Re: Hi

2003-07-22 Thread Johannes Reichardt
ok you made me visit your ugly site now - so whats your problem? you can submit variables via flash to any script you want, so this should be a good start. > -Original Message- > From: Paul Chvostek [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 22. Juli 2003 22:48 > To: [EMAIL PROTECTED]

RE: [PHP] Re: Hi

2003-07-22 Thread Ralph Guzman
http://www.club66.ro/poker/poker.html Spam? -Original Message- From: Paul Chvostek [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 1:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Hi On Tue, Jul 22, 2003 at 11:42:04AM +0300, Rausch Alexandru wrote: > From: "Rausch Alexandru" <[E

[PHP] Re: Hi

2003-07-22 Thread Paul Chvostek
On Tue, Jul 22, 2003 at 11:42:04AM +0300, Rausch Alexandru wrote: > From: "Rausch Alexandru" <[EMAIL PROTECTED]> > Subject: Hi > > MYSQL problems problems. > I want to install an user login aplicationa on my site, but it is intarely in FLASH. > ( www.poker.club66.ro ). > What do u think? I think

[PHP] Hi

2003-07-22 Thread Rausch Alexandru
MYSQL problems problems. I want to install an user login aplicationa on my site, but it is intarely in FLASH. ( www.poker.club66.ro ). What do u think?

[PHP] Localization and Customization of Application

2003-07-22 Thread Mike Morton
I am building a shopping cart application similar to OS Commerce. I am trying to build it for expansion and customization right from the start, so I have decided to start from the beginning with localization support. Basically, I have a file for each shopping cart 'section' that contains the text

Re: [PHP] fsockopen

2003-07-22 Thread Curt Zirzow
* Thus wrote Mike Migurski ([EMAIL PROTECTED]): > >Is there a way to get fsockopen to suppress the header information it > >returns. I have no use for the crap, have no idea how to use a regexp to > >get it out of there (nor does anyone on this list it would seem either). > > preg_match('/()/ms',

Re: [PHP] php function on php.net

2003-07-22 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 21:15, lines prefixed by '>' were originally written by you. > Hi there, > I am wondering how on php.net the search for functions is done. You > can add > any function just behind the php.net > like php.net/phpinfo and it wi

Re: [PHP] bug in addslashes command?

2003-07-22 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): > there is definatelly a bug in 4.2.1 since this sentence: > > Argostoli is the 'capitol' of Kefalonia / Kefallinia. One of the Greek > Ionian islands. > > will be escaped by - instead of \ > > other examples run fine. > > Does anybody know if there are

Re: [PHP] Redirection Question

2003-07-22 Thread Ray Hunter
Use sessions or cookies to store the first page they are trying to access. Then if not logged in redirect them to the login.php page. After login is successful then they can be redirected to the values that was specified in the cookie or seesion variable. -- BigDog On Wed, 2003-07-23 at 13:44,

[PHP] Some SESSION Vars not Registering

2003-07-22 Thread Jeff Stillwall
I have a function that assigns some session variables I need available during a user's visit. Oddly enough, as I assign about 7 variables, I noticed that not all had data. This is the function: function setupUserEnv ($userArray) { $_SESSION['loggedIn'] = 1; $_SESSION['id'] = $userArray['

RE: [PHP] fsockopen

2003-07-22 Thread Mike Migurski
>Is there a way to get fsockopen to suppress the header information it >returns. I have no use for the crap, have no idea how to use a regexp to >get it out of there (nor does anyone on this list it would seem either). preg_match('/()/ms', $http_response, $html) ...puts it into $html[1]. Adjust

[PHP] ActivePHP help

2003-07-22 Thread Mr Bogomil Shopov
I have compiled php4activescript.dll and a register it with regsvr32 and then when i try the sample code , didnt work, please! Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] REDIRECT STATUS CGI

2003-07-22 Thread Freek van de Griendt
Hi, I just started using PHP and installed it on my Windows machine, together with Xitami (Web server). But now, when I try to write a simple PHP file I get the following error: Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabl

Re: [PHP] Multiple Select Form

2003-07-22 Thread CPT John W. Holmes
> I have a form that has a select form object with where I can select multiple > values. The select is called "number". When I post the form, I get a lot > of variables called $number with the various values I selected. Is there a > way that I can make this an array of values? name it "number[]

[PHP] php function on php.net

2003-07-22 Thread Merlin
Hi there, I am wondering how on php.net the search for functions is done. You can add any function just behind the php.net like php.net/phpinfo and it will point you right through it. I know how to redirect this as a 404 error in apache to another file, but then the url is changing. In the php.net

Re: [PHP] Redirection Question

2003-07-22 Thread Curt Zirzow
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]): > Hi, > > I am trying to figure out how to redirect a user back to a page but not > having much luck. > > For example: I click on a menu item on my site which goes to a.php. This > file includes another file that determines if they are logged in or

[PHP] Multiple Select Form

2003-07-22 Thread Van Andel, Robbert
I have a form that has a select form object with where I can select multiple values. The select is called "number". When I post the form, I get a lot of variables called $number with the various values I selected. Is there a way that I can make this an array of values? Robbert van Andel

Re: [PHP] Session Problems with 4.3.2

2003-07-22 Thread Evan Nemerson
Try appending to the url (perhaps cookies are off in browser) If that doesn't work, try the example at php.net/session On Tuesday 22 July 2003 11:49 am, you wrote: > It echo No. Have no idea why its not set? > Even tried using session_register with register_globals on > but no luck either. >

Re: [PHP] bug in addslashes command?

2003-07-22 Thread Merlin
there is definatelly a bug in 4.2.1 since this sentence: Argostoli is the 'capitol' of Kefalonia / Kefallinia. One of the Greek Ionian islands. will be escaped by - instead of \ other examples run fine. Does anybody know if there are any serious changes between the new php version and 4.2.1 Ca

Re: [PHP] Redirection Question

2003-07-22 Thread Grant Rutherford
Hello there, I had the same problem, and to solve it I put the following code in my "check login" include file: // code to detect no login session_start(); session_register('target'); $_SESSION['target'] = "http://"; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header("Lo

[PHP] Re: bug in addslashes command?

2003-07-22 Thread Kevin Stone
"Merlin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello there, > > I am running php 4.2.1 on a linux machine. Not sure, but I think there might > be a bug in there. > > While putting data into the db I do get an error in a verry rar case. All > values are escaped by addslashes

[PHP] Re: Redirection Question

2003-07-22 Thread Kevin Stone
"Beauford.2005" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am trying to figure out how to redirect a user back to a page but not > having much luck. > > For example: I click on a menu item on my site which goes to a.php. This > file includes another file that determine

Fwd: Re: [PHP] bug in addslashes command?

2003-07-22 Thread David Nicholson
- NOTE: This is a forwarded message, the message being referred to can be found at the bottom of this e-mail. - Hello, My mail client removed the backslashes from my mail. The output had a backslash before each single quote. David. ===8<===Original message information=== From:

Re: [PHP] Session Problems with 4.3.2

2003-07-22 Thread Curt Zirzow
* Thus wrote Joe Sheehan ([EMAIL PROTECTED]): > It echo No. Have no idea why its not set? > Even tried using session_register with register_globals on > but no luck either. > Anyone have any idea what i'm doing wrong? I'm hoping its just > a user error. Are you using cookie based sessions? And if

Re: [PHP] magic quotes

2003-07-22 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 20:53, lines prefixed by '>' were originally written by you. > I just found, that one server pulls the data out of the db and leaves > the > slashes inside the text, while the other one does not. > both of the phpinfo look s

Re: [PHP] bug in addslashes command?

2003-07-22 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 20:51, lines prefixed by '>' were originally written by you. > Hello there, > I am running php 4.2.1 on a linux machine. Not sure, but I think there > might > be a bug in there. > While putting data into the db I do get an e

[PHP] Adding one time charges in field.

2003-07-22 Thread Phillip Blancher
I am working on a site which does deliveries for items based on the days associated with the items. Each Item has been assigned a number (1 for Sunday, 2 for Monday... etc). All items that are ordered for Monday or Tuesday are Delivered on Sunday (2 & 3) All items ordered for Wednesday and Thurs

Re: [PHP] magic quotes

2003-07-22 Thread Merlin
I just found, that one server pulls the data out of the db and leaves the slashes inside the text, while the other one does not. both of the phpinfo look same to me. However I might have overlooked something. I do use addslashes to escape the characters. Anny suggestions? "Chris Shiflett" <[EMA

[PHP] Redirection Question

2003-07-22 Thread Beauford.2005
Hi, I am trying to figure out how to redirect a user back to a page but not having much luck. For example: I click on a menu item on my site which goes to a.php. This file includes another file that determines if they are logged in or not. If not, they are sent to login.php using header(:Locatio

[PHP] bug in addslashes command?

2003-07-22 Thread Merlin
Hello there, I am running php 4.2.1 on a linux machine. Not sure, but I think there might be a bug in there. While putting data into the db I do get an error in a verry rar case. All values are escaped by addslashes commands. This is the original string: the 'capitol-' of Kefalonia This is the

Re: [PHP] magic quotes

2003-07-22 Thread Chris Shiflett
--- Merlin <[EMAIL PROTECTED]> wrote: > As I learned from php.ini magic quotes are turned off on both systems. As a first step, make sure the output of phpinfo() agrees with your analysis. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ --

Re: [PHP] magic quotes

2003-07-22 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at 20:36, lines prefixed by '>' were originally written by you. > Hello, > I am running a test server and a live system. both do have the same > php > version running. > The test system however does not report a db error if I t

[PHP] magic quotes

2003-07-22 Thread Merlin
Hello, I am running a test server and a live system. both do have the same php version running. The test system however does not report a db error if I try to insert a string containing a ' The live system does. As I learned from php.ini magic quotes are turned off on both systems. So what could

[PHP] Re: changing the name of a variable by another variable.

2003-07-22 Thread Shena Delian O'Brien
What I do is: $var = "variable".$increment; echo $$var; Tony Crockford wrote: I really am having a difficult day. I want to do an incrementing while loop that will echo out the values of $variable1 , $variable2, $variable3 which exist previously. so how do I get the incrementing number onto the w

Re: [PHP] changing the name of a variable by another variable.

2003-07-22 Thread Mark
try echo ${variable$increment} --- Tony Crockford <[EMAIL PROTECTED]> wrote: > I really am having a difficult day. > > I want to do an incrementing while loop that will echo out the > values of > $variable1 , $variable2, $variable3 which exist previously. > > so how do I get the incrementing num

[PHP] changing the name of a variable by another variable.

2003-07-22 Thread Tony Crockford
I really am having a difficult day. I want to do an incrementing while loop that will echo out the values of $variable1 , $variable2, $variable3 which exist previously. so how do I get the incrementing number onto the word variable? to make a new variable that matches thename of the existing ones

Re: [PHP] Session Problems with 4.3.2

2003-07-22 Thread Joe Sheehan
It echo No. Have no idea why its not set? Even tried using session_register with register_globals on but no luck either. Anyone have any idea what i'm doing wrong? I'm hoping its just a user error. Thanks in advance From: Evan Nemerson <[EMAIL PROTECTED]> To: "Joe Sheehan" <[EMAIL PROTECTED]> CC:

  1   2   3   >