[PHP] Passing more than one variable with alink

2002-07-02 Thread Peter Goggin
I need to pass more than one variable with a link. I cannot see the syntax listed anywhere. I am using : printf (a href=\catalogueitemslist.php?catitempage=%s;?catrange=%s\IMG SRC=\/jpg/buttons/nextset.jpg\ HEIGHT=25 BORDER=0/aLEFT,$catitempage,$catrange); Obviously the separators between the

RE: [PHP] Passing more than one variable with alink

2002-07-02 Thread Sachin Keshavan
For the link to work correctly, only the first parameter should be seperated by a ?, the remaining ones should be seperated by . For eg: http://localhost.com/sample.php?firstparam=1secondparam=XYZ Hope this helps, Sachin -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]]

RE: [PHP] Passing more than one variable with alink

2002-07-02 Thread Martin Towell
the syntax is name1=val1name2=val2name3=val3 the separator is -Original Message- From: Peter Goggin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Passing more than one variable with alink I need to pass more than one variable with

[PHP] Programmer's Browser

2002-07-02 Thread Richard Lynch
Any recommendations for a GPL (read: free) Programmer's Browser which will allow me to surf normally but cache pages and their headers and let me view the damn things? View Source is fine as far as it goes, but it's only half the story... I want my headers. -- Like Music?

Re: [PHP] Keeping Secrets in PHP Files

2002-07-02 Thread Richard Lynch
I've been thinking some more about the issue of keeping PHP source files secure in a shared hosting environment. I've now convinced myself that there is simply no way to protect these files, even if safe_mode is turned on, as long as other users can have telnet (or ssh) access to the box.

Re: [PHP] Keeping Secrets in PHP Files

2002-07-02 Thread Richard Lynch
The hosting provider could probably implement a solution... Alter the FTP configuration to automatically set the group permission to that of the web server when you transfer files. You wouldn't need to be in the group. You're the owner and can modify your own files. World Read access would be

Re: [PHP] Keeping Secrets in PHP Files

2002-07-02 Thread Richard Lynch
try this for now. http://pobs.mywalhalla.net/ depending on how fancy your code is it may not work. Or you'll only have to change a few little things. basically what it does is : for($bob=1; $bob10; $bob++){ echo $bob; $sam=$bob; } Converts above to something like

[PHP] Re: PHP affecting PDF plug-in....?

2002-07-02 Thread Richard Lynch
All... I have a PDF plug-in problem... Now before you say anything the problem doesnt exesi when I remove PHP from the equation... I have a script that generates a drop-down list of ID's basically... Clicking continue will pass the ID to a script which I use to get the correct filename to

[PHP] Re: Canadian PHP Freelancer Rates

