[PHP] compile problem with gd 2.0.1

2002-05-31 Thread Michael Geier
Linux Redhat 7.3 PHP 4.2.0 GD 2.0.1 during make: /bin/sh /root/php-4.2.0/libtool --silent --mode=compile gcc -I. -I/root/php- 4.2.0/ext/gd -I/root/php-4.2.0/main -I/root/php-4.2.0 - I/usr/local/apache/include -I/root/php-4.2.0/Zend -I/usr/local/mysql/include -

[PHP] pdf with POST

2002-05-31 Thread Josep R. Raurell
Hello. I do a pdf with a lot of variables from a form, with a GET method. After make the pdf (in the same script) I sent the headers and the user can see the document in your browser: $data = $albara-retorna(); $len=strlen($data); header(Content-Type: application/pdf);

Re: [PHP] nested if parse error

2002-05-31 Thread Miroslav Figlar
could somebody explain me please what is wrong with this piece of code? ? if (1): if (1) echo hello; else: endif; ? Well, first off you've broken the golden rule, which is: Don't mix the :-type syntax with the {}-type or completely bare syntaxes. In more

Re: [PHP] pdf with POST

2002-05-31 Thread Miguel Cruz
On Fri, 31 May 2002, Josep R. Raurell wrote: I do a pdf with a lot of variables from a form, with a GET method. After make the pdf (in the same script) I sent the headers and the user can see the document in your browser: $data = $albara-retorna(); $len=strlen($data);

[PHP] Apache 2.0.36 and PHP

2002-05-31 Thread Herman Pool
Hi all, I have installed the binary version of Apache 1.3.23 on my W2000 SP2 machine. The binary version of PHP 4.1.1 works fine with it. So far, so good, no problems at all. I simply installed the binary version of Apache 2.0.36 and PHP 4.1.1 does not work anymore. I didn't do anything else

Re: [PHP] Apache 2.0.36 and PHP

2002-05-31 Thread Stuart Dallas
Friday, May 31, 2002, 9:29:52 AM, you wrote: I simply installed the binary version of Apache 2.0.36 and PHP 4.1.1 does not work anymore. I didn't do anything else than installing the binary version of apache, and start apache. Apache starts well, I can see the Apache welcome screen. What

[PHP] Multiple queries

2002-05-31 Thread Caspar Kennerdale
Sorry If this is the wrong list for this topic, I hope someone can shed some light onto my problem. I am building a php/ Mysql web site for a client which is a picture gallery. The web site has 3 frames (required by the designer so that the whole thing doesnt refresh all the time). Frame 1-

RE: [PHP] nested if parse error

2002-05-31 Thread Ford, Mike [LSS]
-Original Message- From: Miroslav Figlar [mailto:[EMAIL PROTECTED]] Sent: 31 May 2002 07:26 To: [EMAIL PROTECTED] Subject: Re: [PHP] nested if parse error anyway it's funny that this works fine :-) ? if (1): if (1) echo hello; $a = 1;//

[PHP] Replacing Number with Month(newbie)

2002-05-31 Thread webmaster
Is there a magical function that I can use to convert 4 into April and 5 into May etc? can I use mktime() Oneyes no answer will do fine JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to detect if the client's browser accepts cookies ?

2002-05-31 Thread David Eisenhart
Hi I am writing a function to construct page links within my site; I want it to append the session id to the URL's query string if the client does not accept cookies (and ignore the session id if the client does accept cookies). How do I detect if the client browser accepts cookies? Indeed, has

RE: [PHP] Re: Help with a trivial session example.

2002-05-31 Thread Ford, Mike [LSS]
-Original Message- From: Michael Davey [mailto:[EMAIL PROTECTED]] Sent: 31 May 2002 00:37 I can't say that I have moved over to the new superglobals yet - I prefer register_globals cos I am lazy ;) But it does seem that there are two possible variables that you need to use

RE: [PHP] Replacing Number with Month(newbie)

