[PHP] Re: Header, Directory, and SESSIONs

2003-06-22 Thread nabil
As I said before that I don't want the same user to confuse in which part of the site he is ... because as I said it is same PHP files but dealing with different databases and tables.. so I can't let him jump in between , and cause some confusion and data mess when he's entering data.. PLEASE

[PHP] Re: correct session format?

2003-06-22 Thread nabil
So what is the diffirent between : // session_start (); $_SESSION['eventid'] = 'arma2'; /// and / session_start (); session_register('arama2'); /// Regards Nabil Thomas Seifert [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] yeah its the right way.

Re: [PHP] return all non-tag characters

2003-06-22 Thread Robert Cummings
Everything you need is at: http://www.php.net/manual/en/function.strip-tags.php Cheers, Rob. Mike Migurski wrote: I want to be able to retrieve and return all character that are not located in html tags. For example: font size=\3\ color=\#336699\1234567/font or

[PHP] a question, need an answer

2003-06-22 Thread nabil
what is the diffirent between : // session_start (); $_SESSION['eventid'] = 'arma2'; /// and / session_start (); session_register('arama2'); /// Regards Nabil -- open source world, open mind for all -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] a question, need an answer

2003-06-22 Thread PHP4 Emailer
I could be wrong here, but from my experiences with sessions is that your first session_start() is assigning the value of 'arma2' to the $_SESSION['eventid'] variable, whereas the second one you are making the 'arama2' variable a global session variable, so as to whatever it's value is on the page

RE: [PHP] a question, need an answer

2003-06-22 Thread PHP4 Emailer
PS, from the http://www.php.net/manual/en/function.session-register.php page, you might want to read that because your second session call won't work with register globals is disabled but $_SESSION array will. :) -Original Message- From: PHP4 Emailer [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] a question, need an answer

2003-06-22 Thread justin gruenberg
what is the diffirent between : // session_start (); $_SESSION['eventid'] = 'arma2'; /// and / session_start (); session_register('arama2'); /// Regards Nabil Both accomplish the same thing, except how you are using it might not be what you expect.

[PHP] TIP parsing form row data into variables

2003-06-22 Thread George Pitcher
Hi all, This might be well known, so apologies if I'm going over old ground - I've not seen this explained this way. Last year I did a site using the variable variables method to parse row data. Now that I've moved to globals=off, I couldn't get that to work so I tried a few other options

Re: [PHP] TIP parsing form row data into variables

2003-06-22 Thread justin gruenberg
Nothing appears blatently wrong in the code you provided, but it's 4am here, so I might be off. This comes to my mind: 1. $_REQUEST was available from PHP 4.1.0 and later, are you using somthing before that? 2. I assume you're doing somthing with $e_id within your loop, or else you're just

[PHP] strong authentication for a lamp-system

2003-06-22 Thread Daniel Struck
Hello, I am thinking of setting up strong authentication for a lamp-system based on smart-cards: First authenticate the user with a two-way authentication with apache (openssl). I hope I can put the client certificat on a smartcard. Then read the client certificate within php from an apache

Re: [PHP] a question, need an answer

2003-06-22 Thread Justin French
I think you mean: $_SESSION['eventid'] = 'arma2'; vs $eventid = 'arma2'; session_register('eventid'); I'd advise the first, unless you need to ensure backwards compatibility with PHP 4.1 Justin on 22/06/03 4:41 PM, nabil ([EMAIL PROTECTED]) wrote: what is the diffirent between :

RE: [PHP] TIP parsing form row data into variables

2003-06-22 Thread George Pitcher
Justin, I'm using 4.3. V4.1 was my first ever exposure to PHP. The example I provided used a field I knew had to be popluated (because of where it came from, but for others I do some isset() validation. The scenario I'm working with is university reading lists. A university has several reading

[PHP] Query mysql highest id number

2003-06-22 Thread Chris Schoeman
I want to make a query in a mysql database with as result the row with the highest id number. How can I do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Query mysql highest id number

2003-06-22 Thread Milan Reznicek
Try this SELECT * FROM table ORDER BY id DESC LIMIT 1 Milan - Original Message - From: Chris Schoeman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 22, 2003 12:05 PM Subject: [PHP] Query mysql highest id number I want to make a query in a

[PHP] Fw: Front Page equivalent

