[PHP] Serializing of OOP into sessions

2002-03-13 Thread David Tandberg-Johansen
Hello could somone please explain to me HOW I serialize classes into session and how I get the on the next page!?? Must I do $object = new ObjectName on the next page for the object to be used?? How does this work? Thanks David -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] reset auto_increment field mysql

2002-03-13 Thread Claudiu
It continues incrementing the id field from where it left.. But i found the solution on the web; it's as simple as : TRUNCATE mytable; (which deletes the contents and also resets auto_increment field to 0) Thanks ! On Tue, 12 Mar 2002, Rick Emery wrote: It worked for me. What results did

Re: [PHP] Serializing of OOP into sessions

2002-03-13 Thread ayukawa
Hello could somone please explain to me HOW I serialize classes into session and how I get the on the next page!?? Must I do $object = new ObjectName on the next page for the object to be used?? No. Try this. File test.inc-- ?php class Object{

[PHP] Array

2002-03-13 Thread Roman Duriancik
I have one small problem. I have array e.g $array but I don't know how to finding arguments and values of this array. e.g $array[aa] = 1; $array[ab] = some; ... and script send me : arguments aa : values 1 arguments bb : values some thanks, roman -- PHP General Mailing List

[PHP] Splitting Header and Body of an Email?

2002-03-13 Thread J.Mueller, pro.vider.de GmbH
Hello List, I'm trying aroung to split the header and the body of an email but can't get it to work. First I read in the email: $fp = fopen(php://stdin,r); $count = 0; while (!feof($fp)) { $data = fgets($fp,4096); $data = chop($data); $count = $count + 1; $content[] = $data; }

[PHP] Re: PHP based search engine

2002-03-13 Thread Eric Persson
David Robley wrote: PHP from around 4.05 has functions available to interface with the mnoGOSearch search engine, available from http://www.mnogosearch.ru/ I recommend you look at this combination. I recommend this one to, its a very good alternative which I used for several projects.

Re: [PHP] include() .htaccess

2002-03-13 Thread Patrick Teague
I'm having problems with .htaccess files setting up the php_value include_dir on both my development test servers. I'm using php4 under apache on win2k for development php4 under apache on unix as a test server. I've currently done the following on the win server Directory php_value

Re: [PHP] Array

2002-03-13 Thread Hiroshi Ayukawa
How about using the function print_r() ? Regards, Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Broken DLL's ...

2002-03-13 Thread Marcel Besancon
Hi everybody, is it possible that there are some broken DLL's in the distributions ?? For example the php_curl.dll . I tried to uncomment it in the php.ini-file and got an error. But by replacing the php_curl.dll with another php_curl.dll from the net it works fine. Is it only me who has

[PHP] Pattern matching in PHP

2002-03-13 Thread Claudiu
Hello! I have a number... say 12234109 i want to transform it to 12,234,109 or 10312 transformed to 10,312 ... i guess you got my point.. Is there a way doing this... I believe pattern matching...but i dont know how to do it... Or any other solution? Thanks... -- PHP General Mailing List

[PHP] Mail Attachment for Photo

2002-03-13 Thread Mark Lo
Hi All, I am trying to do a mail attachment for photo(jpeg file) by using php mail function and qmail server. I have used the following mime format to send out photo attachment provide by http://planetkiller.shadow.net.au/mime-php.txt. But When I received the mail in Outlook Express,

[PHP] Renaming of files after a special pattern possible?

2002-03-13 Thread Andy
Hi there, I am wondering if this is possible in php: I have a whole bunch of files named after countrycodes. E.g. CA-map.gif Now I would like to rename those files after the country. This is listed in a dbtable containing the countrycode and countryname. E.g. CA - Canada How could I generate

[PHP] Renaming files after a name in the db field

2002-03-13 Thread Andy
Hi there, I am wondering if this is possible in php: I have a whole bunch of files named after countrycodes. E.g. CA-map.gif Now I would like to rename those files after the country. This is listed in a dbtable containing the countrycode and countryname. E.g. CA - Canada How could I generate

[PHP] download 32000 images another server server

2002-03-13 Thread Vishak Tomy
Hello, i tried to download 32000 images from another to my server, through the code, $conn_id = ftp_connect($ftp_server); $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); if ((!$conn_id) || (!$login_result)) { echo Ftp connection has failed!; echo

RE: [PHP] session OR variables

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]] Sent: 11 March 2002 21:23 I have a question. I am working on a submit form that will ask you for confirmation of info. I.e. I need to move values submitted via form through 2 different pages. One of the ways to