2002-05-31 Thread Jon Haworth
Hi JJ, Is there a magical function that I can use to convert 4 into April and 5 into May etc? can I use mktime() One yes no answer will do fine Yes and no ;-) You might want to use a combination of mktime() and date(). i.e. ?php $month = 4; echo date (jS F Y, mktime (1, 0, 0,

[PHP] Cache Control

2002-05-31 Thread Jeroen Timmers
Where i can find more help about cache control Thx Jeroen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to detect if the client's browser accepts cookies ?

2002-05-31 Thread Nick Talbott
On Friday 31 May 2002 10:53 am, David Eisenhart wrote: Hi I am writing a function to construct page links within my site; I want it to append the session id to the URL's query string if the client does not accept cookies (and ignore the session id if the client does accept cookies). How

RE: [PHP] Cache Control

2002-05-31 Thread Jon Haworth
Hi Jeroen, Where i can find more help about cache control Here: http://www.google.com/search?q=help+about+cache+control (495,000 results) Or did you mean something a bit more specific? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Cache Control

2002-05-31 Thread Jeroen Timmers
indeed more specific Jeroen At 11:00 31-5-2002 +0100, you wrote: Hi Jeroen, Where i can find more help about cache control Here: http://www.google.com/search?q=help+about+cache+control (495,000 results) Or did you mean something a bit more specific? Cheers Jon -- PHP General Mailing

RE: [PHP] Replacing Number with Month(newbie)

2002-05-31 Thread Ford, Mike [LSS]
-Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 31 May 2002 10:58 Hi JJ, Is there a magical function that I can use to convert 4 into April and 5 into May etc? can I use mktime() One yes no answer will do fine Yes and no ;-) Ha! I was just about

RE: [PHP] Cache Control

2002-05-31 Thread Jon Haworth
Hi Jeroen, Where i can find more help about cache control http://www.google.com/search?q=help+about+cache+control Or did you mean something a bit more specific? indeed more specific Well, seeing as you're not sharing the actual question with the mailing list, this answer may not be

php-general Digest 31 May 2002 10:09:27 -0000 Issue 1377

2002-05-31 Thread php-general-digest-help
php-general Digest 31 May 2002 10:09:27 - Issue 1377 Topics (messages 100015 through 100072): Re: Help with example session class (second request) 100015 by: Michael Davey 100026 by: John Holmes Re: migrating PWS to Apache 100016 by: Analysis Solutions array

RE: [PHP] how to detect if the client's browser accepts cookies ?

2002-05-31 Thread Ford, Mike [LSS]
-Original Message- From: David Eisenhart [mailto:[EMAIL PROTECTED]] Sent: 31 May 2002 10:54 I am writing a function to construct page links within my site; I want it to append the session id to the URL's query string if the client does not accept cookies (and ignore the session

RE: [PHP] mktime parameters (Was: Replacing Number with Month(newbie))

2002-05-31 Thread Jon Haworth
Hi Mike, Is there a magical function that I can use to convert 4 into April and 5 into May etc? can I use mktime() One yes no answer will do fine Yes and no ;-) Ha! I was just about to say exactly that myself! It was just too tempting :-) Except, to get just the month

Fwd: RE: [PHP] Cache Control

2002-05-31 Thread Jeroen Timmers
Date: Fri, 31 May 2002 12:13:40 +0200 To: Jon Haworth [EMAIL PROTECTED] From: Jeroen Timmers [EMAIL PROTECTED] Subject: RE: [PHP] Cache Control I want info on the internet where i can find a manuel. I want a statement that de page always refresh the page is a php script and sometimes it comes

RE: [PHP] Cache Control

2002-05-31 Thread Jon Haworth
Hi Jeroen, I want info on the internet where i can find a manuel. http://www.google.com/search?q=http+cache+control+headers the page is a php script and sometimes it comes out of a proxy but that is not allowed. It's not something you have absolute control over - some proxies are

[PHP] Regular Expressions...

