Re: [PHP] fsockopen

2003-07-22 Thread Curt Zirzow
* Thus wrote Mike Migurski ([EMAIL PROTECTED]): preg_match('/(!DOCTYPE.+\/html)/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

[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] 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 getting 0 as

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.

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?

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

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

[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) which

[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?query-string, instead of translate.php?query-string. Thanks. GS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 mailto:[EMAIL PROTECTED]

[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 to handle

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.

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

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

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

[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

[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

[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_test/;

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] 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] Array Simplification

2003-07-22 Thread Chris W. Parker
jwulff mailto:[EMAIL PROTECTED] 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

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

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

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 ($userArray)

[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

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

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_splice

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

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

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

[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

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

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

[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 input type=radio name=secondary_banner[] input type=radio name=secondary_banner[] it only returns the one selected into the array, so instead of having 2 keys i only get the one , the empty one

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

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 input type=radio name=secondary_banner[] input type=radio name=secondary_banner[] it only returns the one selected into the array, so

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 method

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 [2] = 153.84

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] 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/; $files[2]

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:

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

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

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 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($userArray) at the

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] 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 : This is

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 input type=radio name=secondary_banner[] input type=radio name=secondary_banner[] it only

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

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.

[PHP] feof() problem

2003-07-22 Thread chandrakant Reddy
Hi My Code : ?php $uploaddir = '/tmp'; print pre; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $_FILES['userfile']['name'])) { print File is valid, and was successfully uploaded. Here's some more debugging info:\n;

[PHP] Array cookie

2003-07-22 Thread Shantanu Oak
Hi, I have written a feed reader for my personal use. The php code given below does work. But it works only with a single feed. How can I save multiple cookies (array?) and display a few more RSS feeds. The example page can be found at... http://shantanuoak.com/test1.php ?php if ($delete==yes)

RE: [PHP] can't restart session

2003-07-22 Thread Adrian Portsmouth
Chris, As I said, you are not calling your session user_info, the only way to name a session is to use session_name() BEFORE session_start() if you are not using a session_name call then change your setcookie call to the following and this should kill it for you: setcookie(session_name(),,,/);

Re: [PHP] Re: Help?

2003-07-22 Thread Ivo Fokkema
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): I want to warn you though, PHP depricates the use of register_globals = On, so it would be recommendable to use your modified script and keep coding using $_POST, $_GET and

Re: [PHP] Array cookie

2003-07-22 Thread Curt Zirzow
* Thus wrote Shantanu Oak ([EMAIL PROTECTED]): Hi, I have written a feed reader for my personal use. The php code given below does work. But it works only with a single feed. How can I save multiple cookies (array?) and display a few more RSS feeds. The example page can be found at...

Re: [PHP] Array cookie

2003-07-22 Thread Jacob Vennervald Madsen
You could serialize your an array and save it in the cookie, but I would also recommend using a session and then save the serialized array in this instead. Jacob Vennervald On Tue, 2003-07-22 at 09:36, Curt Zirzow wrote: * Thus wrote Shantanu Oak ([EMAIL PROTECTED]): Hi, I have written a

Re: [PHP] Re: need help with MySQL full text searching!!!!

2003-07-22 Thread Angelo Zanetti
Hi James so what you are saying is that if I am not running mysql 4.0.10-gamma then the full text search wont work. Strange because if I run the full text search on both full text indexed fields I get the correct resultset, however I only want to do a full text search on a column at a time, let

[PHP] Warnings when trying to write to file

2003-07-22 Thread Dore van Hoorn
Hi, I get this warning when trying to write to a .txt file. Strange enough, I don't get this error when trying to do the same this on my local server. Can anybody help me with this?! Warning: fopen(respons.txt) [function.fopen]: failed to create stream: Permission denied in

Re: [PHP] Warnings when trying to write to file

2003-07-22 Thread Curt Zirzow
Please Start a new email when starting a new topic. * Thus wrote Dore van Hoorn ([EMAIL PROTECTED]): Warning: fopen(respons.txt) [function.fopen]: failed to create stream: Permission denied in /usr/local/slash/apache/vhosts/goldore.nl/httpdocs/enquete/bekijken.php on line 206 My bet is

[PHP] Re: Warnings when trying to write to file

2003-07-22 Thread Ivo Fokkema
My guess would be you don't have any write permission. Your first error is a permission denied using fopen(). The rest of your errors is caused by using the invalid filepointer '$file'. So check if you have any write permission! I don't have any on my commercial hosting either, but I do on my

Re: [PHP] controlling winamp with COM

2003-07-22 Thread Jon Haworth
Hi, It might even be possible that Winamp itself provides hooks to a running instance of itself via command line parameters (one can hope) which would simplify the task greatly. Winamp (v2 at any rate, I haven't worked with v3) has a great API, including hooks via the command line, which is

Re: [PHP] Array cookie

2003-07-22 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Shantanu Oak ([EMAIL PROTECTED]): Hi, I have written a feed reader for my personal use. The php code given below does work. But it works only with a single feed. How can I save multiple cookies (array?) and display a few more

Re: [PHP] Re: need help with MySQL full text searching!!!!

2003-07-22 Thread Jason Wong
On Tuesday 22 July 2003 15:46, Angelo Zanetti wrote: Hi James so what you are saying is that if I am not running mysql 4.0.10-gamma then the full text search wont work. Strange because if I run the full text search on both full text indexed fields I get the correct resultset, however I only

[PHP] php with GD library in Netscape Iplanet 4.x Web server(Sparc Solaris 2.8)

2003-07-22 Thread Raul Morales Salcedo
Hi all, I am getting in troubles trying to install the GD library under solaris machine I already installed php in my solaris machine using solaris 2.8 and Iplanet 4.7, there is no problem to deal with, the problem is that now I need the GD library, what I

Re: [PHP] feof() problem

2003-07-22 Thread Jason Wong
On Tuesday 22 July 2003 14:44, chandrakant Reddy wrote: [snip] The output that I am getting : File is valid, and was successfully uploaded. Here's some more debugging info: Array ( [userfile] = Array ( [name] = filename.txt [type] = text/plain

Re: [PHP] Enough is Enough.......

2003-07-22 Thread Marek Kilimajer
I used to have the same problem. It seems it's not safe to include a file you have just writen. Beauford.2005 wrote: Done. You must have read my mind. I just finished putting the whole thing in MySQL - since I am using it anyway to hold all my other data it was easy to do. Took me about 45

RE: [PHP] help with ad serving

2003-07-22 Thread electroteque
why reply if you didnt understand ? ok more specifically has anyone served ads with flash which also has an alternative image banner served if ppl dont have the plugin ? -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 6:39 AM To: Php-General

Re: [PHP] Problem with Adding info into an array

2003-07-22 Thread Marek Kilimajer
Phillip Blancher wrote: if($array[0]==) { $array[0]=0; } else { } if($array[1]==) { $array[1]=0; } else { } if($array[2]==) { $array[2]=0; } else { } if($array[3]==) { $array[3]=0; } else { } if($array[4]==) { $array[4]=0; } else { } if($array[5]==) { $array[5]=0; } else { } if($array[6]==) {

Re: [PHP] Jumping between HTTP and HTTPS

2003-07-22 Thread Joel Rees
if you do sniff the hash, the key, and the session. You will have to get your request in before the key becomes stale, race, race! In most cases the authentication is the first thing done so we're dealing with micro seconds. Most cases? Why re-invent the wheel? -- Joel Rees,

[PHP] Apache 2.x and PHP

2003-07-22 Thread Miguel Angelo
Hi All, Can anyone aswer this simple question, that i still have not found it anywhere... Is PHP capable of running on Apache 2.x and if so what version ? And is it stable ? Thankxs for any reply Miguel Angelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] CLI php: how to use different php.ini file

2003-07-22 Thread Jean-Christian IMbeault
I am running some cronjob scripts that are written in PHP. However things are not working as expected because my php.ini file auto-prepends a file. This auto-prepending is meant for my PHP web pages and I don't want it loaded when I run PHP from the command line. Is there a way from me to

Re: [PHP] CLI php: how to use different php.ini file

2003-07-22 Thread Jacob Vennervald Madsen
php -c php.ini-file Jacob Vennervald On Tue, 2003-07-22 at 12:52, Jean-Christian IMbeault wrote: I am running some cronjob scripts that are written in PHP. However things are not working as expected because my php.ini file auto-prepends a file. This auto-prepending is meant for my PHP web

[PHP] Re: Apache 2.x and PHP

2003-07-22 Thread Jean-Christian IMbeault
Miguel Angelo wrote: Is PHP capable of running on Apache 2.x and if so what version ? And is it stable ? PHP will run on Apache 2 but ... #1 Apache 2 is multi-threaded whereas PHP is not. You need to turn Apache 2's multi-threading off. #2 Turning Apache 2's

Re: [PHP] CLI php: how to use different php.ini file

2003-07-22 Thread Jean-Christian IMbeault
Jacob Vennervald Madsen wrote: php -c php.ini-file Thanks! I hate to say it but this was actually in the manual :( I just didn't know where to look ... http://php.net/manual/en/features.commandline.php Jean-Christian Imbeault -- PHP General

[PHP] Re: Apache 2.x and PHP

2003-07-22 Thread Ivo Fokkema
Jean-Christian Imbeault [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Miguel Angelo wrote: Is PHP capable of running on Apache 2.x and if so what version ? And is it stable ? PHP will run on Apache 2 but ... #1 Apache 2 is multi-threaded whereas PHP is not. You need to turn

[PHP] Re: Apache 2.x and PHP

2003-07-22 Thread Jean-Christian IMbeault
Ivo Fokkema wrote: May I add this little note from the PHP installation txt file : ATTENTION: Apache 2 Users At this time, support for Apache 2 is experimental. It's highly recommended you use

Re: [PHP] controlling winamp with COM

2003-07-22 Thread John Manko
I would think that a Java applet would be your best bet. You can have real-time updates instead of page reloads. However, you will need to write a server to handle the specific requests for the applet. That can be done in Java, C/C++, or even Perl. I would prefer Perl because of it's

Re: [PHP] Jumping between HTTP and HTTPS

2003-07-22 Thread John Manko
This is what I decided to do. So the pages that need to be secured, I send the the SID as a GET QUERY variable. I don't like it, but it's the only thing I seems right. Joel Rees wrote: if you do sniff the hash, the key, and the session. You will have to get your request in before the key

Re: [PHP] need help with MySQL full text searching!!!!

2003-07-22 Thread Andrei BEJENARU
I think you need to make a second index that just consists of the one column ALTER TABLE biblio ADD FULLTEXT (title) if you want to search on just that one column. ---John Holmes... Exactly! If you want to do a fultext search on a single column you must have a fulltext index on that

[PHP] access SSH using PHP

2003-07-22 Thread Bang Dodi
Does somebody know how to access SSH (port 22) using PHP ? Thanks. __ Mau ringtones yang gaya ? -- http://www.ponselgaya.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] How to execute a bat file on the Apache server

2003-07-22 Thread Mikael
Hello all, I am trying to execute a bat file, and its not working. I manage to get the CMD in the win task list however its not executing the bat file, and its not closing it self...?? What I need it for is to execute a modem to send a SMS. I got that working but the php stuff is not really my

Re: [PHP] How to execute a bat file on the Apache server

2003-07-22 Thread Petre Agenbag
Well, firstly, you should not have to use the double \\ when using the single quotes, try it without and see if it works... ie, ?php exec('c:\WINNT\system32\cmd.exe /c START c:\test.bat c:\xxx.txt'); ? On Mon, 2003-07-21 at 16:34, Mikael wrote: Hello all, I am trying to execute a bat file,

Re: [PHP] How to execute a bat file on the Apache server

2003-07-22 Thread desa15
Use algo.bat REM Output from a batch file Dir C:\ sleep 10 ?php echo exec (C:/algo.bat); ? or ?php echo system (C:/algo.bat); ? Check if the safe_mode is on, and turn to off Un saludo, Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] mysql_connect, client flags, php 4.3, oh my!

2003-07-22 Thread John Manko
mysql_connect() added support for client flags in 4.3+ I'm wondering if there is another method to supply these flags for any php 4.3? thanks, john -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie lost in array

2003-07-22 Thread Tony Crockford
I've got brain fade today and am in need of a clue, please accept apologies if this is obvious. I have a data table: P_ref P_code P_Value I want to read the data out where P_ref='somevalue' and create variables for the content of P_Code with a value of P_Value what should I be looking for in

[PHP] Shell_exec() [ or what else? ] to kill root-started FTP daemon

2003-07-22 Thread Pietuka Krusti
Hello. I am trying to restart my FTP daemon by killing it and then starting it using the shell_exec() function: shell_exec('kill '.$pid ); Shell_exec does nothing by this - when i do ps -ef later, i see the daemon with the same pid still running. But it did return the correct pid when i ran:

[PHP] Re: Shell_exec() [ or what else? ] to kill root-started FTP daemon

2003-07-22 Thread Pete Morganic
check out the linux sudo command pete R evr{v wrote: Hello. I am trying to restart my FTP daemon by killing it and then starting it using the shell_exec() function: shell_exec('kill '.$pid ); Shell_exec does nothing by this - when i do ps -ef later, i see the daemon with the same pid still

Re: [PHP] Shell_exec() [ or what else? ] to kill root-started FTPdaemon

2003-07-22 Thread Marek Kilimajer
Try sudo (man sudo) Pietuka Krusti wrote: Hello. I am trying to restart my FTP daemon by killing it and then starting it using the shell_exec() function: shell_exec('kill '.$pid ); Shell_exec does nothing by this - when i do ps -ef later, i see the daemon with the same pid still running. But

Re: [PHP] Newbie lost in array

2003-07-22 Thread Marek Kilimajer
$res=mysql_query(SELECT P_Code, P_Value FROM table WHERE P_ref='somevalue'); while(list($code, $value)=mysql_fetch_row($res)) { // now I'm not sure if you want $$code=$value; // or you want $array[$code]=$value; } Tony Crockford wrote: I've got brain fade today and am in need of a clue,

[PHP] PHP-mySQL-opensource-shop - solution

2003-07-22 Thread Alexander
Hi to all, I'm looking for a PHP-mySQL-opensource-shop - solution. Any suggestions or experiencies that could be usefull. Wich TIA Alexander -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP-mySQL-opensource-shop - solution

2003-07-22 Thread Marek Kilimajer
http://www.oscommerce.com/ Alexander wrote: Hi to all, I'm looking for a PHP-mySQL-opensource-shop - solution. Any suggestions or experiencies that could be usefull. Wich TIA Alexander -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newbie lost in array

2003-07-22 Thread sven
hi tony, how is your table structured? is is a csv-file, a database, a html-table, ...? ciao SVEN Tony Crockford wrote: I've got brain fade today and am in need of a clue, please accept apologies if this is obvious. I have a data table: P_ref P_code P_Value I want to read the data out

RE: [PHP] Re: Newbie lost in array

2003-07-22 Thread Tony Crockford
hi tony, how is your table structured? is is a csv-file, a database, a html-table, ...? ciao SVEN Ooops! MySQL sorry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] outputting signs

2003-07-22 Thread bob pilly
Hello all Can someone tell me where i am going wrong here. I am trying to echo a '' to the screen which has come from a database field. I get the field by: $notes=%row[notes]; and the feild contains the data 25000, however when i echo this to the screen i get 25000. I have tried

Re: [PHP] Re: Newbie lost in array

2003-07-22 Thread sven
then try: $query = 'select * from `yourTable` where `P_ref`=somevalue'; $result = mysql_query($query); while($row = mysql_fetch_assoc($result)) { $rows[] = $row; } var_export($rows); hth SVEN Tony Crockford wrote: hi tony, how is your table structured? is is a csv-file, a database, a

  1   2   3   >