Re: [PHP] php running as module or cgi?

2010-11-12 Thread John Hicks
On 11/11/2010 02:14 PM, Didier Gasser-Morlay wrote: On 11/11/2010 12:04 PM, Richard Quadling wrote: On 11 November 2010 00:46, Aln...@ridersite.org wrote: Briefly, what are the trade offs on a typical shared host? I've done a little research and can't seem to find anything outstanding either

Re: [PHP] STRING TO ASCII CHARACTERS

2006-06-24 Thread John Hicks
Ahmed Saad wrote: On 23/06/06, cajbecu [EMAIL PROTECTED] wrote: $data .= #.ord(substr($string,$i,1)).;; and I think there's no need for substr.. just $data .= #.$string[$i].;; /ahmed And, for the record, you are not converting a string to ASCII, rather an ASCII string to its decimal

Re: [PHP] Running two versions of PHP locally

2006-05-19 Thread John Hicks
Just a quick sanity check from a php4 user who's thinking of trying php5: With PHP3 and PHP4 (I thought) you could install both Apache modules and invoke them on a page by page basis based on the extension you assign them in Apache ( .php v. .php4 for example). Are you all saying you can't

Re: [PHP] Running two versions of PHP locally

2006-05-19 Thread John Hicks
... On 5/19/06, John Hicks [EMAIL PROTECTED] wrote: Just a quick sanity check from a php4 user who's thinking of trying php5: With PHP3 and PHP4 (I thought) you could install both Apache modules and invoke them on a page by page basis based on the extension you assign them in Apache ( .php v. .php4

Re: [PHP] safe_mode

2006-05-19 Thread John Hicks
tedd wrote: Hi gang: Please excuse me for asking another dumb-ass question, but here goes. I'm finding that setting safe_mode to ON is more difficult than I first thought. In my phpinfo, safe_mode is set to OFF However, if I try to set it to ON in my .htaccess such as: php_value

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
Robert Filipovich wrote: I am using a chat program and trying to call the status page from another server and the graphic that the page returns does not show up. It works if you are calling from the webserver that the chat program is working so i feel it is some type of config problem or

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
John Hicks wrote: Robert Filipovich wrote: I am using a chat program and trying to call the status page from another server and the graphic that the page returns does not show up. It works if you are calling from the webserver that the chat program is working so i feel it is some type

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
. I will see what I can find in the log. /Robert On 5/18/06, *John Hicks* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: John Hicks wrote: Robert Filipovich wrote: I am using a chat program and trying to call the status page from

Re: [PHP] Object Array?

2006-05-18 Thread John Hicks
Jay Paulson wrote: I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore I can't go through it. (i.e. I can't use the count function to see how big it is and loop through it) This below should be

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
mysql errors? (Display your sql statements while you are at it.) I posted the (GNU open) source here: http://johnhicks.org/statusimage.phps in case someone else on the list would care to look. --J On 5/18/06, *John Hicks* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Please reply

Re: [PHP] Need help calling PHP page from another server.