2002-05-31 Thread Brian McGarvie
All, I have a text field that a user can enter text into, I then explode it into an array, and ultimatley build a regular expression such as: /(advance|racingx)|(advance|racingx)/i for use in: preg_match ($reg_expr, $file); however the expression above doesnot yeild the required result, it

[PHP] Is PHP used by U.S. Government? By U.S. DoD?

2002-05-31 Thread John Christopher
I would like to use PHP in a project for a United States Government client. The client is skeptical because PHP is not a Microsoft product. I'm looking for statistics and links that show that PHP *is* currently in use by the US Government. Is PHP used by the U.S. Department of Defense?

[PHP] PHP-mysql: affected rows

2002-05-31 Thread Victor Spng Arthursson
Hi! If I use the LIMIT 0, 9 at the end of a SQL-query, mysql will only return the first 9 records from the database... But to determine wether or not to print out the next page, I need to know the total number of records matching the query... Is there a way of doing this without having to do

RE: [PHP] Replacing Number with Month(newbie)

2002-05-31 Thread John Holmes
You can use an array.. $month = array(January,February,March,April.); echo $month[1]; Or put that into a function and use it like show_month(5); ---John Holmes. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 5:51 AM To: [EMAIL

RE: [PHP] Is PHP used by U.S. Government? By U.S. DoD?

2002-05-31 Thread John Holmes
It's being used by me. :) It's not really accepted anywhere, but there are no regulations against using it. I looked into it a little bit before I started writing my current project. I don't know of any sites that are using it except for mine (and it's intranet only). ---John Holmes...

[PHP] Run php function with user click

2002-05-31 Thread Dave Shacket
I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP-mysql: affected rows