2003-06-22 Thread Graham Webb
- Original Message - From: Gabor Hojtsy [EMAIL PROTECTED] To: Graham Webb [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, June 22, 2003 11:59 AM Subject: Re: Front Page equivalent Please ask support questions at [EMAIL PROTECTED] Goba Graham Webb írta: I am looking for

php-general Digest 22 Jun 2003 11:06:13 -0000 Issue 2132

2003-06-22 Thread php-general-digest-help
php-general Digest 22 Jun 2003 11:06:13 - Issue 2132 Topics (messages 152413 through 152442): Now what's wrong with this? 152413 by: Kyle Babich 152414 by: Brad Pauly PHP on Microsoft Windows 2003 Server 152415 by: Ben Johnston 152416 by: John W. Holmes Re:

RE: [PHP] Fw: Front Page equivalent

2003-06-22 Thread George Pitcher
Graham, PHP editors is a frequent topic on this list. I would suggest that you have a look at the archives and see if the answer is there. BTW, I only use Dreamweaver and don't have any problems. George -Original Message- From: Graham Webb [mailto:[EMAIL PROTECTED] Sent: 22 June

Re: [PHP] from a textfile/textarea to a mysql INSERT

2003-06-22 Thread Øystein Håland
John W. Holmes [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Øystein Håland wrote: From Excel you can save a table as a tab separated txt-file. I want to take this and execute INSERT queries (by uploading the file or by copying the content into a textarea). Anyone who has a

Re: [PHP] Is there a way to get rid of \' and \ ?

2003-06-22 Thread Jason Wong
On Sunday 22 June 2003 06:00, Dan Anderson wrote: I have a form which feeds into an e-mail. When I use the mail function all 's turn into \'s and all s turn into \s. Are you sure it's the mail() function that's doing it? I doubt it. I tried set_magic_quotes_runtime(0) and it didn't do

[PHP] variable shortened in hidden fields?

2003-06-22 Thread Denis L. Menezes
Hello friends. I am passing a variable of two word like communications software from one form to the other. The variable passes as communications%20software . This is okay for some purpose, but not for the hidden text field that I want. The hidden text field gets the value communications only

[PHP] Secur32.dll and php_imap.dll

2003-06-22 Thread Mark
Win NT4.0 Apache 2.0.45 I've searched the archives and google, but haven't been able to quite find a solution to this problem. I just upgraded from php4.3.1 (pre-release version) to php4.3.2. I am now getting the following two errors, which I'm sure I've gotten and fixed in the past, but can't

Re: [PHP] variable shortened in hidden fields?

2003-06-22 Thread Chris Hayes
At 15:23 22-6-2003, you wrote: Hello friends. I am passing a variable of two word like communications software from one form to the other. The variable passes as communications%20software . This is okay for some purpose, but not for the hidden text field that I want. The hidden text field gets

[PHP] Re: Query mysql highest id number

2003-06-22 Thread Bobby Patel
you can you the Mysql MAX function, I believe Select Max(ID) from Table; Also, you may want to look at PHP's mysql_insert_id(), (if you are trying to find the id number after an insert (if that's what you want)). Chris Schoeman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want

[PHP] am i doing this right?

2003-06-22 Thread Jay Fitzgerald
This is the code I have that is on step 4 of an event registration system i am working on... [code page=step4.php] ini_set(display_errors, 1); ini_set ('error_reporting', E_ALL); session_start (); $ip = $_SERVER['REMOTE_ADDR']; $fullhost = gethostbyaddr($ip); $host = preg_replace(/^[^.]+./, *.,

[PHP] Variable from hidden fields shortens.

2003-06-22 Thread Denis L. Menezes
I have a form called feedback which has a hidden field as follows : ?php Printinput type=\text\ name=\SubCategoryName\ value=\$SubCategoryName\; ? I send this hidden field as a variable in form2 which sends an email with the following code : ?php // Build up email header fields $mailFrom

Re: [PHP] Variable from hidden fields shortens.

2003-06-22 Thread Philip Olson
For example: $a = 'a b c'; print $a;// a b c print urlencode($a); // a+b+c So, you want to urlencode your url (the query string). Regards, Philip On Sun, 22 Jun 2003, Denis L. Menezes wrote: I have a form called feedback which has a hidden field as follows : ?php Printinput

Re: [PHP] Is there a way to get rid of \' and \ ?

2003-06-22 Thread Philip Olson
On Sun, 22 Jun 2003, Jason Wong wrote: On Sunday 22 June 2003 06:00, Dan Anderson wrote: I have a form which feeds into an e-mail. When I use the mail function all 's turn into \'s and all s turn into \s. Are you sure it's the mail() function that's doing it? I doubt it. I tried

[PHP] simple flash php form, help please

2003-06-22 Thread Paul Ferrie
Hi again guys :) I am having problems with this little email user script for my website. I have set this script here to run with flash outputing the information. When i run the script in the browser i grt this error Warning: Failed to Receive in C:\apache\htdocs\innovat\forum\mailuser.php on line

