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

[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=xxx&vary=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

[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 l

[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: "; if(!isset($_POST['text'])){ print <<< END Text: END; }else{ $text

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 hangin

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 s

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

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 Mus

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 alrea

Re: [PHP] Redirecting with the POST method.

2002-07-02 Thread Richard Lynch
>>header("Location http://www.domain.net/script.php? >>fsi=dgfs&login=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 do

[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

[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 diff

[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,

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 wi

[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 w

[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) > > >ServerName www.example.com >DocumentRoot /home/example/htdocs >php_value decryptionkey "123456789" >

[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

Re: [PHP] Writing a GIF/JPG Image

2002-07-02 Thread Richard Lynch
>OK, i made this image.php file: >start--- > $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 d

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 mi

[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

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() ab

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 W

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 h

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 secon

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 use

[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 u

[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

[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 fin

[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

[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: > 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 speci

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 *.ph

[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 finished"; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 (htt

RE: [PHP] Writing a GIF/JPG Image

2002-07-02 Thread joakim . andersson
Maybe something like this... If you are going to use this with different types of images you should probably store the content-type along with the image in the dB. /Joakim > -Original Message- > From: Brandon [mailto:[EMAIL PROTECTED]] > Sent: Saturday, June 29, 2002 3:52 AM > To: [EM

[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: http://www.php.net/uns

[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 (http://www.php

[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 numers

[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 (http://www.php.n

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=division&search=Bob%20Cobb". Within that new page, you can sort the results by ID, and to do this I mad

[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 here

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 {$ro

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']"; > T

[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 M

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;$x<98;$x++) { echo $user_detail[$x].""; } --clip

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

[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, includ

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 c:/www/htdocs/

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* b

[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 "image

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

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

[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. is

[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

RE: [PHP] cURL in an exec()

2002-07-02 Thread Jay Blanchard
[snip] >> print($curlline); > 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 >

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 6.0.26

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-

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=division&search=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=project&search=$search". > When I

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

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" <[EMA

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 > script

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 M

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 filen

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

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 one

[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 i

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. S

[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 h

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 adju

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: 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 passcodeFile file to upload and click the "upload" button, I am presented with this on the next page: "You need to specify a fi

[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 /usr/home/j

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: > enctype=multipart/form-data> > You really should use "" around your tag values. What you have is invalid HTML. > the rest of the form is there too. And $PHP_SELF is set to $PHP_SELF = > $_SERVER[PH

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 > >

[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

Re: [PHP] forms and files

2002-07-02 Thread Tyler Longren
On Tue, 2 Jul 2002 23:45:56 +0800 Jason Wong <[EMAIL PROTECTED]> wrote: > On Tuesday 02 July 2002 23:34, Tyler Longren wrote: > > Hi, > > > > I have a form kinda like this: > > > enctype=multipart/form-data> > > > > You really should use "" around your tag values. What you have is > invalid HT

[PHP] Php mail() function is not working for me

2002-07-02 Thread Balaji Ankem
Hi friend, I am getting the following problem from last 6 months..still I couldn't solve this problem. >>Warning: Failed to Connect in c:\www\imac\email.php on line 18 >>Warning: Failed to Connect in c:\www\imac\email.php on line 22 Email.php just visited your site and submitted

[PHP] PHP crypt now adding $1$ to password

2002-07-02 Thread Brett Hay
Hello, I've upgraded to Mandrake 8.2 and installed a couple of apps that later un-installed. Somewhere along the line I have hosed myself because while running php-nuke I have noticed that all of the new passwords that are getting added to the database (mysql) have a $1$ in front of them. Th

[PHP] PHP crypt() now adding $1$ to password

2002-07-02 Thread Brett Hay
Hello, I've upgraded to Mandrake 8.2 and installed a couple of apps that I later un-installed. Somewhere along the line I have hosed myself because while running php-nuke I have noticed that all of the new passwords that are getting added to the database (mysql) have a $1$ in front of them.

[PHP] Executing a php script periodically using crond

2002-07-02 Thread Henry
Hi All I need to execute a php script every hour. I am expecting to do this using a cron job. The question is what command line do I use to execute a php script. Bearing in mind that my configuration is as shown below Thanks in advance Henry My Configuration is as follows: PHP Version 4.0.4pl

Re: [PHP] forms and files

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 23:54, Tyler Longren wrote: > that worked. I had to use _FILES instead of _POST > > I still get these errors though: > "Warning: fopen("", "r") - Success in > /usr/local/apache/htdocs/cj/aanr/admin/passcode_admin.php on line 151 > > Warning: stat failed for (errno=2 - No

Re: [PHP] Re: odbc_fetch_into ??

2002-07-02 Thread Scott Fletcher
That function, odbc_fetch_array() does not work. PHP spit out the error, undefined function. "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Scott: > > On Tue, Jul 02, 2002 at 10:05:31AM -0400, Scott Fletcher wrote: > > I tried this scri

[PHP] Re: Executing a php script periodically using crond

2002-07-02 Thread Henry
PS. I cannot compile as a binary etc. This configuration is the confi of the shared server I am using which is hosted by a third part. Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Feedback please

2002-07-02 Thread Chris Earle
You misspelled "Location" in the job search under preferences of a found person. "Bret L Conard" <[EMAIL PROTECTED]> wrote in message 001701c221dc$a4713700$02fea8c0@BretLConard">news:001701c221dc$a4713700$02fea8c0@BretLConard... Hi All.. I have recently completed work on a PHP, MySQL driven j

Re: [PHP] Re: odbc_fetch_into ??

2002-07-02 Thread Analysis & Solutions
On Tue, Jul 02, 2002 at 11:59:59AM -0400, Scott Fletcher wrote: > That function, odbc_fetch_array() does not work. PHP spit out the error, > undefined function. Huh? Which version of PHP are you using? It's available in 4.0.2 or greater. Did you misspell the function name? --Dan --

Re: [PHP] Re: Executing a php script periodically using crond

2002-07-02 Thread Jason Wong
On Wednesday 03 July 2002 00:25, Henry wrote: > PS. I cannot compile as a binary etc. This configuration is the confi of > the shared server I am using which is hosted by a third part. This has been covered many times in the past as a quick search of the archives would reveal. If you don't have

Re: [PHP] Re: Executing a php script periodically using crond

2002-07-02 Thread Erik Price
On Tuesday, July 2, 2002, at 12:25 PM, Henry wrote: > PS. I cannot compile as a binary etc. This configuration is the confi > of the > shared server I am using which is hosted by a third part. If your PHP is not compiled as a CGI interpreter, then you can't do commandline PHP commands. But

  1   2   3   >