2002-05-31 Thread John Holmes
No. Do one query with count(*), one with limit. If you're smart, you'll save the total amount in a session somewhere so you only have to do that query once, anyway. ---John Holmes... -Original Message- From: Victor Spång Arthursson [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31,

[PHP] Re: Run php function with user click

2002-05-31 Thread Michael Davey
Not really, seeing as PHP is executed at the server and not on the client - you would need JavaScript for this. Mikey Dave Shacket [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I know how to have my php code run a function within itself. But is there a way

[PHP] Go to a different web page?

2002-05-31 Thread Dave Shacket
I have stared at fopen for a long time but can't figure out how to get php to pull in a new web page. I am looking for something akin to javascript window.location command, just as if I typed a new page into my address bar. What am I missing? -- PHP General Mailing List (http://www.php.net/)

[PHP] Standalone PHP Binaries?

2002-05-31 Thread Jonathan Rosenberg
Can someone point me at a site that has pre-compiled binaries for a standalone PHP interpreter? In particular, I'm looking to use one on Solaris. TIA. -- JR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Go to a different web page?

2002-05-31 Thread Justin French
on 31/05/02 10:43 PM, Dave Shacket ([EMAIL PROTECTED]) wrote: I have stared at fopen for a long time but can't figure out how to get php to pull in a new web page. I am looking for something akin to javascript window.location command, just as if I typed a new page into my address bar. What

RE: [PHP] Is PHP used by U.S. Government? By U.S. DoD?

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
My company contracts for the National Institutes of Health and the National Cancer Institute. A group of us are developing a website for State Cancer Profiles - ie, you want to see the trend of lung cancer in the Total US v. Kentucky kinds of things. All of the graphs that I'm working on are

Re: [PHP] Regular Expressions...

2002-05-31 Thread Michael Sims
On Fri, 31 May 2002 12:32:29 +0100, you wrote: example of the contents of $file that might pass is: advance_racingx_14_4_29.pdf another might be, which would not pass is: advance_fork10_3_4_11.pdf If you need it to be in that specific order, use the following:

[PHP] PHP can not connect to mysql

2002-05-31 Thread andy
Hi there, I am runningn suse72 and there was a mysql installation with the rpm installed. so I did try to get rid of all the stuff I found from the old mysql installation (with yast) and compiled mysql from source. Server is running now. Unfotuantelly php is still trying to connect to the old

[PHP] Make stand alone php with FastZTrack

2002-05-31 Thread Qingjuan Gu
Hello, I have installed the Netscape FastTrack and mySql on Unit Tru64. Now I want to install php also, Since our FastTrack and mySql have been used a year. I want to keep FastTrack and mysql, Does anybody have suggestion about how to make php under this circumstance? Thank you very much.

RE: [PHP] Graphs using PHP

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
Hi, Jason. I'm developing some really cool line/point and bar graphs. While the Image stuff is definitely quite different, I think you'd really like it once you get into it. Our graphs are generated dynamically from data in a database. I can't show you the graphs because they aren't ready for

[PHP] Re: PHP can not connect to mysql

2002-05-31 Thread Michael Davey
Check permissions on '/var/lib/mysql/mysql.sock' I seem to remember having this problem in the past... Mikey Andy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, I am runningn suse72 and there was a mysql installation with the rpm installed. so I

Re: [PHP] PHP-mysql: affected rows

2002-05-31 Thread Chris Hewitt
Victor, I'd do the count first anyway. Then you know whether you need to put up the next page links or not. HTH Chris Victor Spång Arthursson wrote: Hi! If I use the LIMIT 0, 9 at the end of a SQL-query, mysql will only return the first 9 records from the database... But to determine

[PHP] Re: PHP can not connect to mysql

2002-05-31 Thread andy
That is the wron socket. I found out that my mysql version is running on socket /tmp/mysql.sock while the old one is running on /var/lib/mysql/mysql.sock. How can I tell php to connect with the other socket? Thanx, Andy - Original Message - From: Michael Davey [EMAIL PROTECTED]

Re: [PHP] Multiple queries

2002-05-31 Thread Analysis Solutions
Heya: On Fri, May 31, 2002 at 09:55:27AM +0100, Caspar Kennerdale wrote: I have one table, with a name and info about the project and upto 5 urls of where the jpeg lies. Are you talking about five fields in the table containing up to five URI's for each project? That's not cool. You

RE: [PHP] Re: PHP can not connect to mysql

2002-05-31 Thread James Holden
@mysql_connect(localhost:/tmp/mysql,user,pass); - James -- W: www.londontown.com @: [EMAIL PROTECTED] -- -Original Message- From: andy [mailto:[EMAIL PROTECTED]] Sent: 31 May 2002 15:19 To: Michael Davey; [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Re: PHP can not connect to mysql

2002-05-31 Thread Michael Davey
Or edit php.ini: mysql.default_socket = /tmp/mysql.sock James Holden [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... @mysql_connect(localhost:/tmp/mysql,user,pass); - James -- W: www.londontown.com @: [EMAIL PROTECTED]

[PHP] Why does the mail() function hang ?!?

2002-05-31 Thread Phil Schwarzmann
I'm using the mail() function, it sends the message properly but the page hangs. Has anyone else had this problem? I'm not trying to send any bulk mail, just one message to one mailbox. Thanks!!

RE: [PHP] Why does the mail() function hang ?!?

2002-05-31 Thread Jay Blanchard
Did you check your error log? -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: [PHP] Why does the mail() function hang ?!? I'm using the mail() function, it sends the message properly but the page

[PHP] apache2filter.dll

2002-05-31 Thread Herman Pool
Hi all, I have downloaded PHP4.2.1 because I want to use it with apache 2.0.36 But there is no php/experimental/apache2filter.dll file in PHP4.2.1 Did I miss something? With kind regards, Herman ** Dit bericht en alle

[PHP] Class variables and scope

2002-05-31 Thread Michael Davey
Can anyone here shed some light on this issue? I have a class which is responsible for it's own database access and (some of it) is initalised as below: ? class myClass { var $conn; var $sth; // etc... function myClass ($db) { $host = localhost; $user =

[PHP] Re: apache2filter.dll

2002-05-31 Thread Michael Davey
It is called php4apache2.dll Mikey Herman Pool [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I have downloaded PHP4.2.1 because I want to use it with apache 2.0.36 But there is no php/experimental/apache2filter.dll file in PHP4.2.1 Did I miss

[PHP] gd project question

2002-05-31 Thread Michael Geier
I have the following issue: I am making a gas guage based on a percentage. ie. - a 180 degree arc is created - the range will be 0 to n (undetermined ammount) - there will be x number of entries - the needle will

Re: [PHP] Class variables and scope

2002-05-31 Thread Stuart Dallas
On Friday, May 31, 2002 at 4:11:42 PM, you wrote: When I try to work with the first instance of my class, I get an error which I finally tracked down to it trying to run it's SQL queries against the database defined in $c2. Now, I was under the impression that class variables were private to

Re: [PHP] Class variables and scope

2002-05-31 Thread Michael Davey
I am doing that - sorry, should have given you a bit more code... ? class myClass { var $conn; var $sth; // etc... function myClass ($db) { $host = localhost; $user = user_name; $password = password; $this-conn = mysql_connect ($host, $user,

[PHP] Re: gd project question

2002-05-31 Thread Michael Davey
I believe you will need to use sin and cos to do this... I experimented with drawing circles in javascript (sorry, it's not PHP but you can see the concept) and ended up with this: for (j = 0; j = 360; j += (360 / 10)) { // x1 y1 are offset values var s = x1

[PHP] Form content type missing, how to fetch variables?

2002-05-31 Thread Simon Troup
How do you fetch posted form variables from a request that does not have content type in the headers? I mean, instead of having Content-Type: x-www-form-urlencoded or something similar, there is nothing - just the raw data. How can I parse that? Regards SImon -- PHP General Mailing List

[PHP] PHP Decisions and Issues

2002-05-31 Thread Justin Felker
Hello to everyone. This email will probably be quite lengthy so please bear with me. What I am asking is quite important to me, so I will try to be as detailed as possible. I have spent the last hour pouring over this list's archive. I have found some great information and a lot of you

[PHP] MS SQL Problem

2002-05-31 Thread Justin Felker
Last night, I ran into a problem when using the MS SQL support in PHP under Apache/PHP module/MS SQL 2000. Everything worked well enough. I was able to connect to the server, query data, and a number of other things. However, I found that if I ran my test page (it connects to, queries and

[PHP] bzip/zlib question

2002-05-31 Thread Michael Davey
I have been looking through the documentation for using Bzip2 or zlib compression and have a couple of questions for the group... 1.Which is best to use on terms of: resultant file size, availability of decompression clients ease of use? 2.Both bzip zlib documentation makes use of

[PHP] Class/Objects

2002-05-31 Thread Gerard Samuel
Im still green with writing with class, but I just want to check with you all. I started creating a class file that also using 2 other classes. class.php --- ?php class foo { function foo() { require_once('./this.class.php');

Re: [PHP] MS SQL Problem

2002-05-31 Thread Sqlcoders.com Programming Dept
Hiya, were you using the appropriate free_query close functions to free up the memory more importantly the socket used to talk to the sql server? You might want to try using the _pconnect function if it's available instead of the usual _connect statement. I'd guess that PHP ran out of sockets

[PHP] Newbie question : PHP variables are not posted by this

2002-05-31 Thread Frédérick St-Hilaire
It a BASIC question, With the following: FORM NAME='Job_Application' ACTION=job_action.php METHOD=post ENCTYPE=multipart/form-data INPUT TYPE=text NAME=name Name : BR INPUT TYPE=HIDDEN NAME=MAX_FILE_SIZE VALUE=20 INPUT TYPE=FILE NAME=userfileBRBR INPUT TYPE=submit

[PHP] Re: Class/Objects

2002-05-31 Thread Michael Davey
I believe so - but why are you passing a the object a reference to itself? $bar-db_obj-run_some_code($bar); $bar-tpl_obj-do_this_for_me($bar); If you need to access parts of the object from within, use the $this- pointer. It works but was wondering if its 'legal' to use it like this -

[PHP] Re: Newbie question : PHP variables are not posted by this

2002-05-31 Thread Michael Davey
Can you send the code that is failing to the list - it will help in working out the problem... Mikey FréDéRick St-Hilaire [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... It a BASIC question, With the following: FORM NAME='Job_Application'

[PHP] diplaying the path

2002-05-31 Thread Kris Vose
Is there a variable/function in php that will display the url location of the hyper-link that brought them to the current page. Thanks in advance. Kris Vose

Re: [PHP] Re: Class/Objects

2002-05-31 Thread Gerard Samuel
The first example was a mistake. The second is a correct example. I just wasn't sure on the proper format $this-that-foo($bar), if it is technically correct... Thanks Michael Davey wrote: I believe so - but why are you passing a the object a reference to itself?

Re: [PHP] Re: Newbie question : PHP variables are not posted by this

2002-05-31 Thread Stuart Dallas
On Friday, May 31, 2002, 5:17:49 PM, you wrote: Can you send the code that is failing to the list - it will help in working out the problem... And include your platform details (OS, PHP version, etc). -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Undefined variables

2002-05-31 Thread Philip Olson
Another similar way, using an array (very simple to add tasks): $tasks = array('ShowVersion','GetData','CreateImage'); if (@in_array($_REQUEST['Task'], $tasks)) { // add some error checking here (function_exists()) $$Task(); } else { // maybe run a default task here

RE: [PHP] gd project question

2002-05-31 Thread Darren Gamble
Good day, Wow, a high school math question. You should use asin() and acos() of the angle to get the y and x differentials, respectively. Multiply the result by the size of the needle. This assumes that your guage is oriented horizontally, and the needle sweeps from right to left, pointing

RE: [PHP] Undefined variables

2002-05-31 Thread Darren Gamble
Good day, I don't have a piece of code off the top of my head, but you'll get lots of results and examples if you enter those variables into www.php.net 's search field and search the online documentation (which is very, very good, I should add). Hope that helps.

[PHP] Re: diplaying the path

2002-05-31 Thread Michael Davey
$_SERVER['HTTP_REFERRER'] Kris Vose [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a variable/function in php that will display the url location of the hyper-link that brought them to the current page. Thanks in advance. Kris Vose -- PHP General

[PHP] Re: Is PHP used by U.S. Government? By U.S. DoD?

2002-05-31 Thread Philip Hallstrom
U.S. Naval Research Laboratory's Intranet relies on PHP http://www.zend.com/zend/cs/csnavalready.php On Fri, 31 May 2002, John Christopher wrote: I would like to use PHP in a project for a United States Government client. The client is skeptical because PHP is not a Microsoft product.

[PHP] Working with ip addresses and address space

2002-05-31 Thread Chris Knipe
Hi all, anyone know of any good pre-written classes or functions to work with IP address space? I'm looking for things which can verify correct notation of IP addresses (fine, that's easy enough), but also verify things like network addresses, broadcast addresses, and work out subnet masks when

[PHP] PHP URLs not opening from email in Outlook XP

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
I just tried to open the PHP link about the Navy. I'm running IE6 (freshly installed today, so no tweaks have been made) with Win2000. When I clicked on the link in the email, a locate link window came up (similar to an open file window). This does not happen on my coworker's machine. The

Re: [PHP] diplaying the path

2002-05-31 Thread Jim lucas
depending on what version of php you are running, you can use $GLOBALS['HTTP_REFERER'] or on newer versions you can use $_SERVER['HTTP_REFERER'] Jim Lucas - Original Message - From: Kris Vose [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 31, 2002 9:19 AM Subject: [PHP]

Re: [PHP] Is PHP used by U.S. Government? By U.S. DoD?

2002-05-31 Thread Miguel Cruz
On Fri, 31 May 2002, John Christopher wrote: I would like to use PHP in a project for a United States Government client. The client is skeptical because PHP is not a Microsoft product. I'm looking for statistics and links that show that PHP *is* currently in use by the US Government. Is

[PHP] !----XML Parsing

2002-05-31 Thread Crane, Christopher
Here is a piece of code, that is close to doing what I want it to. The end result I would like to have is an array that is simple to work with. If the XML tag was issue-nameRED HAT/issue-name, I would like something like the following: $Tags['issue-name']. So I could print it out. Something

Re: [PHP] Run php function with user click

2002-05-31 Thread Michael Sweeney
On Friday 31 May 2002 05:44, you wrote: I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? No. PHP is a server side application. The only way to run a

Re: [PHP] PHP Decisions and Issues

2002-05-31 Thread Miguel Cruz
On Fri, 31 May 2002, Justin Felker wrote: I have spent the last hour pouring over this list's archive. (Not a flame, but I keep seeing this recently. The word is poring.) I, along with several other people am starting a business which will depend heavily on its web presence. Unfortunately,

RE: [PHP] PHP URLs not opening from email in Outlook XP

2002-05-31 Thread Jaime Bozza
Natalie, I'm using Outlook XP here and the link opens just fine. The only time I get that locate link browser window is if I hold the shift-key down when clicking on the link. (I typically link to open links in new windows, so I hold the shift-key when clicking links - It will open the link

Re: [PHP] bzip/zlib question

2002-05-31 Thread Miguel Cruz
On Fri, 31 May 2002, Michael Davey wrote: I have been looking through the documentation for using Bzip2 or zlib compression and have a couple of questions for the group... 1. Which is best to use on terms of: resultant file size, availability of decompression clients ease of use? File

RE: [PHP] PHP URLs not opening from email in Outlook XP

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
My shift key isn't stuck. I don't know what's wrong. I found out that one other person had a problem with it at my company and apparently one of the techies put it on MS's technet group. Hopefully something will come of it. Thanks for your help! -Natalie -Original Message- From:

Re: [PHP] Run php function with user click

2002-05-31 Thread Miguel Cruz
On Fri, 31 May 2002, Dave Shacket wrote: I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? javascript onclick or whatever can call a PHP program on your

Re: [PHP] Working with ip addresses and address space

2002-05-31 Thread Rasmus Lerdorf
ip2long and long2ip and a bit of bitwise logic is really all you need. -Rasmus On Fri, 31 May 2002, Chris Knipe wrote: Hi all, anyone know of any good pre-written classes or functions to work with IP address space? I'm looking for things which can verify correct notation of IP addresses

RE: [PHP] gd project question

2002-05-31 Thread Michael Geier
Did I mention I hate math [grin]... ok...so here we go so far... I am passing a variable diameter of the arc ($d), the total number of widgets possible ($n), and the number of current widgets ($x) so let's say $d = 100 $n = 100 $x = 50 $perc =

Re: [PHP] diplaying the path

2002-05-31 Thread Philip Olson
actually: If the php directive register_globals is on, then $HTTP_REFERER will exist. Otherwise it will not. (or course that assumes a value exists at all). Regardless of the register_globals setting, you can do: // Works since PHP 3 (forever)* print $HTTP_SERVER_VARS['HTTP_REFERER'];

Re: [PHP] bzip/zlib question

2002-05-31 Thread Michael Davey
So does anyone have any advice on adding files rather than strings? On Fri, 31 May 2002, Michael Davey wrote: I have been looking through the documentation for using Bzip2 or zlib compression and have a couple of questions for the group... 1. Which is best to use on terms of: resultant

RE: [PHP] Run php function with user click

2002-05-31 Thread Jay Blanchard
[snip] On Friday 31 May 2002 05:44, you wrote: I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? No. PHP is a server side application. The only way to

Re: [PHP] PHP Decisions and Issues

2002-05-31 Thread syslog.org
Given enough hardware and an appropriately designed application, yes you will be able to scale up as high as you want to go. The big questions are how much money can you spend vs. what performance, stability and fault tolerance do you want out? You have lots of options - Three or four large smp

Re: [PHP] Is PHP used by U.S. Government? By U.S. DoD?

2002-05-31 Thread syslog.org
I just did a google search on .gov php and got back a ton of hits. dot, dod, census, anl and many many others. Jerry On Fri, 31 May 2002, John Christopher wrote: I would like to use PHP in a project for a United States Government client. The client is skeptical because PHP is not a

Re: [PHP] PHP Decisions and Issues

2002-05-31 Thread 1LT John W. Holmes
Start doing some research and testing. Can PHP and MySQL do that? Sure. Are there better solutions? Sure. Too many factors go into decisions like this that's it not a simple email question and answer. For one, MySQL only supports transactions if you use InnoDB tables. How reliable are they? I

Re: [PHP] Form content type missing, how to fetch variables?

2002-05-31 Thread Analysis Solutions
Simon: form method=post input type=submit name=Foo value=Boo / /form ?php if ( isset($_POST['Foo']) ) { echo 'p' . $_POST['Foo'] . '/p'; } ? Viewing that the first time will show the form. Submitting the form will show you the form again and then the value of Foo.

[PHP] Parsing file's

2002-05-31 Thread Scott
I have a csv file that I am parsing, formatting and then writting to a new file. I am currently using an array, but I have some lines that might contain more data than others. I know for sure that columns 0-33 will always be there, but the customer has the option to add another set of

RE: [PHP] gd project question

2002-05-31 Thread Miguel Cruz
On Fri, 31 May 2002, Michael Geier wrote: my arc runs from 180 deg. to 360/0 degree, or left to right, pointing upwards (upside down U). i guess I am not getting my head around the numbers...is there anywhere on the net that has a good thorough description about a process like this?

[PHP] RE: SOLVED: [PHP] PHP URLs not opening from email in Outlook XP

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
For anyone who was having this problem, here's the solution. It's a windows-level bug. Even HTML files weren't opening. In Windows Explorer, go to either View/Tools (depending on version) and get to Folder Options. Go into File Types, and change the URL:HTTP (spelled out) to have open and

[PHP] Re: SQL question, getting error and not sure why

2002-05-31 Thread Michael Virnstein
This Read does not block read. read does not block write. write does not block read. write blocks write on the same column. should read: Oracle has a row locking mechanism, so the following blocking mechanisms apply, when two or more oracle sessions want to operate on the same row: read does

[PHP] Re: SQL question, getting error and not sure why

2002-05-31 Thread Michael Virnstein
and don't do something like insert into (col1, col2) values ('1', '2'); to oracle. this is deadly if you do insert into (col1, col2) values ('3', 4'); afterwards, oracle will not know this query. it'll have to parse it again, because you used literals. you have to use bindvars, if it is

[PHP] php newbie question

2002-05-31 Thread Taylor Lewick
I am having a hard time getting apache to load the php4 module. Can I still use PHP for my web stuff...? Thanks Taylor Lewick Unix System Administrator Fortis Benefits 816 881 6073 Help Wanted. Seeking Telepath... You Know where to apply.

[PHP] is session.use_trans_sid dangerous?

2002-05-31 Thread Giancarlo
Hi, I've tried the PHP4 built-in sessions, and both with and without the default setting off session.use_trans_sid php.ini, I see that you can force anyone into a session if you point to a URL like http://myhost/a_page.php?PHPSESSID=blackhole even if his cookie are enabled. Wasn't that

[PHP] php4 install with apache.org

2002-05-31 Thread Taylor Lewick
Hi all. I am trying to install the php4 module for apache 1.3.24 on HPUX 11.00 I have sucessfully compiled apache 1.3.24, mysql 4.01, and php4, but when I try to integrate the php4 module in with apache, I am getting nailed every time.. I did the configure

[PHP] Re: Parsing file's

2002-05-31 Thread Michael Davey
You should normalise your data - have a field in the second csv that links to the first csv and then you can have as many rows as you want associated with the record in the first file. Mikey Scott [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a csv file

  1   2   >