Re: [PHP] grabbing variable from bottom to top

2003-08-03 Thread Jeff Harris
On Aug 3, 2003, "Micah Montoy" claimed that: |Anyone know of a way to use a variable that isn't defined until further down |the script at the top. I have a counter and once everything runs through |the script, the count is complete, I need to display this at the top above |the displayed results.

Re: [PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Tom Rogers
Hi, Monday, August 4, 2003, 2:03:57 PM, you wrote: RPJ> Any idea on how to get rid of Windows chracters. I have paroblem with RPJ> users cutting and pasting out of Microsoft Word into textarea's and RPJ> input-boxes and the special characters like quotations and apostrophes RPJ> messing up the xm

Re: [PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Justin French
Identify common problematic characters, and develop a function (series of str_replace()'s) to convert them to suit. Over time, you can always add to this function as you spot more problematic characters. Also look at something like Tidy (see archives in the last week where it was discussed wit

Re: [PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Hank TT
I don't know how MS encodes its "smart" quotes but there are certainly Unicode-compliant equivalents: http://www.alanwood.net/unicode/general_punctuation.html And XML is friendly to utf-8 (assuming you do want utf-8). - Original Message - From: "Russell P Jones" <[EMAIL PROTECTED]> To: <

[PHP] Clarification..... UTF-8 Enccoding .....

2003-08-03 Thread Russell P Jones
Any idea on how to get rid of Windows chracters. I have paroblem with users cutting and pasting out of Microsoft Word into textarea's and input-boxes and the special characters like quotations and apostrophes messing up the xml... Thanks Russ -- PHP General Mailing List (http://www.php.net

[PHP] splitting content into pages

2003-08-03 Thread daniel
thanks to the poster on the substr page i made a modification to it so it now splits the content into pages lemme know anyone if this is useful usage: page_content($content,15,$_GET['page']); function page_content($content,$limit,$page) { $array = explode("\r\n", $content);

[PHP] cli file open problem

2003-08-03 Thread Gareth Thomas
Hi, I am trying to write data to a text file on my Windows 2000 server using PHP at the command line. I am running PHP 4.3.2, and the script uses the 'touch' function to create the file (which works fine) but when I try and open the file to write to it and errors. Anyone any idea? I have checked t

Re: [PHP] grabbing variable from bottom to top

2003-08-03 Thread Justin French
Ok, this is completely off the top of my head, and there is more than likely a better way, but if you HAVE to do this, then I guess here's an option: 1. turn on ob (output buffering at the top of the script 2. where you want the counter to be, echo something unique like [EMAIL PROTECTED]@ 3. on

Re: [PHP] grabbing variable from bottom to top

2003-08-03 Thread Jason Sheets
You can't get the intended value from a variable that hasn't been defined yet, obviously because you haven't given the variable a value. If you are trying to make something like a counter you may consider one of the following: 1. Insert the value into a database like MySQL or PostgreSQL, 2. Wr

[PHP] grabbing variable from bottom to top

2003-08-03 Thread Micah Montoy
Anyone know of a way to use a variable that isn't defined until further down the script at the top. I have a counter and once everything runs through the script, the count is complete, I need to display this at the top above the displayed results. I thought about and tried a function but I still

[PHP] Re: microtime alternative

2003-08-03 Thread Micah Montoy
scratch this. I found an alternative. "Micah Montoy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anyone have an alternative to microtime that works for a windows system? > > thanks > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] mysql_real_escape_string

2003-08-03 Thread Jason Sheets
dbc looks like a MySQL Connection Resource, a connection returned from mysql_connect. It looks like this function is using the mysql escape function to make sure the data is properly escaped for that particular database. If you use a function other than mysql_real_escape_string you can remove

[PHP] mysql_real_escape_string

2003-08-03 Thread Anthony Ritter
The following function is from Larry Ullman's PHP and mySQL on page 217 - script 6.8 - in which there is a connection to a mySQL database using PHP. My question is that I'm not sure of the global variable $dbc. If I am to understand...this made up function escape_data() will receive a piece of da

Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-03 Thread Justin French
On Monday, August 4, 2003, at 11:33 AM, Robert Mena wrote: a) apache It seems that apache + php does not work well under heavy load so I should stick with 1.3.X right ? Any ideas where I can find a rpm package for redhat 9 ? I can't help with the Oracle question, but yes, stick with apache 1.3.

[PHP] Invalid Characters, XML...

2003-08-03 Thread Russell P Jones
Im using PHP to write to XML files, but I am having some problems. A lot of users are cutting and pasting content from text editors like word, which uses odd quotation marks, dashes, etc. which PHP writes to the XML file, and then the XML parser does not under stand. Is there a stripslashes() or ht

[PHP] microtime alternative

2003-08-03 Thread Micah Montoy
Anyone have an alternative to microtime that works for a windows system? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] logging of mail() function?

2003-08-03 Thread Jason Sheets
This is something you would probably do with your e-mail server, not with PHP. You can log all of the emails sent by your scripts by writing a wrapper around mail though. Basically check your SMTP daemon's documentation whether it be sendmail, qmail or something else and look for auditing or

Re: [PHP] Forking PHP Processes on Unix (PHP4)

2003-08-03 Thread Jason Sheets
PHP can fork on Unix, just not from a web environment. So you need to execute the command from the command line or maybe an exec. Take a look at: http://www.php.net/manual/en/ref.pcntl.php Jason Damien G wrote: Hi Readers, Heres what i'm trying to achieve: A script, that uses multiple fsock

[PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-03 Thread Robert Mena
Hi, I am planning to migrate my current web server from redhat 7.x to 9 and I am currently evaluating what may go wrong or need special attention before I actually replace it. After searching the archives and other lists I still have a couple of questions : a) apache It seems that apache + php

[PHP] Re: mail funciton

2003-08-03 Thread Igor Konforti
I'm sorry,i was just checking if outgoing server is working :P -- Igor Konforti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 4 Aug 2003 01:23:49 -0000 Issue 2215

2003-08-03 Thread php-general-digest-help
php-general Digest 4 Aug 2003 01:23:49 - Issue 2215 Topics (messages 158073 through 158100): Re: connecting access (*.mdb) database with PHP 158073 by: Simon Fredriksson Help with "secure" virtual host setup 158074 by: Robert Mena loop and write array 158075 by: Mic

[PHP] Re: mail funciton

2003-08-03 Thread Igor Konforti
Try weed On Sun, 3 Aug 2003 13:06:33 -0700, <[EMAIL PROTECTED]> wrote: hope i am sending my problem to the right place recently installed PHP with Apache , on Windows 2000 paltform,,all is well, but cnat seem to get the mail() fucntion working i made the chagnes in php.ini SMTP set to my outgoi

Re: [PHP] Tracking Users via Cookies?

2003-08-03 Thread Ryan A
Hey, As far as i know you cant do that, you can see from where they have come (ie. where they have visited before coming to you) but not after they leave your site unless they return. /* >I want to give my client an > informed answer on what is possible, then let them know the implications of > pr

[PHP] Tracking Users via Cookies?

2003-08-03 Thread Jason Bourque
Hello, I hope someone can answer this. I have a client that would like to track their visitors if they go to other competitors websites after visiting their own. Is this possible? I think it is possible to track where they go in the site visited. . . I know that tracking isn't a good idea but I

[PHP] mail funciton

2003-08-03 Thread aculott
hope i am sending my problem to the right place recently installed PHP with Apache , on Windows 2000 paltform,,all is well, but cnat seem to get the mail() fucntion working i made the chagnes in php.ini SMTP set to my outgoing email server, that i have with myu ISP and sendmail_from with my emai

[PHP] payflow pro with php

2003-08-03 Thread Richard Baskett
Ok I am having some serious problems with payflow pro.. Has anybody else had the problem that when you execute the test.sh script it works fine, but when you do the exact same thing in php it gives you a failed to connect response message? If so what in the world did you do to get it to work? Th

[PHP] Forking PHP Processes on Unix (PHP4)

2003-08-03 Thread Damien G
Hi Readers, Heres what i'm trying to achieve: A script, that uses multiple fsockopen()'s and simltaniously get feedback from each socket from fget()s. Now, since using a single fget() needs to be in a loop then it's not possible to have more than one loop going at the same time. I was thinking o

Re: [PHP] logging of mail() function?

2003-08-03 Thread John W. Holmes
RiGe wrote: Is there possible to log outgoing mails sent via mail() function? I need to know, when, which script (can be path to php file on server) and receipt of mail that was sent. Is there possible? Not directly, unless your SMTP server is keeping a log. Write your own wrapper function my_mail

[PHP] logging of mail() function?

2003-08-03 Thread RiGe
Is there possible to log outgoing mails sent via mail() function? I need to know, when, which script (can be path to php file on server) and receipt of mail that was sent. Is there possible? Thanx. RiGe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] [secure PHP] Error handling (again)

2003-08-03 Thread Curt Zirzow
* Thus wrote thierry lhomme ([EMAIL PROTECTED]): > Hi ! > > I still have found no satisfying solution to my problem yet... > > At home, when an error occurs in an script I got something like this : > > Warning: unlink() failed (No such file or directory) in c:\program > files\easyphp\www\php_scr

[PHP] [secure PHP] Error handling (again)

2003-08-03 Thread thierry lhomme
Hi ! I still have found no satisfying solution to my problem yet... At home, when an error occurs in an script I got something like this : Warning: unlink() failed (No such file or directory) in c:\program files\easyphp\www\php_scripts\index.php on line 356 but my provider in the same case deli

Re: [PHP] Idiot problem

2003-08-03 Thread Comex
<[EMAIL PROTECTED]> Ryan A: > everytime I > write to the list if its with a question or with an answer I get this > message: Can't you just set a message rule? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Idiot problem

2003-08-03 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hi, > Will someone please remove this jackass from the list? everytime I write to > the list if its with a question or with an answer I get this message: > > Transmit Report: > > To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) Heh..

[PHP] Re: how can I get errors to display in a browser?

2003-08-03 Thread jsWalter
"Comex" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > display_errors Bingo! thanks walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] for the love of god, remove me

2003-08-03 Thread Curt Zirzow
* Thus wrote Joseph Bannon ([EMAIL PROTECTED]): > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > This page is useless, you can't remove yourself. Internet technology hasn't gotten far enough to read the minds of users. If maybe you

[PHP] Re: how can I get errors to display in a browser?

2003-08-03 Thread Comex
display_errors "Jswalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a test script, with deliberate errors. > > The broswer shows nothing, blank, empty. > > It used to show errors, now it does not. > > No idea what I did to turn it off. > > Can someone tell me hoew to tur

[PHP] Idiot problem

2003-08-03 Thread Ryan A
Hi, Will someone please remove this jackass from the list? everytime I write to the list if its with a question or with an answer I get this message: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) According to what was said on the list a few days back he

RE: [PHP] how can I get errors to display in a browser?

2003-08-03 Thread Boaz Yahav
Try adding : error_reporting(2039); as the 1st line in your file. Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. Share your code : http://addexample.weberdev.com -Original Message- From: jsWalter [mailto:[EMAIL PROTECTED] Sent:

[PHP] how can I get errors to display in a browser?

2003-08-03 Thread jsWalter
I have a test script, with deliberate errors. The broswer shows nothing, blank, empty. It used to show errors, now it does not. No idea what I did to turn it off. Can someone tell me hoew to turn it back on? In my php.ini file, it says... error_reporting = E_ALL I thought that was wha

Re: [PHP] for the love of god, remove me

2003-08-03 Thread David Smith
It's not usless if you read the page. [EMAIL PROTECTED] On Sun, 2003-08-03 at 13:45, Joseph Bannon wrote: > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > This page is useless, you can't remove yourself. > > J. > > > ___

[PHP] for the love of god, remove me

2003-08-03 Thread Joseph Bannon
> PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php This page is useless, you can't remove yourself. J. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo

[PHP] Why does virtual behave like it does?

2003-08-03 Thread DvDmanDT
Here's what I tried: function buf($cmd) { ob_start(); preg_replace("#e#e",$cmd,"e"); $ret=ob_get_contents(); ob_end_clean(); return $ret; } ob_start(); $contents=buf('virtual("/test/")'); I tried the buf() function with print() and it worked as expected... Now, why does virtual teminate ob? I thi

[PHP] Not sure of the best way to handle a problem

2003-08-03 Thread David Smith
Hi: I have a slight problem that I'm not sure where to begin. I have multiple files on another server other then my linux box that needs to be renamed. These files are used under a particular software package and I am trying to switch them to another software package which would require them to be

[PHP] [Apache Newsletter Draft] News from PHP Project in July, 2003

2003-08-03 Thread Tetsuya Kitahata
Dear PHP General List Subscribers, (http://www.php.net/) Hello, I am now in the process of preparing the first all-Apache-wide newsletter. http://www.apache.org/newsletter/ 'The Apache Newsletter Issue 1' ... ASF-wide-newsletter of July 2003, which will be published in the middle of August 200

Re: [PHP] loop and write array

2003-08-03 Thread Jason Wong
On Sunday 03 August 2003 21:50, Micah Montoy wrote: > I can't figure out how to separate each keyword by the comma and then write > that specific keyword to an array to be used. Any and all help would be > appreciated. explode() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Sou

Re: [PHP] .htaccess

2003-08-03 Thread Simone Levy
> Just one question, is there any way that when a person logs in via the > htaccess popup that i can know via my php script...and can i also get > his > username? Protect the directory you want with .htaccess If authentication was successful, your code in index.php is executed: if($REMOTE_USER=="

[PHP] loop and write array

2003-08-03 Thread Micah Montoy
I'm having difficulty in trying to figure out a way to loop through a query and extract the info from a single column into an array. Here is what I am looking for. In the table, I have a column called keywords that has a string of information that are separated with a comma. I am looking for a w

[PHP] Help with "secure" virtual host setup

2003-08-03 Thread Robert Mena
Hi all, I host some virtual domains within my apache 1.3.x/php 4.3.x setup. Those domains are mantained by the users via ftp and I was wondering if I could secure the configuration a little bit more. I know that are limitations but the requirements would be : a) the user should not be able to a

[PHP] Re: connecting access (*.mdb) database with PHP

2003-08-03 Thread Simon Fredriksson
Unless you can find some Access-Class I think ODBC is the way to go. No idea how you can solve it if you're using a *nix server though. //Simon Pehepe Php wrote: how can I connect access database(*.mdb) with php? what is the code? I will be happy if you write php code. Thank you!

php-general Digest 3 Aug 2003 13:04:03 -0000 Issue 2214

2003-08-03 Thread php-general-digest-help
php-general Digest 3 Aug 2003 13:04:03 - Issue 2214 Topics (messages 158061 through 158072): Re: Trouble with Session var 158061 by: Curt Zirzow Re: subtracting dates... 158062 by: John Ryan Re: Pushing array onto array 158063 by: Curt Zirzow 158065 by: Hank

[PHP] Re: [PHP-DB] subtracting dates...

2003-08-03 Thread Matthew McNicol
> In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users > date of births. I need to calculate in a PHP script, the users age from this > DOB. I get a PHP date in the same format as the mySQL and subtract, which > returns the year rounded off. ie, it doesnt matter if your bir

[PHP] PHP SESSIONS and FRAMES

2003-08-03 Thread Ralph Guzman
I have a shopping cart with affiliate sales support. What's happening is that some affiliates are using frames to use their domain while using our shopping cart. So they are using a frameset like this: http://www.domain.com/?store_id=15008";> The problem I'm having is that sessions ar