[PHP] How to run script ?

2003-06-22 Thread Xprogsoft
Hi, If i try to run php script out side DOCUMENT_ROOT i.e using an alias. the server reply with No input file specified. I have Xitami and win 98. My Q how do i tell php where to find the script. Hope some one can help! Regards. -- PHP General Mailing List (http://www.php.net/) To

[PHP] execute a command

2003-06-22 Thread Mattia
How to execute a command capturing the stanndard error, in addition to standard output? example: echo system('/bin/rm ...'); I need to know when this command fails, and when it fails, i need to know why. Any hints? _Mattia_ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Mod_L33T ANYONE! (Virtual Hosts ) alternative READ if you USE Virtual Hosts

2003-06-22 Thread Mark Clarkstone
hey everyone do any of you people use mod_l33t? I do it rocks you can have about 1000 sites on your comp with their own domain your ram won't even go down 1mb. its easy to setup its very cool email me or post if you want of info -- PHP General Mailing List (http://www.php.net/) To

[PHP] Security conundrum ....

2003-06-22 Thread Miles Thompson
This does have to do with PHP, but bear with me. We're using a Flash movie, which calls various PHP scripts to authenticate users retrieve news articles, to display a daily business digest. As Flash's printing capabilities are pathetic, we use JavaScript to popup a chromeless window in which

[PHP] changing PHP include location without .htaccess

2003-06-22 Thread Tim Thorburn
Hi, I have a site running on a shared server (and as such, I have no access to the php.ini file) that I'd like to be able to change the default include path. I've done this before using the .htaccess file and the following command: php_value include_path .:/path/to/web/ However, on this

Re: [PHP] changing PHP include location without .htaccess

2003-06-22 Thread Jason Wong
On Monday 23 June 2003 05:10, Tim Thorburn wrote: I have a site running on a shared server (and as such, I have no access to the php.ini file) that I'd like to be able to change the default include path. I've done this before using the .htaccess file and the following command: php_value

Re: [PHP] execute a command

2003-06-22 Thread Don Read
On 22-Jun-2003 Mattia wrote: How to execute a command capturing the stanndard error, in addition to standard output? example: echo system('/bin/rm ...'); I need to know when this command fails, and when it fails, i need to know why. Any hints? _Mattia_ $cmd='/bin/rm foo';

php-general Digest 22 Jun 2003 23:07:36 -0000 Issue 2133

2003-06-22 Thread php-general-digest-help
php-general Digest 22 Jun 2003 23:07:36 - Issue 2133 Topics (messages 152443 through 152461): Re: Front Page equivalent 152443 by: George Pitcher Re: from a textfile/textarea to a mysql INSERT 152444 by: Øystein Håland Re: Is there a way to get rid of \' and \ ?

[PHP] limit on displaying a LONGTEXT filed from MySQL database

2003-06-22 Thread Artoo
Hi, How can I start searching for the first space in a string while starting at say the 150th character? I'm trying to display the first 150 characters of an article that is stored in a LONGTEXT filed of a MYSQL database, and should the 150th character be inside a word, I would want to finish

Re: [PHP] limit on displaying a LONGTEXT filed from MySQL database

2003-06-22 Thread Adam i Agnieszka Gasiorowski FNORD
Artoo wrote: For example supose the 150th character is the v in the word privileges I would want to finish displaying the word and end with privileges rather then ending withpriv How about using the SUBSTRING_INDEX function with delimiter set to ' ' (space). You could select for

[PHP] How do I get the exit code of an external program?

2003-06-22 Thread Daevid Vincent
I wish to use Ping to test if some IP addresses are up... Now I could run the command and parse to find various string components like this: [EMAIL PROTECTED] bin]# ping -n -c 3 -w 2 -q 192.168.1.60 PING 192.168.1.60 (192.168.1.60) from 192.168.1.1 : 56(84) bytes of data. --- 192.168.1.60 ping