[PHP] input

2002-03-13 Thread John Gurley
hello, Someone was kind enough to give me this code for sending a value from one page to another, but it doesn't work. I wonder if anyone can see anything wrong: ?php echo ' input name=inp type=hidden value=', $_POST['inp'], ' '; ? I want to pass $inp to another pagee. Thanks In advance

Re: [PHP] PHP and permissions

2002-03-13 Thread Don
I did. That's why I'm confused. phpinfo() is telling me that the user is myself (I don't see the group). So what is the permission difference between running PHP and logging on to the server via telnet as myself? On Tue, 12 Mar 2002, Don wrote: use phpinfo() to find that out... Hi,

[PHP] how could i resize image in PHP

2002-03-13 Thread Vishak Tomy
hello, how clud i resize images im php with the , is the script below rezize it if it work where shuld i place this script? can i give relate path for the jpg file? is it need to place this script in a php file call this in the img src=filename.php please help Header(Content-type: image/jpeg);

RE: [PHP] input

2002-03-13 Thread Rick Emery
?php echo ' input name=inp type=hidden value='. $_POST['inp']. ' '; ? -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 6:55 AM To: [EMAIL PROTECTED] Subject: [PHP] input hello, Someone was kind enough to give me this code for sending a

Re: [PHP] input

2002-03-13 Thread Edward van Bilderbeek - Bean IT
the single quotes you use for your echo indicate that the variable in your echoed string won't be parsed double quotes indicate that it will be parsed... e.g. $test = 1 echo '$test' // prints: $test echo $test // prints: 1 Greets, Edward hello, Someone was kind enough to

[PHP] Superuser for PHP Script

2002-03-13 Thread Johannes Tyra [BrainData]
Hi, I need superuser rights for a PHP Script, called by the Apache Webserver. Is it possible to do this with ? exec (su)?? ? What is with the root password?? Is there an other better way to do this? How can I print the current user/group under php is running? Thanx, -- Mit freundlichem Gruß,

Re: [PHP] input

2002-03-13 Thread Jason Wong
On Wednesday 13 March 2002 20:54, John Gurley wrote: hello, Someone was kind enough to give me this code for sending a value from one page to another, but it doesn't work. I wonder if anyone can see anything wrong: ?php echo ' input name=inp type=hidden value=', $_POST['inp'], ' ';

RE: [PHP] input

2002-03-13 Thread Rick Emery
Nope, that's not the problem. the $_POST[] is NOT inside single-quotes. The problem is he used commas before and after the $_POST[]. -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 7:02 AM To: PHP-General Subject: Re:

Re: [PHP] input

2002-03-13 Thread Jason Wong
On Wednesday 13 March 2002 21:02, Edward van Bilderbeek - Bean IT wrote: the single quotes you use for your echo indicate that the variable in your echoed string won't be parsed double quotes indicate that it will be parsed... e.g. $test = 1 echo '$test' // prints: $test echo

Re: [PHP] Pattern matching in PHP

2002-03-13 Thread RIVES Sergio
i guess you are searching for this function : number_format($number); http://www.php.net/manual/en/function.number-format.php Hope it could help you SR Claudiu a écrit : Claudiu a écrit : Hello! I have a number... say 12234109 i want to transform it to 12,234,109 or 10312 transformed to

[PHP] Adding --with-openssl Not Working

2002-03-13 Thread Ezra Freelove
Solaris 8 PHP 4.1.2 (and 4.1.1) In researching a problem with a script I discovered that I needed to recompile PHP with OpenSSL support. So I successfully compiled PHP using --with-openssl without errors. I did have an issue with libcrypto not being found, but that was resolved by giving

Re: [PHP] input

2002-03-13 Thread Jason Wong
On Wednesday 13 March 2002 21:07, Rick Emery wrote: Nope, that's not the problem. the $_POST[] is NOT inside single-quotes. The problem is he used commas before and after the $_POST[]. You can use commas to separate expressions when using echo. So that's not the problem. AFAICS the code

[PHP] Re: setcookie problem: Cannot add header information - headers already sent by

2002-03-13 Thread Frank Ramsay
Cookies have to be set before the HTML block begins. -fjr Bob wrote: here is the example: ?php // Beginning php // Saving the page header in the variable $head. $head = ENDH !DOCTYPE HTML PUBLIC -//IETF//DTD HTML//EN html head titleFeedback form/title

[PHP] apache htpasswd win32

2002-03-13 Thread DrouetL
Hi everybody I would like to know if somebody already wrote a script to allow apache user administration from php under Win32 All the scripts I found are made for linux (using crypt function) I tried to generate the password with the md5 function but it's not working perhaps I don't know how

Re: [PHP] PHP and permissions

2002-03-13 Thread Jason Wong
On Wednesday 13 March 2002 08:55, Don wrote: I did. That's why I'm confused. phpinfo() is telling me that the user is myself (I don't see the group). So what is the permission difference between running PHP and logging on to the server via telnet as myself? On Tue, 12 Mar 2002, Don

RE: [PHP] Re: setcookie problem: Cannot add header information - headers already sent by

2002-03-13 Thread Rick Emery
He IS setting cookie before sending HTML block. Note, that he is storing the beginning of HTL block in a HEREDOC, which he prints after setting cookie. Somewhere, he may be printing a blank line prior to setting cookie...that problem has bitten me more than once, so now I'm on the look-out for

[PHP] Re: download 32000 images another server server

2002-03-13 Thread Julio Nobrega Trabalhando
You could try to compress the images using php or telnet, or do it in batchs from 5000 files. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and permissions

2002-03-13 Thread Jan Rademaker
On Tue, 12 Mar 2002, Don wrote: I did. That's why I'm confused. phpinfo() is telling me that the user is myself (I don't see the group). So what is the permission difference between running PHP and logging on to the server via telnet as myself? you should be able to find the group id in

Re: [PHP] PHP and permissions

2002-03-13 Thread Jan Rademaker
On Wed, 13 Mar 2002, Jan Rademaker wrote: On Tue, 12 Mar 2002, Don wrote: I did. That's why I'm confused. phpinfo() is telling me that the user is myself (I don't see the group). So what is the permission difference between running PHP and logging on to the server via telnet as

[PHP] passing values

2002-03-13 Thread John Gurley
this is still not working for passing a value from one page to another: ?php echo ' input name=inp type=hidden value='. $_POST['inp']. ' '; ? When I look at the source this appears: input name = inp type = hidden value = which I take to mean that it does not know what $inp is. could it be

Re: [PHP] Superuser for PHP Script

2002-03-13 Thread Dimitris Kossikidis
If you want to use sudo you can do it with the fowling function: function loginsu(){ $fhandle = @popen($sudo_path -u root clear, w); $fputs( $fhanlde, $supassword); @pclose($fhandle); } Dont forget to edit /etc/sudoers adding the folowing line apache ALL=PASSWD:ALL Do it at your

RE: [PHP] passing values

2002-03-13 Thread Hunter, Ray
Are you using the post form method to post this variable to the next page. The value $_POST['inp'] is not present or set...there is a null value there. You will need to set the value with a post inorder to access it with the predefined variable $_POST... Thank you, Ray Hunter Firmware

[PHP] Newbie Question

2002-03-13 Thread Greg
I have an app that worked with mySQL, but now I'm trying to make it use SQL Server. The function that connected to to the mySQL was: mysql_pconnect($db_host, $db_user, $db_pass) or die(Unable to connect to SQL server); I tried to change it to sql_pconnect($db_host, $db_user, $db_pass) or

RE: [PHP] Newbie Question

2002-03-13 Thread Hunter, Ray
What type of OS are you running this application on and how was php compiled? Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Greg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 6:47 AM To: [EMAIL PROTECTED] Subject: [PHP] Newbie

Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-13 Thread Ceyhun Güler
Thanks Jan!!! It Works -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Newbie Question

2002-03-13 Thread Jon Haworth
I'm sure it's something simple, but what's the php function that will let me connect to the SQL Server? mssql_*, instead of mysql_* See them all at http://www.php.net/manual/en/ref.mssql.php HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: apache htpasswd win32

2002-03-13 Thread Nico Vrouwe
You could do it like this: exec( htpasswd -b $passwdfile $username $password ); /nico [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi everybody I would like to know if somebody already wrote a script to allow apache user administration from php under

[PHP] RE: passing values

2002-03-13 Thread John Gurley
Ray, I am using the post method, and the $_POST is inside FORM/FORM, but the value is still not passed. Although I'm not sure what you mean by You will need to set the value with a post inorder to access it with the predefined variable $_POST Could you explain this please. Thanks again

RE: [PHP] RE: passing values

2002-03-13 Thread Rick Emery
John, Post your code. We're all operating in the dark here and we want to help you. -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 8:07 AM To: [EMAIL PROTECTED] Subject: [PHP] RE: passing values Ray, I am using the post method, and

[PHP] re: passing inputs

2002-03-13 Thread John Gurley
Sorry, Didn't mean to keep everyone in the dark here is the code: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN !-- saved from url=(0031)http://godel/jgurley/form1.html -- HTMLHEADTITLEUntitled Document/TITLE META content=text/html; charset=iso-8859-1 http-equiv=Content-Type

[PHP] register_globals and E_ALL error reporting

2002-03-13 Thread Richard Ellerbrock
The following code generates a warning when register_globals=off and error reporting is set to E_ALL. How do I define the constant in another way not to generate a warning? This is with php 4.1.1. I use defines extensively throughout my code and it is making my debugging difficult through the

RE: [PHP] Persistent Links help needed

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 00:51 Hi All, I have multiple PHP pages and make my connection to the MySQl db in one of these pages. When I go to the next one any mysql commands seem not to work - it look like the

Re: [PHP] newbie: using sessions

2002-03-13 Thread Martín Marqués
On Wed, 13 Mar 2002, Faisal Abdullah wrote: Don't you have to assign the login value to the session variable first? session_start(); $login = $HTTP_POST_VARS(login); session_register(login); It's the same. Saludos... :-) Porqué usar una base de datos relacional cualquiera, si podés usar

[PHP] Re: register_globals and E_ALL error reporting

2002-03-13 Thread Peter Clarke
Richard Ellerbrock [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The following code generates a warning when register_globals=off and error reporting is set to E_ALL. How do I define the constant in another way not to generate a warning? This is with php

RE: [PHP] include() .htaccess

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Patrick Teague [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 10:48 I'm having problems with .htaccess files setting up the php_value include_dir on both my development test servers. I'm using php4 under apache on win2k for development php4 under

[PHP] re: passing values

2002-03-13 Thread John Gurley
Thanks everyone for the help. Finally got it working using this: ?php echo 'input name = inp type = hidden value ='; echo ($_POST '$inp'); echo ''; ? Don't hhave a clue why this worked and the others didn't?!?!? thanks John _

Re: [PHP] re: passing inputs

2002-03-13 Thread Erik Price
John, It seems that you're using two different conventions here. This is inconsistent, and confusing to me (at least, and possibly others trying to help you). Let me show you what I am talking about: On Wednesday, March 13, 2002, at 09:20 AM, John Gurley wrote: Sorry, Didn't mean

[PHP] sessions concurrency

2002-03-13 Thread Shane Wright
Hi If I set up a session while generating a page, and I store some data in it, when does that data become available for other connections from the same user (same session)? I.e. If I have a complex page with some session data that is used to dynamically generate some of the images in the

[PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Richard Davey
Hi all, I have a global array $mtxt that is created in my script. I have a function from which I want to access a value from that array: $mtxt[1] = Test; $text = $GLOBALS['mtxt[1]']; Except that gives me the Warning Undefined index; I can use $GLOBALS['mtxt'] to access a global variable

RE: [PHP] Array

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 08:40 I have one small problem. I have array e.g $array but I don't know how to finding arguments and values of this array. e.g $array[aa] = 1; $array[ab] = some; ... and script send

RE: [PHP] registering $_REQUEST variables as session variables.

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Gonzalez, Zara E [mailto:[EMAIL PROTECTED]] Sent: 11 March 2002 17:54 I was just wondering if anyone knew an easy way to register all $_REQUEST variables as session variables. I haven't seen this solution on the list, but what about: foreach ($_REQUEST

Re: [PHP] re: passing values

2002-03-13 Thread Jason Wong
On Wednesday 13 March 2002 23:37, John Gurley wrote: Thanks everyone for the help. Finally got it working using this: ?php echo 'input name = inp type = hidden value ='; echo ($_POST '$inp'); echo ''; ? Don't hhave a clue why this worked and the others didn't?!?!? This isn't working

[PHP] Opening new browser window.

2002-03-13 Thread Way, Paul
Is there anyway that I can open a new browser window in php, like you are able to do in JavaScript (window.open()). I have had a look around and can't find any information on how this can be done. Many thanks. PW.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Opening new browser window.

2002-03-13 Thread Caspar Kennerdale
embed the javascript within the php using echo or print -Original Message- From: Way, Paul [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 16:26 To: '[EMAIL PROTECTED]' Subject: [PHP] Opening new browser window. Is there anyway that I can open a new browser window in php,

RE: [PHP] register_globals and E_ALL error reporting

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Richard Ellerbrock [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 14:25 The following code generates a warning when register_globals=off and error reporting is set to E_ALL. How do I define the constant in another way not to generate a warning? This is

RE: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 16:02 I have a global array $mtxt that is created in my script. I have a function from which I want to access a value from that array: $mtxt[1] = Test; $text = $GLOBALS['mtxt[1]']; Except

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Richard Davey
Mike Ford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $GLOBALS['mtxt'][1] Fantastic :) That's totally illogical but it works a treat. PHP has some weird syntax rules sometimes! Cheers, Rich -- Fatal Design http://www.fatal-design.com Atari / DarkBASIC /

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Rasmus Lerdorf
I don't understand why you think it is illogical. How else would you dereference a multi-dimensional array? On Wed, 13 Mar 2002, Richard Davey wrote: Mike Ford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $GLOBALS['mtxt'][1] Fantastic :) That's

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Andrey Hristov
IMO it is not weird. Think about $GLOBALS['mtxt'] as a pointer to array(it is not but this is a good example). $GLOBALS is a hash list. So it has sub elements - zvals (internal _zend_value ). Every from these zvals can hold zvals. In C the syntax is arFooBar[1][2], not arFooBar[[1][2]] I am

RE: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Hunter, Ray
Where is some good documentation on how $GLOBALS works and what is really going on in the background? Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 9:53 AM To: Richard

Re: [PHP] Renaming files after a name in the db field

2002-03-13 Thread Analysis Solutions
On Wed, Mar 13, 2002 at 01:45:21PM +0100, Andy wrote: How could I generate a php script which scannes the dir for matching Countrycode patterns and renames the filename ? E.g.: Make out of CA-map.gif - canada-map.gif? First, make an array of countries codes and names (see below for one I

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Andrey Hristov
Sources. Andrey - Original Message - From: Hunter, Ray [EMAIL PROTECTED] To: 'Rasmus Lerdorf' [EMAIL PROTECTED]; Richard Davey [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 6:59 PM Subject: RE: [PHP] How to access arrays from $GLOBAL? Where is some good

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Richard Davey
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I don't understand why you think it is illogical. How else would you dereference a multi-dimensional array? Because in my mind (which I know is totally wrong in this instance, I'm just explaining

RE: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Rasmus Lerdorf
I am not sure there is any. $GLOBALS is simply an array that contains individual references to each global variable. For example: $a = 1; $GLOBALS['a'] = 2; echo $a; gives you 2 The best documentation is probably the basic explanation of how references work. http://php.net/references

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Andrey Hristov
to add that $GLOBALS has reference to itself but when used in non-function context. Try ?php var_dump($GLOBALS);? and ?php function a(){ var_dump($GLOBALS); } a(); ? Regards, Andrey Hristov - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Hunter, Ray [EMAIL PROTECTED]

[PHP] --enable-xslt

2002-03-13 Thread Erik Price
A few days ago I upgraded to 4.1.2 on my RH 7.2 server. I used --enable-xslt and --with-sablot in my configure parameters because I thought it would be fun to learn more about XSLT with PHP. But there were problems (I don't have the actual error message, and would like to avoid

[PHP] re: passing inputs

2002-03-13 Thread Jim Long
THANKS TO ERIK PRICE ! You ablility to explain php concepts in simple langauge is exactly why I signed up for this list! I will be deeply greatful for any other tutorials like this one on passing imputs. THANKS AGAIN, Jim Long Erik Price wrote: John, It seems that you're using two

RE: [PHP] Comparing two dynamic dates

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Erick [mailto:[EMAIL PROTECTED]] Sent: 12 March 2002 01:47 I've been working on this for a little while now, without success. I want to compare the current date to a certain recurring date (ie: compare todays date to the date of the second Sunday of

RE: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Ford, Mike [LSS]
-Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 17:12 Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I don't understand why you think it is illogical. How else would you dereference a

[PHP] Credit Card Processing

2002-03-13 Thread David Johansen
I was just wondering what people thought was the best credit card processing place. I've been looking at Authorize.net and PayFlow Pro and I was just wondering if people had any experience with them and had any thoughts on which one was easiest to work with and which one worked best. Thanks, Dave

Re: [PHP] Re: PHP based search engine

2002-03-13 Thread Tim Thorburn
I've gone to the mnoGoSearch page - it does look like it would do the job nicely, however my hosting company absolutely refuses to upgrade to anything above PHP 3.0.16, also it appears as though I'd have to compile a good portion of mnoGoSearch on the server itself - another thing I'm not

Re: [PHP] re: passing inputs

2002-03-13 Thread Rasmus Lerdorf
echo 'input name = inp type = hidden value = '.$_POST['$inp'].''; First of all, $_POST will only work in PHP 4.1.x so make sure you are running a recent version. And second, I bet you mean $_POST['inp'] there. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] --enable-xslt

2002-03-13 Thread Anas Mughal
http://www.devshed.com/Server_Side/XML/XSLTrans/print --- Erik Price [EMAIL PROTECTED] wrote: A few days ago I upgraded to 4.1.2 on my RH 7.2 server. I used --enable-xslt and --with-sablot in my configure parameters because I thought it would be fun to learn more about XSLT with PHP.

[PHP] php setup questions

2002-03-13 Thread Dennis Gearon
When the apache server goes to an error document, specifically, 404, do the post variables go with it? Could I 'vector' off of the 404 document and serve virtual pages out of the database? Also, what's the best way to execute php code that resides in a database? -- If You want to buy computer

[PHP] Re: Random Selecting from mySQL

2002-03-13 Thread Julio Nobrega Trabalhando
You could store the results in a session var to carry along the pages. Then on the second just retrieve them. Or maybe a second table with this info. Give each search an ID and store the results there. It would be easy to implement: INSERT INTO table ('',field) SELECT field FROM table ORDER

[PHP] Own ErrorHandler but standard ErrorMsg

2002-03-13 Thread Malte Hübner
Hi! I've got a little Problem with my ErrorHandler. set_error_handler('ErrorHandler'); is executed on top of my script. Right after it the ErrorHandler function. After the ErrorHandler function there is a require('foo.php'); foo.php does not exist, so there should be an error message thrown

[PHP] Re: Random number Question

2002-03-13 Thread Ralph Friedman
In article [EMAIL PROTECTED], Jennifer Downey wrote: input type=text size=3 INPUT TYPE=submit VALUE=Submit my number NAME=guess you've got the Name attribute attached to the wrong INPUT element: INPUT type=text size=3 name=guess INPUT type=submit value=Submit my number if($guess = =

[PHP] Targetted redirection?

2002-03-13 Thread Ben Cheng
I have a page within a frame that uses Header() to redirect to another page. However, I don't want the redirection to take place just within that frame set. I want the page that it redirects to to cover over the frame. Is this possible? -Ben -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Own ErrorHandler but standard ErrorMsg

2002-03-13 Thread Lars Torben Wilson
On Wed, 2002-03-13 at 11:06, Malte Hübner wrote: Hi! I've got a little Problem with my ErrorHandler. set_error_handler('ErrorHandler'); is executed on top of my script. Right after it the ErrorHandler function. After the ErrorHandler function there is a require('foo.php'); foo.php

Re: [PHP] Targetted redirection?

2002-03-13 Thread Erik Price
On Wednesday, March 13, 2002, at 03:15 PM, Ben Cheng wrote: I have a page within a frame that uses Header() to redirect to another page. However, I don't want the redirection to take place just within that frame set. I want the page that it redirects to to cover over the frame. Is

Re: [PHP] Targetted redirection?

2002-03-13 Thread Joe Webster
If you were going to use javascript to do that, use _parent as the target -- that should reuse the window rather than making a new window. -Joe Erik Price [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wednesday, March 13, 2002, at 03:15 PM, Ben Cheng

[PHP] Re: Targetted redirection?

2002-03-13 Thread Philip Hallstrom
Some browsers (IE I think) understand a Window-target: targetname header. I don't think it works very reliably nor do I remember exactly what versions, but if you search for Window-target you might find some more info. I'd go the javascript route if you can or find another solution... On Wed,

Re: [PHP] accessing data from classes

2002-03-13 Thread Jeff Warrington
In [EMAIL PROTECTED], Samuel Ottenhoff wrote: It is good that you are looking into classes and functions. The concept you are missing is that of returning a result. At the end of your function mysql_query, add a line: return $result; Then, when you call that function, make it like

Re: [PHP] --enable-xslt

2002-03-13 Thread Erik Price
On Wednesday, March 13, 2002, at 01:58 PM, Anas Mughal wrote: http://www.devshed.com/Server_Side/XML/XSLTrans/print Actually, that's the very tutorial that led me to ask about installing with XSLT configure parameters. I'm building it now, as I write this. But I was wondering about some

[PHP] banner ads

2002-03-13 Thread tom hilton
Hi, does anyone know of a simple banner ad rotation script that can rotate animated gifs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Targetted redirection?

2002-03-13 Thread Analysis Solutions
On Wed, Mar 13, 2002 at 03:52:42PM -0500, Erik Price wrote: On Wednesday, March 13, 2002, at 03:15 PM, Ben Cheng wrote: However, I don't want the redirection to take place just within that frame set. I want the page that it redirects to to cover over the frame. Is this possible?

[PHP] Random Selecting from mySQL

2002-03-13 Thread Georgie Casey
I know how to use the ORDER BY rand() command on the end of queries to randomize selection, but that's no good when you want to only display 10 results per page. The next page the user chooses, randomizes again and could show duplicate fields and not at all show other fields. Does anyone know a

[PHP] RE: [PHP-DB] Random Selecting from mySQL

2002-03-13 Thread Gurhan Ozen
are you just looking for a way to display 10 results per page? If yes then you can just use LIMIT to limit your result to 10 .. So, for the first page, you can do SELECT LIMIT 1, 10; and for the second page SELECT ... LIMIT 11, 20 etc etc . You can sure use ORDER BY with LIMIT to to sort

[PHP] finding and appending txt files on server

2002-03-13 Thread Gav
I'm adapting some ecard code for my site so that users can save the position of various objects within my flash movie. At the moment I create a random file name for the text file which is saved to my server. The user is sent an email saying to go to this.swf?theinfo=randomtextfile.txt. The

[PHP] getting values from multiple select

2002-03-13 Thread Scott St. John
Hi gang- I am working on a javascript box that will allow the user to drag values from one select box to another. I will use this box to set the values. This is a standard, multiple select box. On the next page I need to figure out what PHP is doing with the data coming in. If I send 5

[PHP] Redirect?

2002-03-13 Thread Randum Ian
Hi there, I have recently finished a redesign of a website which I have = put in the directory v2. If I get someone going to http://www.boo.com is it possible to = automatically redirect it to http://www.boo.com/v2 and so on? Basically I need the basehref to be http://www.boo.com/v2 NOT =

Re: [PHP] Redirect?

2002-03-13 Thread Hiroshi Ayukawa
You can do it by modifying the setting of your HTTP server. But if you want to do it by PHP, write header(Location; http://www.boo.com/v2;); in your PHP script of http://www.boo.com/index.php. Regards , Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top -- PHP

[PHP] ICAP/ MCAL Calendaring

2002-03-13 Thread Jackson Miller
I am having a hard time finding recent mentions of using MCAL or ICAP with PHP. I need to add some shared calendaring to an project I am working on. I have been looking at MCAL and ICAP hoping to find out if they are viable. Is the best way to do calendaring in PHP to use a database or is there

[PHP] XSLT parsing causes passed by reference error

2002-03-13 Thread Edward Tanguay
I get the error: Fatal error: Only variables can be passed by reference in /home/tanguay/test/testxslt.php on line 7 when I run this code: ?php // Allocate a new XSLT processor $xh = xslt_create(); // Process the document, returning the result into the $result variable $result =

[PHP] Mini CMS (content management system) (plase cc me, I'm on digest)

2002-03-13 Thread Dennis Gearon
I'm trying to get all requests from a DOMAIN to go through one file, something like: http://www.mydomain.com/all_accesses.php They can come IN as http requests of: http://www.mydomain.com/any_directory/any_filename?any_vars with any POST or COOKIE vars. Anyone have any ideas? I'm trying to

  1   2   >