2002-07-02 Thread Richard Lynch
Hi, I was hoping that folks from the Canadian PHP community could offer me some direction with deterring going rates for freelance PHP developers. All of the material that I have found during my research points to US rates which average at around $92 US an hour (see the American Institute of

Re: [PHP] pop-up windows

2002-07-02 Thread Richard Lynch
In the old days, Rasmus would answer with something like: http://php.net/FAQ.php#4.17 That was back when the whole FAQ could fit in the head of a single person... :-) [Well, a single person as smart as Rasmus, anyway... :-)] This meta-thread about what to do about posters who obviously didn't

Re: [PHP] session vars and frames

2002-07-02 Thread Richard Lynch
I'm registering if people are logged in. The login page is situated in the mainFrame. Now in my leftFrame I want to put the status (i.e. you are logged in as .) When people are succesfully logged in I register their name as session_register('session_loginname'); I then refresh the

RE: [PHP] Programmer's Browser

2002-07-02 Thread Martin Towell
curl -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Programmer's Browser Any recommendations for a GPL (read: free) Programmer's Browser which will allow me to surf normally but cache pages and

[PHP] Re: Beginner Sessions Question

2002-07-02 Thread Richard Lynch
1. I know that you initially begin the session with the session_start() function. Is this function required on all pages in order for the session variables to remain globalized? Yes -- on all pages that intend to use sessions. If you have a page in between that has no use for session data,

[PHP] Re: Passing more than one variable with alink

2002-07-02 Thread herosteal
delimiter in a query string is (amphen) ie : page.php?varx=xxxvary=yyy Peter Goggin [EMAIL PROTECTED] a écrit dans le message de news: 043b01c22192$1369fc50$[EMAIL PROTECTED] I need to pass more than one variable with a link. I cannot see the syntax listed anywhere. I am using : printf

[PHP] A question

2002-07-02 Thread Emiliano Marmonti
Dear people: I have a development that I made a year ago. In the first screen I set a cookie that is used along all the parts of the software. This cookie establish the language of the software. Now some people that are installing the software are reporting me problems using the software

[PHP] Why is this code hanging?

2002-07-02 Thread Leif K-Brooks
I am trying to make a simple php program to produce text lIkE tHiS. The thing is, it hangs for a while andd then says it's reached the maximum execution time of 30 seconds. The error is on line 18. Any ideas? My code: ?php print htmlbody; if(!isset($_POST['text'])){ print END form

RE: [PHP] Why is this code hanging?

2002-07-02 Thread John Holmes
You're not incrementing $count within your while loop. So it's staying at zero the whole time... ---John Holmes... -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Why is this code hanging?

RE: [PHP] A question

2002-07-02 Thread John Holmes
Dear people: I have a development that I made a year ago. In the first screen I set a cookie that is used along all the parts of the software. This cookie establish the language of the software. Now some people that are installing the software are reporting me problems using the

Re: [PHP] Why is this code hanging?

2002-07-02 Thread Leif K-Brooks
Oops, sorry for the dumb problem... John Holmes wrote: You're not incrementing $count within your while loop. So it's staying at zero the whole time... ---John Holmes... -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:31 AM To:

Re: [PHP] Detecting Browser Type/OS from HTTP_USER_AGENT - Answer!?!

2002-07-02 Thread Patrick Teague
Hey, Yeah, I was thinking of writing up a javascript function to do all of this, but considering one of the browsers I use to test is Amaya Amaya doesn't even recognize javascript as anything other than extra garbage I was looking around for a way to do it on the server. I installed the newest

Re: [PHP] Re: Canadian PHP Freelancer Rates

2002-07-02 Thread Richard Lynch
average at around $92 US an hour (see the American Institute of Maybe that's a transposition and the average is $29 ??? I've registered to get a copy of the original source, and may remember to post if/when I find out... Don't see how the average could be US $92 per hour... -- Like Music?

Re: [PHP] securing an 'includes' dir

2002-07-02 Thread Richard Lynch
Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 1. Name all included files .inc If you name them *.php then put anything in them inside a function, then when the user browses to that file he/she won't see anything at all. You've already moved

Re: [PHP] Redirecting with the POST method.

2002-07-02 Thread Richard Lynch
header(Location http://www.domain.net/script.php? fsi=dgfslogin=password=refergf4;) Don't forget your colon after Location in the function call. Browsers might be able to interpret it anyway, but it's wrong and might break somewhere. The problem is this redirection is being done with the GET

[PHP] Re: URL issue -- http://server/page.php?machine.network=one not working

2002-07-02 Thread Richard Lynch
I am having a problem with php4 and a get url. For instance the URL: http://server/page.php?test1.test.com=debug. I have a script which does a foreach through all the _GET vars: foreach ($_GET as $var = $value) This peice works fine except that when the var (name) has a period in it that is

[PHP] Re: mcrypt or libmcrypt with PHP 4.2.1

2002-07-02 Thread Richard Lynch
Does anyone have problem with libmcrypt with PHP? With older version of PHP and libmcrypt, it work just fine and when I use the newer version, PHP 4.2.1 and libmcrypt 2.5.2. It does not work. I check with php_info() and it showed the mcrypt on it and it is supported. Does it require a

[PHP] Re: encryption code in php

2002-07-02 Thread Richard Lynch
Never mind! It took me all day to find out what the problem is. It turned out that PHP use $SSL_PROTOCOL, $SSL_CIPHER_USEKEYSIZE, etc. It is displayed automatically when the register_global is turned on. With some research, found out that it is part of Mod_SSL where PHP use it from. Yet, I

Re: [PHP] supersession

2002-07-02 Thread Richard Lynch
I think there is also a directive in php.ini to ALWAYS include a certain file at the top of each script, transparently. Search for append or prepend in php.ini and you'll find it. Depending on what data you need to have in these variables, you might be able to set them as environment

[PHP] Re: PHP encryption

2002-07-02 Thread Richard Lynch
My company is going to be 1. Hosting our code on other people servers 2. selling our programs. We are going to be needing to encrypt the codewhat would you all suggest? How about Zend Encoder...is it any good? (even though its so much $$) Disclosure: I'm a former employee and come with

[PHP] Re: Drop connection, keep running?

2002-07-02 Thread Richard Lynch
I'm surprized I can't find a description of how to do what seems like an obvious thing to me: I want to have my script send output to the user, then drop the connection, and then continue doing stuff that the user shouldn't have to wait for. There's lots of documentation about what to do when

[PHP] Re: Keeping Secrets in PHP Files

2002-07-02 Thread Richard Lynch
here's an idea, perhaps something like this can be used... You set a decryptionkey value in your vhost (I don't know if you can do this with php_value or perhaps an apache directive) VirtualHost 123.123.123.123 ServerName www.example.com DocumentRoot /home/example/htdocs php_value

[PHP] Re: Searching for string in text file help?

2002-07-02 Thread Richard Lynch
I'm trying to seach for a string that would occur about 10 lines into a text file. I don't want to search the entire file, and I just want to know if the string exsists or not, but I don't really know what I'm doing. This is what I was trying, it occurs inside a loop that is listing the files in

Re: [PHP] Writing a GIF/JPG Image

2002-07-02 Thread Richard Lynch
OK, i made this image.php file: start--- ?php $theFile = ; $fcontents = file ('Logo.gif'); while (list ($line_num, $line) = each ($fcontents)) { $theFile .= $line.\n; } echo $theFile; ? -end- and I have an html file that does img

Re: [PHP] Help: Constants

2002-07-02 Thread Richard Lynch
I changed the reporting level. I found it myself later on. Just was a bit to quick when posting this question. Change it back. You'll find a lot more bugs a lot quicker that way. :-) Use E_ALL Might need to transition one page at a time with error_reporting() at the top or something, but

[PHP] Re: session duration

2002-07-02 Thread Richard Lynch
Is there a way to programatically (inside a session) change session duration for the current session only? (using cookie-based sessions) ? Wild Guess: What if you use the PHP functions to alter the php.ini value for session time out in that script before you call session_start()?... Totally

[PHP] Re: session dropping data

2002-07-02 Thread Richard Lynch
'lo, anybody ever experience this: 1. i start a session w/ session_start() 2. register some vars w/ session_register() 3. click to next page, everything cool. all vars are there, and session id is same 4. any other page, all session vars gone, but sessid is still the same. so session is

Re: [PHP] Re: [PHP-DB] blob versus file

2002-07-02 Thread Richard Lynch
the blob field can't be indexed but others (id, filename, keywords, caption etc..) can, there's lots of cases where it makes sense to put images in a database. This makes no sense to me. You would still index the filename, the keywords, the caption, make them all searchable, but you do *NOT*

[PHP] Re: [PHP-DB] blob versus file

2002-07-02 Thread Richard Lynch
I also noticed that the image is not cached anymore. Is this true for all blobs, or do I just access them in a wron way? Your browser is only going to cache URLs without a ? in them, probably maybe... Or, less likely, your PHP code with the MySQL code may be sending out different headers()

Re: [PHP] Updated (appending) a file

2002-07-02 Thread Richard Lynch
Permission denied Yep. Crap. If I let PHP create the file (delete the files as they exist now), that will give it permission (because it will have made them), right? You're getting closer, though. :-) Now your problem simply boils down to one of security and file permissions. Alas, with

Re: [PHP] Using the AS key word in SQL Queries

2002-07-02 Thread Richard Lynch
On Tue, Jul 02, 2002 at 11:08:13AM +0530, Sachin Keshavan wrote: I am trying to execute the Query SELECT MAX(RECORDNO) AS MAXREC FROM BOOKS; while($row = mysql_fetch_array($sql_result)) { $bookID = $row['MAXREC']; } This query fails. Am I doing any thing wrong here. Warning: In

Re: [PHP] Why is this code hanging?

2002-07-02 Thread Chris Hewitt
Leif, I think you are missing a $count++ somewhere. Its a mistake I commonly make... HTH Chris Leif K-Brooks wrote: I am trying to make a simple php program to produce text lIkE tHiS. The thing is, it hangs for a while andd then says it's reached the maximum execution time of 30

Re: [PHP] securing an 'includes' dir

2002-07-02 Thread Justin French
on 02/07/02 5:41 PM, Richard Lynch ([EMAIL PROTECTED]) wrote: Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 1. Name all included files .inc If you name them *.php then put anything in them inside a function, then when the user browses to

[PHP] Re: session duration

2002-07-02 Thread Ivan Voras
Richard Lynch [EMAIL PROTECTED] wrote in message news:20020702092207.GERZ903.sccrmhc03.attbi.com@[192.168.1.103]... Is there a way to programatically (inside a session) change session duration for the current session only? (using cookie-based sessions) ? Wild Guess: What if you use the PHP

[PHP] Re: Handling of constants in strings

2002-07-02 Thread Uwe Birkenhain
Richard Lynch schrieb in Nachricht 20020701232114.VOAI6023.sccrmhc02.attbi.com@[192.168.1.103]... Try this: $my_string = This is {MY_CONSTANT} and I love it!; Can't promise it will work, mind you... It's not all that common to bury constants in strings... And is the extra . K . that big a

[PHP] Going Nuts with Ereg/Eregi

2002-07-02 Thread Patrick Teague
Ack! Ok, Ereg/Eregi returns the first matching string. How do I find any other matching strings? Or is there a better way of doing this? $eregi_str = (\; |\()Win[ \.a-z0-9]*(\)|\;); if( eregi( $eregi_str, $browser_string, $arrstring ) ) { $browser_os = $arrstring[0]; } This works fine

[PHP] Re: [PHP-DB] blob versus file

2002-07-02 Thread Pierre-Alain Joye
On Tue, 2 Jul 2002 05:45:40 +0200 Andy [EMAIL PROTECTED] wrote: is the increase of the network traffic noticable? The query is pretty small just text. Do u really think this might increase the traffic? Try to heavely charge a DB with images inside it. Do the same without DB, that depends if

[PHP] Re: Problem with menu

2002-07-02 Thread JJ Harrison
Thanks for that info. I am still a bit new to programming/PHP to fully grasp that but I am sure I will in time. *anyway* when I echo menu($id) I get the current page's title. How do I print it's peers and it's single parent? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com P.S. I originally

Re: [PHP] Why is this code hanging?

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 16:31, Leif K-Brooks wrote: I am trying to make a simple php program to produce text lIkE tHiS. The thing is, it hangs for a while andd then says it's reached the maximum execution time of 30 seconds. The error is on line 18. Any ideas? My code: ?php print

[PHP] does a form submit from a http page to a https ensure secure data?

2002-07-02 Thread B.C. Lance
hi, the above question has been puzzling me for a while. the situation is this. http://domainname.com/register.php display a user registration form having [form action=https://domainname.com/register.php; method=post] will the data from that page be encrypted when it is sent via https

Re: [PHP] securing an 'includes' dir

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 18:02, Justin French wrote: on 02/07/02 5:41 PM, Richard Lynch ([EMAIL PROTECTED]) wrote: Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 1. Name all included files .inc If you name them *.php then put anything in

[PHP] .htpasswd

2002-07-02 Thread Simon Troup
Does anyone know what encryption is used on passwords in a .htpasswd file? Zim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pdf_show_boxed

2002-07-02 Thread Hugo Wetterberg
I have a problem with pdf_show_boxed(), it doesn't output anything. Everything else shows up just fine. Is there something that I have overlooked in this code? Hugo ?php $theme='Kaos i mellanöstern'; $title='Någon tidning' . rand(0,1000); $issuedesc='Lorem ipsum dolor sit amet, consectetuer

[PHP] storing content data outside the application

2002-07-02 Thread Andy
Hi there, I have a problem with content data. Currently I do store images inside a data folder. /data This is causing a problem, because everytime I installan update of the application on the server I have to move this folder around to the new version of my application. I am worried that during

[PHP] User Enviroment Vars

2002-07-02 Thread James Brisland
Has anyone her got any idea how I could access the User Env Vars so I can get processor type, speed, ram etc. Is there any way to do this? Or would be be something other than PHP. Also I need to do this over the web and not on their machine. Any ideas? James. -- PHP General Mailing List

RE: [PHP] Writing a GIF/JPG Image

2002-07-02 Thread joakim . andersson
Maybe something like this... ?php $filename = Logo.gif; $fd = fopen ($filename, r); $contents = fread ($fd, filesize ($filename)); fclose ($fd); $str_sql = INSERT INTO mytable (myblob) VALUES ('$contents'); $link = mysql_connect(localhost, mysql_user, mysql_password); $dbselect =

[PHP] NNTP tutorial

2002-07-02 Thread Latex Master
Hello php-general, Dear PHP programmers, anyone can point me to a nice tutorial working with NNTP (Usenet) servers? -- Best regards, Latex mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] mac ie and force download

2002-07-02 Thread Henry
a few weeks ago there was discussion on how to force open the dialogue save on mac ie using header() was that issue resolved? is there a solution? comments at http://www.php.net/manual/en/function.header.php discuss only win platforms cheers Henry -- PHP General Mailing List

[PHP] Undefined Offset Error

2002-07-02 Thread Crane, Christopher
Here is a piece of my code... Could someone tell me what I did wrong? I get the following errors; Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on line 33 Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on line 34 (obviously, the line

[PHP] $name = My $row['name'] not longer possible?

2002-07-02 Thread Uwe Birkenhain
Hi, I upgraded to 4.2 and now I get those errormessages Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ... when doing sth like: $name = My $row['name']; Why? greetings, Uwe -- PHP General Mailing List

Re: [PHP] mac ie and force download

2002-07-02 Thread Justin French
I haven't been able to figure it out as yet got every other browser I can get my hands on to do it, except IE mac. I'm thinking I'll just .zip everything :) Let me know what you find out, please. Justin French on 02/07/02 10:36 PM, Henry ([EMAIL PROTECTED]) wrote: a few weeks ago there

[PHP] Multi-Word Searches

2002-07-02 Thread Dave Rosenberg
I'm putting together a PHP/MySQL search and have run into a minor problem. I have a text field to fill in a keyword on one page and that brings up another PHP page .com/showkey.php?id=divisionsearch=Bob%20Cobb. Within that new page, you can sort the results by ID, and to do this I made

[PHP] odbc_fetch_into ??

2002-07-02 Thread Scott Fletcher
odbc_fetch_into didn't give me the result I expect it to. When returning the data, It skipped some columns. With the register_global turned off. How do I transform the defined data into an array to be use for odbc_fetch_into? I never got it to work right. I will appreciate any of the help

RE: [PHP] $name = My $row['name'] not longer possible?

2002-07-02 Thread Matt Schroebel
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ... when doing sth like: $name = My $row['name']; You have to wrap array references in curly braces within double quoted strings. Proper form is: $name = My

Re: [PHP] $name = My $row['name'] not longer possible?

2002-07-02 Thread Matt Williams
On Tuesday 02 July 2002 13:49, Uwe Birkenhain wrote: Hi, I upgraded to 4.2 and now I get those errormessages Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ... when doing sth like: $name = My $row['name']; Try $name

[PHP] php and apache path...

2002-07-02 Thread Nightshade
Hi there.That's my question...A file that is in the 4th level's subdir must read a file that's in the 1st level. but I wish avoid to use millions of ../../../thefile.php I hope have been clear... is there a unix like ~/ , to access to root directory of my site, so open the file? tnx in advance,

RE: [PHP] .htpasswd

2002-07-02 Thread Matt Schroebel
%htpasswd --help Usage: htpasswd [-cmdps] passwordfile username htpasswd -b[cmdps] passwordfile username password htpasswd -n[mdps] username htpasswd -nb[mdps] username password -c Create a new file. -n Don't update file; display results on stdout. -m Force

Re: [PHP] Unable to restart httpd after upgrading PHP

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 12:22 AM, Robert Tan wrote: I am running a Sun Cobalt RAQ4 server. The PHP version on it is 4.0.6. I received an error message when I restart httpd after upgrading PHP scripting engine on my cobalt server through the patch that cobalt provided to fixes some

[PHP] Re: odbc_fetch_into ??

2002-07-02 Thread Scott Fletcher
I tried this script and it showed all of the data correctly, so how do I make the define variable to work correctly? --clip-- // 97 columns are used, so I used 98 to stop the loop (this loop is for testing only) for($x=0;$x98;$x++) { echo $user_detail[$x].br; }

Re: [PHP] Re: Beginner Sessions Question

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 03:04 AM, Richard Lynch wrote: And, really, $result is about a generic a variable name as $i How about using $user_info or even $user_info_result? Yes, I know every example and every PHP book on the planet uses $result. That doesn't make it right :-) I hear

[PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread David E. Weekly
All, I upgraded from PHP 4.1.2 to 4.2.1 today along with revving Apache to 1.3.26 from 1.3.22, and, woe is me, my $DOCUMENT_ROOT now evaluates to on all of my PHP pages! phpinfo() shows DOCUMENT_ROOT being set correctly under the Apache variables category. I tried several variations, including

Re: [PHP] Undefined Offset Error

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 20:35, Crane, Christopher wrote: Here is a piece of my code... Could someone tell me what I did wrong? I get the following errors; Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on line 33 Warning: Undefined offset: 1 in

Re: [PHP] Help: Constants

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 04:48 AM, Richard Lynch wrote: Change it back. You'll find a lot more bugs a lot quicker that way. :-) Use E_ALL Might need to transition one page at a time with error_reporting() at the top or something, but migrate to E_ALL. You *will* benefit in

[PHP] svg graphics and php : is it possible

2002-07-02 Thread Herve le Martret
Hello, I am interested in creating svg graphics with php like creating a image with gd. I tried a PHP script with : header (Content-type: image/xml+svg); but I don't know how to output correctly svg lines. It is not possible to ouput svg lines with the print command and a command like

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Kevin Waterson
On Mon, 1 Jul 2002 22:01:27 -0700 David E. Weekly [EMAIL PROTECTED] wrote: All, I upgraded from PHP 4.1.2 to 4.2.1 today along with revving Apache to 1.3.26 from 1.3.22, and, woe is me, my $DOCUMENT_ROOT now evaluates to on all of my PHP pages! $_SERVER['DOCUMENT_ROOT'] Kevin -- Kevin

Re: [PHP] Going Nuts with Ereg/Eregi

2002-07-02 Thread Analysis Solutions
On Tue, Jul 02, 2002 at 05:26:45AM -0500, Patrick Teague wrote: $eregi_str = (\; |\()Win[ \.a-z0-9]*(\)|\;); $eregi_str = (Windows|Win[^d])[^;]+; if( eregi( $eregi_str, $browser_string, $arrstring ) ) { $browser_os = $arrstring[0]; } This works fine except on some browsers

[PHP] Re: DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Scott Fletcher
Try $_SERVER['DOCUMENT_ROOT']. Global register is turned off by default in PHP version 4.2.x. See http://www.php.net/release_4_1_0.php for more detail. Global register had been turned off as part of more security since many people use the global register. So, $_SERVER, $_ENV, $_SESSION, etc.

[PHP] Installation de PHP 4.2.1 avec Apache et extension frontpage 2002

2002-07-02 Thread Claudio Valgoi
Bonjour, Sur mon poste qui tourne avec une distribution Mandrake 8.1 j'ai compiler et installé PostgreSQL ainsi que apache 1.3.24 et php 4.2.1 tous ça fonctionne très bien. Lorsque j'ai installé les extension FrontPage 2002 sur mon serveur Apache, PHP ne tourne plus. j'ai essaier de recompiler

Re: [PHP] storing content data outside the application

2002-07-02 Thread Analysis Solutions
On Tue, Jul 02, 2002 at 01:42:25PM +0200, Andy wrote: I have a problem with content data. Currently I do store images inside a data folder. /data This is causing a problem, because everytime I installan update of the application on the server I have to move this folder around to the new

RE: [PHP] cURL in an exec()

2002-07-02 Thread Jay Blanchard
[snip] print($curlline); this looks fine exec($curline); Have you tried executing $curlline directly from a shell/command-line? This will determine whether it is a PHP problem or a cURL problem. [/snip] That was the first thing I did, and I have gone back a couple of times now to make

RE: [PHP] uploading a file

2002-07-02 Thread Beverly Steiner
Balaji, I tried to implement the code you put in this email and I'm having some problems. I am able to browse and choose a file from my system then click upload. The php script doesn't get the value of $path. The site is running PHP 4.2.1 on Windows NT 5.0. I am using Internet Explorer

Re: [PHP] svg graphics and php : is it possible

2002-07-02 Thread Bogdan Stancescu
I think the proper MIME type for sgv is image/svg-xml. Why aren't you able to output svg lines with print() (or echo())? Bogdan Herve le Martret wrote: Hello, I am interested in creating svg graphics with php like creating a image with gd. I tried a PHP script with : header (Content-type:

Re: [PHP] Multi-Word Searches

2002-07-02 Thread Analysis Solutions
Dave: On Tue, Jul 02, 2002 at 09:13:00AM -0400, Dave Rosenberg wrote: .com/showkey.php?id=divisionsearch=Bob%20Cobb. Within that new page, you can sort the results by ID, and to do this I made the hyperlink go to, for example, showkey.php3?id=projectsearch=$search. When I do this,

Re: [PHP] Re: odbc_fetch_into ??

2002-07-02 Thread Analysis Solutions
Scott: On Tue, Jul 02, 2002 at 10:05:31AM -0400, Scott Fletcher wrote: I tried this script and it showed all of the data correctly, so how do I make the define variable to work correctly? define(CUSTOMER_ID,0); define(CUSTOMER_NAME,1); define(STATE,6); // blah blah blah if

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread David E. Weekly
Kevin, After many tries, that is what indeed worked, but I'm a little irked, since shouldn't it have been that setting register_global to On in my php.ini would re-enable these base globals? I had to retool all of my scripts. =/ -david - Original Message - From: Kevin Waterson [EMAIL

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 10:47 AM, David E. Weekly wrote: After many tries, that is what indeed worked, but I'm a little irked, since shouldn't it have been that setting register_global to On in my php.ini would re-enable these base globals? I had to retool all of my scripts. =/

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread David E. Weekly
IMHO you're better off I agree and understand why, but... but yes, if you set register_globals = on then you shouldn't need to have retooled your scripts. I agree. =) Did you restart your webserver after you adjusted php.ini? Yes. Full stop/start cycle. -david -- PHP General

Re: [PHP] Help: Constants

2002-07-02 Thread Analysis Solutions
On Tue, Jul 02, 2002 at 10:17:10AM -0400, Erik Price wrote: Except in a production environment, where you really never want your users to see PHP error messages that you haven't coded yourself for the user's benefit. It could reveal just a bit too much about your setup... even filenames

Re: [PHP] uploading a file

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 22:35, Beverly Steiner wrote: Balaji, I tried to implement the code you put in this email and I'm having some problems. I am able to browse and choose a file from my system then click upload. The php script doesn't get the value of $path. The site is running PHP

Re: [PHP] Re: odbc_fetch_into ??

2002-07-02 Thread Scott Fletcher
That's a great idea! Less hassle to deal with updating the defines() over the time. I have one little problem. If I do the odbc_fetch_array then I can't include two tables because of the two of the same column name. Look like I'll have to use one array for one table and one other array for

[PHP] Writing text line with no breaks.

2002-07-02 Thread Jay Blanchard
I am slowly coming up with a solution to my cURL problem and have narrowed down the possibilities. One of these being that the cURL command written out with variables and such breaks into more than one line. This is not allowed in cURL. So, I had decided to write out a file as follows; ($curline

Re: [PHP] Help: Constants

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 10:58 AM, Analysis Solutions wrote: Dude, that's nuts. It creates way more work. Having to put it on each page in the first place, then having to change it before you put it up. Then, there's the possibility that you forget to change it before uploading.

Re: [PHP] Re: odbc_fetch_into ??

2002-07-02 Thread Analysis Solutions
Hi Scott: On Tue, Jul 02, 2002 at 11:08:30AM -0400, Scott Fletcher wrote: That's a great idea! Good. I have one little problem. If I do the odbc_fetch_array then I can't include two tables because of the two of the same column name. In your query, rename the fields using an AS statement.

Re: [PHP] Writing text line with no breaks.

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 23:13, Jay Blanchard wrote: I am slowly coming up with a solution to my cURL problem and have narrowed down the possibilities. One of these being that the cURL command written out with variables and such breaks into more than one line. This is not allowed in cURL. So,

[PHP] Feedback please

2002-07-02 Thread Bret L Conard
Hi All.. I have recently completed work on a PHP, MySQL driven job site for Technical employment. Geared toward independent contractors and the people who hire them. If any one has the time, could you look at: www.tech-temp.com and give feedback either on the list or privately? I *think* I

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 22:58, David E. Weekly wrote: IMHO you're better off I agree and understand why, but... but yes, if you set register_globals = on then you shouldn't need to have retooled your scripts. I agree. =) Did you restart your webserver after you adjusted php.ini?

Re: [PHP] php and apache path...

2002-07-02 Thread Analysis Solutions
On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote: is there a unix like ~/ , to access to root directory of my site Does $_SERVER['DOCUMENT_ROOT'] help? Whenever you have a question like this, run phpinfo() and see what's there which produces the variable you're looking for. --Dan

[PHP] forms and files

2002-07-02 Thread Tyler Longren
Hi, I have a form kinda like this: form action=$PHP_SELF?option=Massaction=add method=POST enctype=multipart/form-data input type=file name=passcodeFile the rest of the form is there too. And $PHP_SELF is set to $PHP_SELF = $_SERVER[PHP_SELF] at the top of the page. When I select a

[PHP] open_base_dir apache directive and symlink directories

2002-07-02 Thread Dave
am I correct in assumnig the following will not work; user directory /usr/home/joeuser symlink to document directory /usr/home/joeuser/www - /usr/local/www/data/joeuser document directory /usr/local/www/data/joeuser in httpd.conf php_admin_value open_base_dir

Re: [PHP] forms and files

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 23:34, Tyler Longren wrote: Hi, I have a form kinda like this: form action=$PHP_SELF?option=Massaction=add method=POST enctype=multipart/form-data input type=file name=passcodeFile You really should use around your tag values. What you have is invalid HTML. the

Re: [PHP] open_base_dir apache directive and symlink directories

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 23:44, Dave wrote: am I correct in assumnig the following will not work; user directory /usr/home/joeuser symlink to document directory /usr/home/joeuser/www - /usr/local/www/data/joeuser document directory /usr/local/www/data/joeuser in

[PHP] Setting a cookie and redirecting

2002-07-02 Thread Cord Schneider
Hi all! Since I am new to PHP, I need the help of someone who is very familiar with the way PHP handles the setting of cookies and page redirection - in other words, an expert! Here is an outline of the problem: 1) client browser hits myPage.php 2) myPage.php does a few checks recognises that

  1   2   3   >