Re: [PHP] Mod_L33T ANYONE! (Virtual Hosts ) alternative READ if youUSE Virtual Hosts

2003-06-22 Thread Leif K-Brooks
Mark Clarkstone wrote: hey everyone do any of you people use mod_l33t? I do it rocks you can have about 1000 sites on your comp with their own domain your ram won't even go down 1mb. its easy to setup its very cool email me or post if you want of info 1) This has absolutley nothing to do with

Re: [PHP] How do I get the exit code of an external program?

2003-06-22 Thread Don Read
On 23-Jun-2003 Daevid Vincent wrote: I wish to use Ping to test if some IP addresses are up... Now I could run the command and parse to find various string components like this: snip So it seems to me there needs to be another PHP function like exec(), shell(), etc. that is the

FW: [PHP] How do I get the exit code of an external program?

2003-06-22 Thread Daevid Vincent
-Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Sunday, June 22, 2003 8:05 PM To: 'Don Read' Subject: RE: [PHP] How do I get the exit code of an external program? -Original Message- From: Don Read [mailto:[EMAIL PROTECTED] Sent: Sunday, June 22,

Re: [PHP] Secur32.dll and php_imap.dll

2003-06-22 Thread Mark
Well, I'm not sure if I did a smart thing, but it appears that secur32.dll and security.dll are the same file, just differnt versions. It seems that the file is secur32.dll on all Windows versions except WinNT (I could be wrong). I simply copied and renamed security.dll to secur32.dll. So far so

Re: [PHP] Security conundrum ....

2003-06-22 Thread Justin French
Ok, I'm trying to get a grip on what happens here: 1. i visit your site, see a flash movie, which enables me to log-in 2. after i log in, I see a link called news 3. I click on it, which pops open a HTML window through javascript, with a URL like example.com/print_news.php [At this point, the

Re: FW: [PHP] How do I get the exit code of an external program?

2003-06-22 Thread Lars Torben Wilson
On Sun, 2003-06-22 at 20:19, Daevid Vincent wrote: [snip] http://us3.php.net/manual/en/function.exec.php string exec ( string command [, array output [, int return_var]]) exec() executes the given command, however it does not output anything. It simply returns the last line from the result

Re: [PHP] Mod_L33T ANYONE! (Virtual Hosts ) alternative READ if youUSE Virtual Hosts

2003-06-22 Thread John Nichel
Leif K-Brooks wrote: Mark Clarkstone wrote: hey everyone do any of you people use mod_l33t? I do it rocks you can have about 1000 sites on your comp with their own domain your ram won't even go down 1mb. its easy to setup its very cool email me or post if you want of info 1) This has

Re: [PHP] limit on displaying a LONGTEXT filed from MySQL database

2003-06-22 Thread Justin French
Here one way you can do it (untested): ? function chopper($str,$chars) { while($str{$chars} != ' ' $chars = strlen($str)) { $chars++; } $newStr = substr($str,0,$chars); return $newStr; } $originalText = The quick brown fox jumped over the lazy dog;

[PHP] Getting at $_POST values using a loop

2003-06-22 Thread Dave Alger
Hi all, This one is causing me a few headaches. How should I be doing this? On my previous page I've created a series of fields using a loop so that a field is created like this: echo hr$fieldname:input name='Field$n' maxlength='25'; On my next page then I've got to try to read these values.

RE: [PHP] Getting at $_POST values using a loop

2003-06-22 Thread Ralph
echo hr$fieldname:input name='FieldName[]' maxlength='25'; for ($i=0, $n=sizeof($_POST['FieldName']); $i$n; $i++){ // do whatever you need to do with each field echo $_POST['FieldName'][$i]; } -Original Message- From: Dave Alger [mailto:[EMAIL PROTECTED] Sent: Sunday, June 22,

RE: [PHP] OOT Payflow Urgent

2003-06-22 Thread Ralph
I've never done this using CURL however I have done this using socket connections. If you haven't already you may want to look into this, I'm sure payflow will allow you to post data using socket connection. Take a look at: http://us4.php.net/fsockopen In the User Contributed Notes look for a

[PHP] SQL injection

2003-06-22 Thread Sancar Saran
Hi, Is there any way, doc, article, example, idea, suggestion to how to prevent sql injection on php sites... Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php