2006-05-18 Thread John Hicks
Stut wrote: John Hicks wrote: Robert Filipovich wrote: Looks like all of these are happening. The description for Event ID ( 2000 ) in Source ( php ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote

Re: [PHP] touch()ing it....advise needed.

2006-05-13 Thread John Hicks
Ryan A wrote: Hey, Heres my setup, I have a directory full of files and I get a request with an array of filenames For this example: a.txt b.txt c.txt if the above files dont already exist I need to create them (I am using touch() instead of fopen()) My question is which would you recommend,

Re: [PHP] getting $_GET params from iFrame window to parent

2006-05-11 Thread John Hicks
blackwater dev wrote: would like to put the search form somewhere else on their site (it is currenly all on my page within the iframe) and then call their search page to do the search, (This is an html/DOM thing, not PHP.) That's what the 'target' property of the form tag does: the response

Re: [PHP] php parsing and db content [RESOLVED]

2006-05-11 Thread John Hicks
Schalk Neethling wrote: Chris wrote: Schalk wrote: Chris wrote: Chris wrote: actually if it's only one variable, this might do it for you: $content = str_replace('?php echo _root ?', _root, $content); but that's still a bad way to do this. Chris, This works: $breadcrumb =

Re: [PHP] getting $_GET params from iFrame window to parent

2006-05-11 Thread John Hicks
blackwater dev wrote: On 5/11/06, *John Hicks* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: blackwater dev wrote: would like to put the search form somewhere else on their site (it is currenly all on my page within the iframe) and then call their search page

Re: [PHP] BDC to ASCII Conversion

2006-05-11 Thread John Hicks
Jay Blanchard wrote: I have been searching, but does anyone know of a BDC to ASCII conversion tool for PHP right off the top of their head? If not, I'll have to write one I haven't heard of BDC. Did you mean BCD (binary coded decimal)? Or possibly EBCDIC? (What platform is this data

[PHP] Status report on mailing list?

2006-05-09 Thread John Hicks
Spam has suddenly swamped the PHP mailing lists. (Some of you may have better filters than I and not noticed it.) Apparently the list had been moved to a new server and it hasn't been configured properly yet. I fear many will unsubscribe and the list will lose much of its utility if it's

[PHP] Quotation marks considered harmful

2006-05-04 Thread John Hicks
John Wells wrote: Personally, I get tired (and confused) when having to escape all of those quotes like in the string you're trying to echo above. Perhaps you'd consider HEREDOC as an alternative approach: Here's n idea I've had and never expressed publicly before. I wonder if some of you

Re: [PHP] javascript

2006-05-02 Thread John Hicks
darren wrote: I have a form that resides within a php function(). And, I would like to call a javascript function from an onChange event of a selection tag (a drop down list box). Your page's problem is entirely a Javascript problem. Has nothing to do with PHP: Try moving the onchange

Re: [PHP] Possible?

2006-04-28 Thread John Hicks
René Fournier wrote: Simple problem: Many client apps need to send data to a server. By default each client will open a persistent TCP socket connection to a common IP address:port (10.10.10.10:1234) and write to it (which the server will save/log, etc.). My question is, what should be

Re: [PHP] RegExp for preg_split()

2006-04-28 Thread John Hicks
Weber Sites LTD wrote: Hi I'm looking for the RegExp that will split a search string into search keywords. while taking into account. From what I managed to find I can get all of the words into an array but I would like all of the words inside to be in the same array cell. You want

Re: [PHP] CMS for Auto Parts

2006-04-23 Thread John Hicks
CK wrote: Hi, On Apr 22, 2006, at 1:26 PM, John Hicks wrote: CK wrote: Hi, I've been commissioned to design a web application for auto parts sales. The Flash Front end will communicate with a MySQL DB via PHP. In addition, PHP/XML should be used with a client-side Web GUI to upload

Re: [PHP] CMS for Auto Parts

2006-04-22 Thread John Hicks
CK wrote: Hi, I've been commissioned to design a web application for auto parts sales. The Flash Front end will communicate with a MySQL DB via PHP. In addition, PHP/XML should be used with a client-side Web GUI to upload images, part no., descriptions and inventory into the DB; a Product

[PHP] Re: Run Apache/PHP/MySQL from CD?

2006-04-20 Thread John Hicks
Jay Paulson wrote: I have no idea if this is possible or not but is there a way to run Apache, PHP, and MySQL from a CD? I'd like it to be possible to run it on Windows, Mac OSX and *nix. If it is possible could someone point me in the right direction? Thanks! XAMPP is a distribution of

[PHP] Timestamp needed in error log

2006-04-08 Thread John Hicks
and time in the error messages? Thanks, John Hicks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread John Hicks
David Doonan wrote: I'm having trouble getting the correct results on a display page. The first query is pulling the name of active authors from the d/b and sending a request to only return essay titles by the requested author. The list page however is displaying essay titles by all

Re: [PHP] include path file errors

2006-04-08 Thread John Hicks
kmh496 wrote: 2006-04-08 (토), 18:20 +0900, kmh496 쓰시길: hi, my webroot is /a/b/current/ i am in /a/b/current/d/file.php file.php has a line require_once ($_SERVER[document_root]./d/common.php); common.php has a line which says require_once ($_SERVER[document_root]./_common.php); // main

Re: [PHP] include path file errors

2006-04-08 Thread John Hicks
kmh496 wrote: hi, my webroot is /a/b/current/ i am in /a/b/current/d/file.php file.php has a line require_once ($_SERVER[document_root]./d/common.php); common.php has a line which says require_once ($_SERVER[document_root]./_common.php); // main include file for whole site it sends

Re: [PHP] php newbie having trouble going to detail page

2006-04-08 Thread John Hicks
David Doonan wrote: On Apr 8, 2006, at 11:24 AM, John Hicks wrote: So your solution is this: Include a PHP variable in your SQL query to specify which author you want to select. You probably want something like this: WHERE Author.Author_Name = Writings.Author_Name AND Author.ID

[PHP] How to get a timestamp in error log?

2006-04-03 Thread John Hicks
My RHES4 configuration omits the timestamp when generating a PHP error message in the (Apache) error log. But regular apache errors *do* have a timestamp. Is this normal? How can I get the timestamp for the PHP errors as well? Thanks, John -- PHP General Mailing List (http://www.php.net/)

[PHP] Do I need to recompile Apache2 --with-apxs for PayPal PHP SDK?

2005-07-30 Thread John Hicks
I'm trying to install and configure PayPal Website Payments Pro using the PayPal PHP SDK. The first step in the SDK Quickstart instructions is: Enable Apache modules and APXS (Apache Extension Tool) In your Apache root directory, run: ../configure ?enable-mod=so --with-apxs

Re: [PHP] Permissions on uploaded image don't allow for over writing

2005-01-29 Thread John Hicks
Dave wrote: PHP List, The Situation: I am building a content management system where users can, among other things, upload images into a directory. The Problem: The image uploads fine, but once it's there, it can't be over written. So if a user uploads an image, and then changes his

Re: [PHP] Writing static file from dynamic PHP page

2005-01-19 Thread John Hicks
Chris Bruce wrote: Hi, I am looking for a way to write to a file what the browser would see (raw html) when viewing a dynamic PHP page. I have numerous include files, MySQL db queries, loops etc. and I want to generate the static result of that file and save it as an html page. I have toyed a

Re: [PHP] searching and sorting

2005-01-19 Thread John Hicks
Michael Sims wrote: Richard Lynch wrote: Brian A. Anderson wrote: [...] I am thinking of incrementally adding the resultant hits into two associative arrays with the link to the data and a calculated relevance value, and sorting this array by these relevences. [...] One Axiom:

Re: [PHP] PHP - mail problems - HELP!!! PLEASE

2005-01-15 Thread John Hicks
Kelly wrote: I am having trouble with PHP 5.0.3. I am running Apache 1.3.29. I am running Solaris 9 x86 on an Intel box. I get no errors when I start Apache. I get no errors when I run configtest. My problem is mail() does not work. It does invoke sendmail as there is activity in sendmail

Re: [PHP] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] strange in MySQL Query.

2005-01-15 Thread John Hicks
Santa wrote: MySQL don't know what is UNION http://dev.mysql.com/doc/mysql/en/UNION.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strange results from file_get_contents using an url as filename

2004-12-28 Thread John Hicks
Ewout de Boer wrote: I'm getting unexpected data from my file_get_contents function using an url as filename. The function does not return false, i do get data from it. Problem is that is is not the data is requested. $data =

Re: [PHP] UPDATE

2004-12-20 Thread John Hicks
Steve Marquez wrote: I am trying to insert information into the database, have it automatically place an ID Number, then update that particular record and replace the word delete with the link. The mysql_insert_id() does seem to be working. It does put in an id number of 0 However, the code in

Re: [PHP] PHP Web Mail

2004-07-05 Thread John Hicks
On Monday 05 July 2004 07:33 am, I.A. Gray wrote: Thanks- looked at Squirrel Mail. Looks really good, however we use POP3- I don't think Squirrel Mail uses POP3 does it? Most if not all web-based mail clients use IMAP since a web-based (i.e. browser-based) client can't store the received

Re: [PHP] PHP Web Mail

2004-07-05 Thread John Hicks
is there? Thanks again, Ian -Original Message- From: John Hicks [mailto:[EMAIL PROTECTED] Sent: 05 July 2004 18:01 To: I.A. Gray; Jose Leon; [EMAIL PROTECTED] Subject: Re: [PHP] PHP Web Mail On Monday 05 July 2004 07:33 am, I.A. Gray wrote: Thanks- looked at Squirrel Mail. Looks

Re: [PHP] export from mysql to csv file

2004-06-11 Thread John Hicks
--- John Hicks Gulfbridge, Inc. Putting the Web to work for your business. http://gulfbridge.com 561-586-8116 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] gethostbyaddr

2004-06-11 Thread John Hicks
PSG - Web Development Engineer 214-550-7452 Hope this helps. Regards, John --- John Hicks Gulfbridge, Inc. Putting the Web to work for your business. http://gulfbridge.com 561-586-8116 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Random Character Generator

2003-11-10 Thread John Hicks
On Monday 10 November 2003 07:32 pm, Jason Williard wrote: I would like to have a script that randomly generates alpha-numeric characters. Does anyone know of any scripts that can do this or perhaps the basic code to generate random characters? Thank You, Jason Williard How about the

Re: [PHP] Downloading MySQL Files

2003-11-10 Thread John Hicks
On Monday 10 November 2003 08:07 pm, Stephen Craton wrote: I have a database which keeps some normal files in LONGBLOBS. I then call up a file called download.php to retrieve the file from the database, echo out its contents, and its type, and all that so they download it. However, if the

Re: [PHP] Newbie

2003-10-06 Thread John Hicks
bypass PHP. (When you installed Dreamweaver, it probably configured Winduhs to invoke DW whenever you open a .php file locally.) Hope this helps. Regards, (Another) John Hicks On Sunday 05 October 2003 01:28 pm, John Hicks wrote: Hi list, I have just installed PHP4.3.3-Win32. I have a book

[PHP] Newbie

2003-10-05 Thread John Hicks
Hi list, I have just installed PHP4.3.3-Win32. I have a book that said create a phpinfo.php ( ? phpinfo(); ? ) file and place it in my Apache 2 htdocs file. I did this and when I run it opens in a blank page of DreamweaverMX. I tried to open with Internet Explorer and it does nothing. My

Re: [PHP] How to smart refresh php section using iframe?

2003-09-27 Thread John Hicks
On Saturday 27 September 2003 02:43 am, ascll wrote: Greetings, I'm newbie in php and I would like to develop a .php page that constantly retrieves data from MySQL database, but I having difficulties to doing so. Please show me the complete code, if possible. This has nothing to do with

Re: [PHP] Are left joins more efficient?

2003-07-26 Thread John Hicks
Dennis-- You might get a more authoritative answer from the mysql general discussion list at: http://lists.mysql.com --John On Monday 25 August 2003 12:59 pm, [EMAIL PROTECTED] wrote: Hello, I program for a website that gets massive loads of traffic. Optimisation has become an important

Re: [PHP] Sending POST-data

2003-07-25 Thread John Hicks
Simon-- Why not follow the KISS approach? Generate the GET or POST directly from the client. No PHP or server-side processing needed. --John On Friday 25 July 2003 10:09 am, Simon Fredriksson wrote: I'm making a search-engine script for my site that redirects users to other search engines.

Re: [PHP] CHECKING IF A SESSION IS ACTIVE OR NOT

2003-07-10 Thread John Hicks
There is no reliable way for the server (Apache, PHP, etc) to know when a user closes a session by closing his browser window. That's one reason why session-management sytems always employ a timeout on sessions. I don't know what the default timeout is for the PHP session-management system,

Re: [PHP] is my server working

2003-06-15 Thread John Hicks
Merry-- No, it's not working. Does your Apache httpd.conf file load the PHP modules? Try changing your tags from ? ... ? to ?php ... ? Try a page that contains only this one line: ?php phpinfo(); ? Good luck. --John On Sunday 15 June 2003 01:09 am, Khoo Merry wrote: I'm using windows me,

Re: [PHP] which is quicker? XML or database?

2003-06-14 Thread John Hicks
Hi Justin-- I've been wrestling with a similar problem. You say: I'm considering: a) storing this data in a MySQL table (a fairly simple query) b) storing this data in a pseudo XML format like: id24/id authorJustin French/author author_email[EMAIL PROTECTED]/author_email

Re: [PHP] Translate easy the language of the web site

2003-06-13 Thread John Hicks
On Friday 13 June 2003 03:00 pm, you wrote: On Saturday 14 June 2003 02:19, Jacob Marble wrote: Amen; machine-translators are no good for something that you don't want confused. ie- english season could be sazon or estacion in Spanish, which mean two different things. Never mind

[PHP] Persistent connections with mysql_pconnect()

2003-03-25 Thread John Hicks
On Tuesday 25 March 2003 09:02 am, skate [EMAIL PROTECTED] wrote: leaving the connection open creates security questions, and also leaves resources open, what if a user closes his browser window, how do you know to close the connection? So are you saying that persistent connections [ i.e.

Re: [PHP] Please point me in the right direction

2003-03-25 Thread John Hicks
PHP is extremely easy for an experienced programmer to pick up quickly (assuming you know the basics of tcp/ip and web architecture). But experienced programmers also know the importance of the KISS principle. Why rewrite a system when you can port it? Kylix allows you to use Delphi on Linux.

Re: [PHP] [php] nomenclature

2003-03-22 Thread John Hicks
$result = mysql_query($sql) ; ^ while ($rec = mysql_fetch_object($results)) ^ On Saturday 22 March 2003 11:56 pm, you wrote: Hi, I'm writing an academic paper detailing how my bibliographic database works. $myinput = mysql_query($sql) or die(print font