[PHP] getenv of "document_name" in php

2004-01-07 Thread Louie Miranda
What is the getenv of "document_name" in php? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Image Resizing with GD

2004-01-07 Thread Mike Brum
There are some really good user notes in the function description for imagecopyresized and imagecopymerge: http://us3.php.net/manual/en/function.imagecopymerge.php http://us3.php.net/manual/en/function.imagecopyresized.php You might also want to do some searching with google for "thumbnail fu

[PHP] Image Resizing with GD

2004-01-07 Thread Peter Vertes
Hello List,     I've tried googling but couldn't come up with anything useful so I'm turning to the list.  Could anyone send me a link to a tutorial on how to resize images with GD ?  Thanks in advance... -Pete -- perl -e 'print pack("H*", "70766572746573406E79632E72722E636F6D0A")'

Re: [PHP] Problem with while loop

2004-01-07 Thread Brad Pauly
On Jan 7, 2004, at 10:02 PM, Richard Kurth wrote: I can't seam to get this while loop to work properly. It should create a message that has the first two lines and then it will list all the domain that meat the criteria. $lines = "The following are web sites that are at 95% usage or more of th

[PHP] Problem with while loop

2004-01-07 Thread Richard Kurth
I can't seam to get this while loop to work properly. It should create a message that has the first two lines and then it will list all the domain that meat the criteria. $lines = "The following are web sites that are at 95% usage or more of there web space\n"; $lines = "Site Name Used(MB

[PHP] script/binary that tracks links through logs

2004-01-07 Thread John
does anyone know of a program/script that tracks incoming links from site that youve traded links with. but not a simple php script that requires the other site to link to www.mysite.com/links_in/12/ but some software that analyses apache access logs for the referer field. this would mean the other

Re: [PHP] Redirecting and get length problems

2004-01-07 Thread John W. Holmes
Chris W wrote: In this application I am working on, if there is a problem with the data, I use a redirect to go back to the form and send the data with an error message in a get. That way the user doesn't need to retype everything. Most errors can be caught with java script before they post

Re: [PHP] Mysql Insert/Update Problem

2004-01-07 Thread John W. Holmes
Haseeb Iqbal wrote: here is what i am trying to do.i have a PHP CLI script > that will open a dbx file extract records from the dbf file > one by one check is the record is already on the linux server > (mysql database). if the record is already on the linux server > then it will update the mysql

[PHP] Re: Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Greg Beaver
Hi Scott, You've discovered one of the basic tenets of form security on the web :) It is crucial that you never trust input from ANY outside source. This means you should do a couple of things: 1) limit the possible input values 2) validate the data type. If you expect a number, use is_numer

RE: [PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Martin Towell
3 | | | > > > > +---+ > > > > > > > > Obviously if the number of items and columns are > static, I have no > > >problem, > > > > but how do I get a layout that appeals to people and > not computers if > > > > they're dynamic? This has me befuddled, I'm wondering > is there an > > >algorithm > > > > for doing it or is it effectively a Turing Test. > > > > > > > > Thanks, > > > > adam > > > > > > > > > > > > > > > $s=array(74,65,112,104,112,72,32,59,45,41); > > > > for($i=0;$i > > > ?> > > > > > > > > > _ > > > > MSN 8 with e-mail virus protection service: 2 months FREE* > > > > http://join.msn.com/?page=features/virus > > > > > > > > > > > > > _ > > Add photos to your messages with MSN 8. Get 2 months FREE*. > > http://join.msn.com/?page=features/featuredemail > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Information from NOD32 1.594 (20040107) __ > > This message was checked by NOD32 for Exchange e-mail monitor. > http://www.nod32.com > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Matt Grimm
Ok, I think this is more what you're looking for. Dynamic columns *and* rows. This work for ya? // How many columns do you want? $l_iColumnWidth = 6; // Populate an array of random length with random values for ($i = 0; $i < rand(15, 300); $i++) { $l_aTest[] = '...'; } $l_iLength = count($

[PHP] Re: Very confusing problem!

2004-01-07 Thread DvDmanDT
Like John said, make sure you have $paging=new paging_class(); or $paging=&new paging_class(); Is it exactly the same script (each php page) or is it just the class that is the same? Cause if the latter one, maybe you create an instance of the object in the main file, and not in the included one...

Re: [PHP] Generating PDF

2004-01-07 Thread Yann Larrivee
Thanks, it was a permission issue. Yann On Wed, 2003-12-31 at 11:13, Evan Nemerson wrote: > On Wednesday 31 December 2003 09:29 am, Yann Larrivee wrote: > > Hi i am trying to generate a PDF with PHP5 (latest cvs) and PDFLib 5.0.2 > > > > I have this very basic example that i took from php.net an

Re: [PHP] Mysql Insert/Update Problem

2004-01-07 Thread Haseeb Iqbal
i have index the db properly. what next?? Haseeb - Original Message - From: "Rolf Brusletto" <[EMAIL PROTECTED]> To: "Haseeb Iqbal" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 08, 2004 4:04 AM Subject: Re: [PHP] Mysql Insert/Update Problem > H

[PHP] Re: Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Justin Patrin
When the page is submitted, set your session vars, then redirect to the next page. Or you can set the session vars before you do any other processing. Scott Fletcher wrote: Will check into whether did I use the post method correctly. Speaking of session, I don't see how can it be done to put t

Re: [PHP] Redirecting and get length problems

2004-01-07 Thread Chris Shiflett
--- Chris W <[EMAIL PROTECTED]> wrote: > 3 of the fields in this form are to store various URL's so if they > are long URL's it is easy to see how I could go over the limit of > the max url length. So my question is what is the best alternative? > Is there a way to redirect and use a post instead o

Re: [PHP] Mysql Insert/Update Problem

2004-01-07 Thread Rolf Brusletto
Haseeb - I would look at the indexes that it requires for the select statments, if the db isn't indexed properly, it could be just filesorting on each select(when you query to see if the record is in the database on the mysql server). You can find out by putting explain in front of your select

[PHP] Mysql Insert/Update Problem

2004-01-07 Thread Haseeb Iqbal
here is what i am trying to achieve,i have 2 servers. Win2k and linux. mysql is running on my linux server.now i have quite a lot of that i need to update on linux server from win2k machine. here is what i am trying to do.i have a PHP CLI script that will open a dbx file extract records from the

[PHP] Redirecting and get length problems

2004-01-07 Thread Chris W
In this application I am working on, if there is a problem with the data, I use a redirect to go back to the form and send the data with an error message in a get. That way the user doesn't need to retype everything. Most errors can be caught with java script before they post the form but not

[PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Matt Grimm
Well you didn't say you wanted a dynamic number of columns... What's the problem with the solution 102, 101, 101? That's the count of the elements in each column -- you said in a 7 member array, you wanted 3 items in the first column, and two in the other two columns. That's 3, 2, 2, which the c

Re: [PHP] Re: web-based and command line mcrypting and back again

2004-01-07 Thread Tom Rogers
Hi, Wednesday, January 7, 2004, 8:54:16 AM, you wrote: GCN> Tom, GCN> I appreciate the suggestion, but even after setting the iv to zero GCN> within the php code and including the --noiv option within the command GCN> line; it still does not produce the same base64 encoded string under GCN> both

[PHP] Re: (OT?) form question

2004-01-07 Thread memoimyself
Hello Craig, On 7 Jan 2004 at 9:50, craig wrote: > This may be more of an HTML question - can't find anything > in the php manual, but I may not know where to look. > > Is it possible to put the cursor into a form element > when a page loads without using javascript? PHP does everything it h

[PHP] Re: Sorting data into columns vertically

2004-01-07 Thread dareal hamsta
I get: Your columns are: 102, 101, 101 ??? The other problem with this solution is that it's for a static number of columns, however I'm looking for a solution with dynamic variables. For example, I might want 4 columns with 100 items, or six columns with 15. Thanks for trying though. adam

[PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Matt Grimm
> $l_iSecond = ($l_iMod < 2 ? $l_iHigh - $l_iMod : $l_iHigh); This should actually be: $l_iSecond = ($l_iMod == 1 ? $l_iHigh - $l_iMod : $l_iHigh); but it works both ways. -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK

Re: [PHP] PHP Magazine Download version

2004-01-07 Thread Chris Shiflett
--- Richard Davey <[EMAIL PROTECTED]> wrote: > Has anyone managed to download the Electronic (PDF) free first issue > of the PHP Magazine? (https://www.entwickler.com/ssl/phppdf/) Quite coincidentally, I downloaded this within the last five minutes to show to a colleague of mine (he was asking que

[PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Matt Grimm
Try this: // Populate an array of random length for ($i = 0; $i < rand(300, 600); $i++) { $l_aTest[] = '...'; } $l_iLength = count($l_aTest); $l_iLow = floor($l_iLength / 3); $l_iHigh = ceil($l_iLength / 3); $l_iMod = $l_iLength % 3; $l_iFirst = $l_iHigh; $l_iSecond = ($l_iMod < 2 ? $l_iHigh

[PHP] PHP Magazine Download version

2004-01-07 Thread Richard Davey
Hi all, Has anyone managed to download the Electronic (PDF) free first issue of the PHP Magazine? (https://www.entwickler.com/ssl/phppdf/) I have registered fine but in the email they sent me, the URL to download just doesn't work. It takes ages (30+ seconds) to connect which I think is the gener

Re: [PHP] upload picture

2004-01-07 Thread Chris Shiflett
--- Chris Shiflett <[EMAIL PROTECTED]> wrote: > All you want to do is open a file, write to it, and close it. I should have read all of your question. :-) I believe you will find that the uploaded file is already on the filesystem, and you can look in $_FILES to find the location. Hope that help

[PHP] Re: Identifiying multiple records for databse submission

2004-01-07 Thread Vernon
Sure glad I figured it out myself. :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] upload picture

2004-01-07 Thread Blake Schroeder
Matt This form is for rtf files you will need to make some changes for it. -Blake Matt Hedges wrote: Hello... could anyone please tell me how to upload a picture using php? I have this but don't know how to specify how to store the pictures on the server... thanks! thanks Matt -- +

Re: [PHP] upload picture

2004-01-07 Thread Chris Shiflett
--- Matt Hedges <[EMAIL PROTECTED]> wrote: > Hello... could anyone please tell me how to upload a picture using > php? > > I have this > > > > but don't know how to specify how to store the pictures on the server. You should look here: http://www.php.net/manual/en/ref.filesystem.php All you

Re: [PHP] upload picture

2004-01-07 Thread Blake Schroeder
This works for me My Form ?> Send this file: savefile.php // In PHP earlier then 4.1.0, $HTTP_POST_FILES should be used instead of // $_FILES. In PHP earlier then 4.0.3, use copy() and is_uploaded_file() // instead of move_uploaded_file $uploaddir = '/fullDirectoryPath'; $uploadfile = $

Re: [PHP] upload picture

2004-01-07 Thread Richard Davey
Hello Matt, Wednesday, January 7, 2004, 7:26:31 PM, you wrote: MH> Well, it's a start :) The size attribute isn't any use though. MH> but don't know how to specify how to store the pictures on the server... MH> thanks! See: Chapter 18. Handling file uploads of the PHP Manual for source code e

[PHP] upload picture

2004-01-07 Thread Matt Hedges
Hello... could anyone please tell me how to upload a picture using php? I have this but don't know how to specify how to store the pictures on the server... thanks! thanks Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > I wanted to know is is there a way to configure PHP to make it not be > affected when the web user tamper with the values in the post string > after a webpage is submitted or something. If by "after a page is submitted" you mean "after a page is requ

Re: [PHP] Max GET size?

2004-01-07 Thread Chris Shiflett
--- James E Hicks III <[EMAIL PROTECTED]> wrote: > I've seen the post_max_size in the php.ini. Is there a corresponding > get_max_size? I couldn't find anything about this anywhere in the > php.ini or apache.conf. > > I want to send a lot of information via > header("Location: http//server.com/

[PHP] Sorting data into columns vertically

2004-01-07 Thread dareal hamsta
[ Please copy me off list. ] Say I have 7 items of data and I wish to sort them into 3 columns in a HTML table. The items are unevenly sized, so rather than print them out in rows - resulting in lots of wasteful whitespace - I would like to output them in vertical order. However if I use the mo

Re: [PHP] basic ?id=x question

2004-01-07 Thread Brian V Bonini
On Wed, 2004-01-07 at 13:44, Matt Hedges wrote: > Hello, > > I'm trying to pull from a database... I can pull an array, but I want to > just be able to pull one item instead of all of them... I know somehow you > can do this with page.php?id=x... but can't figure it out... That would depend on

[PHP] Re: Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Scott Fletcher
Will check into whether did I use the post method correctly. Speaking of session, I don't see how can it be done to put the data into the session after the user click the submit button before going over to the next webpage. FletchSOD "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EM

[PHP] Re: basic ?id=x question

2004-01-07 Thread Matt Hedges
figured it out i had the sort before the where clause and that messed it up. "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I'm trying to pull from a database... I can pull an array, but I want to > just be able to pull one item instead of all of them

[PHP] basic ?id=x question

2004-01-07 Thread Matt Hedges
Hello, I'm trying to pull from a database... I can pull an array, but I want to just be able to pull one item instead of all of them... I know somehow you can do this with page.php?id=x... but can't figure it out... any help greatly appreciated, thanks, Matt -- PHP General Mailing List (http:

Re: [PHP] Timezone and time() and date()

2004-01-07 Thread Richard Davey
Hello Manuel, Wednesday, January 7, 2004, 5:48:27 PM, you wrote: MVA> How does the timezone of the server affects the behavior of the functions MVA> time and date. Quite simply, if you don't provide date() with a timestamp then it will use the local servers timestamp instead. This will be whatev

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Chris Hayes
At 18:43 7-1-04, you wrote: Hi! I wanted to know is is there a way to configure PHP to make it not be affected when the web user tamper with the values in the post string after a webpage is submitted or something. (Further explanation below) I noticed when I use the hidden html input tag wi

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Richard Davey
Hello Scott, Wednesday, January 7, 2004, 5:43:31 PM, you wrote: SF>I noticed when I use the hidden html input tag with hidden data in it SF> then when I click the submit button to submit the webpage, the hidden data SF> then show up in the URL address. Fine, no problem. But I noticed one O

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox

2004-01-07 Thread Matt Matijevich
[snip] I noticed when I use the hidden html input tag with hidden data in it then when I click the submit button to submit the webpage, the hidden data then show up in the URL address. [/snip] I think if you just change the request method to post, the data will not show up in the url. -- PHP

php-general Digest 7 Jan 2004 17:51:12 -0000 Issue 2517

2004-01-07 Thread php-general-digest-help
php-general Digest 7 Jan 2004 17:51:12 - Issue 2517 Topics (messages 173950 through 173988): mail() 173950 by: Anthony Ritter Re: Apache per directory setting 173951 by: Chris Lee 173953 by: umesh 173954 by: Chris Lee 173961 by: Jason Wong INSERT int

[PHP] Timezone and time() and date()

2004-01-07 Thread Manuel Vázquez Acosta
Hi all: How does the timezone of the server affects the behavior of the functions time and date. Manu. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Scott Fletcher
Hi! I wanted to know is is there a way to configure PHP to make it not be affected when the web user tamper with the values in the post string after a webpage is submitted or something. (Further explanation below) I noticed when I use the hidden html input tag with hidden data in it then w

[PHP] multibyte/multilingual support

2004-01-07 Thread Aditya Ivaturi
We have a CMS which is written is based on php & mysql. Recently we received a request to support multiple languages so that sites in that particular laguage can be created. I did some search on the google and it seems I have to build in multibyte support for php and mysql. Mbstring (http://us3.php

RE: [PHP] (OT?) form question

2004-01-07 Thread Jay Blanchard
[snip] This may be more of an HTML question - can't find anything in the php manual, but I may not know where to look. Is it possible to put the cursor into a form element when a page loads without using javascript? [/snip] Your (not what you wanted to hear) answer is http://www.w3.org/TR/html

[PHP] (OT?) form question

2004-01-07 Thread craig
Hi All, This may be more of an HTML question - can't find anything in the php manual, but I may not know where to look. Is it possible to put the cursor into a form element when a page loads without using javascript? Thanks, Craig -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] POST_QUERY STRING without letting php to parse it.

2004-01-07 Thread Mike Migurski
>I want to get the POSTED data as it is without letting php to parse it. You may be thinking of $HTTP_RAW_POST_DATA. You should set the always_populate_raw_post_data config option someplace if you want to use it reliably, though. See "configuration directives" in the manual. -

Re: [PHP] Very confusing problem!

2004-01-07 Thread CPT John W. Holmes
From: "Aaron Wolski" <[EMAIL PROTECTED]> > Fatal error: Call to a member function on a non-object in > /services/webpages/a/t/somedomain.com/secure/Store/index.php on line 140 > > The line of code is this: > > $paging->query("SELECT * FROM ProductTable"); > > At the top of the page I have this: >

[PHP] POST_QUERY STRING without letting php to parse it.

2004-01-07 Thread nabil
Greeting ; I want to get the POSTED data as it is without letting php to parse it. for example: if i posted the following from a form : abc=string&abc=string2&ayz=string3 I want to get the both abc values ... I tried extract function and all global arrays and $_POST . PLEASE NOTE that I d

RE: [PHP] Very confusing problem!

2004-01-07 Thread Jonathan Wilkes
no problem :-) it's an easy one to make Jonathan -Original Message- From: Aaron Wolski [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 15:36 To: Jonathan Wilkes Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Very confusing problem! Ahhh! You rock my man! I left out one single line w

RE: [PHP] Very confusing problem!

2004-01-07 Thread Aaron Wolski
Ahhh! You rock my man! I left out one single line when I copied! What a dolt. Thanks so much!!! Aaron > -Original Message- > From: Jonathan Wilkes [mailto:[EMAIL PROTECTED] > Sent: January 7, 2004 10:36 AM > To: Aaron Wolski > Subject: RE: [PHP] Very confusing problem! > > you

RE: [PHP] Very confusing problem!

2004-01-07 Thread Jonathan Wilkes
you need to instantiate the object before you can use it. -Original Message- From: Aaron Wolski [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 15:32 To: [EMAIL PROTECTED] Subject: [PHP] Very confusing problem! Hey guys, Having a problem with a script I have used before in another pr

[PHP] Very confusing problem!

2004-01-07 Thread Aaron Wolski
Hey guys, Having a problem with a script I have used before in another project. First off. this is the error I am getting: Fatal error: Call to a member function on a non-object in /services/webpages/a/t/somedomain.com/secure/Store/index.php on line 140 The line of code is this: $paging->

Re: [PHP] picturing webpage

2004-01-07 Thread Raditha Dissanayake
Hi. Tough one for php since php is a server side scripting langauge as you would have no doubt seen in the list newbie guide. HTML rendering is typically a client side thing. Try java, c++ or if you are on on windows maybe even vb. Eli Hen wrote: Hello All, I wanted to know if it is possible

[PHP] Re: Max GET size?

2004-01-07 Thread Thomas Andersen
I believe there is a limit on the length of URLs and since GET actually sends the info through the URL that limit may apply. Hope it helps, Thomas "James E Hicks III" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've seen the post_max_size in the php.ini. Is there a correspondin

RE: [PHP] Max GET size?

2004-01-07 Thread Jay Blanchard
[snip] I've seen the post_max_size in the php.ini. Is there a corresponding get_max_size? I couldn't find anything about this anywhere in the php.ini or apache.conf. I want to send a lot of information via header("Location: http//server.com/program.php?val[]=1") Is there any limit on size of

[PHP] Max GET size?

2004-01-07 Thread James E Hicks III
I've seen the post_max_size in the php.ini. Is there a corresponding get_max_size? I couldn't find anything about this anywhere in the php.ini or apache.conf. I want to send a lot of information via header("Location: http//server.com/program.php?val[]=1") Is there any limit on size of GET me

Re: [PHP] Re: hacking sf

2004-01-07 Thread Mat Harris
i have just had a look and although it looks very nice, it is restricted to PgSQL which I do not use (MySQL only). thanks for the suggestion tho Manuel, I am sure I will find a use for that peticular project some other time :) cheers mat On Wed, Jan 07, 2004 at 02:39:56 +, Mat Harris wrote:

Re: [PHP] Re: hacking sf

2004-01-07 Thread Mat Harris
i noticed 'tpurdue' on the rcs tags above some very nice php code. if he's still something to do with it, i'll give it a go. everyone says sourceforge is hard to install, makes you wonder why such a slick organisation would release such an unpolished source. suppose that they've got to release it

[PHP] Re: hacking sf

2004-01-07 Thread Manuel Lemos
Hello, On 01/07/2004 11:08 AM, Mat Harris wrote: I have just downloaded the sourceforge source from sf.net and I am trying to hack it witohut much luck. The login mechanism just doesn't seem to work. It uses manually set cookies instead of inbuild session stuff and I never got it to work like that

Re: [PHP] localhost mail

2004-01-07 Thread Richard Davey
Hello Anthony, Wednesday, January 7, 2004, 1:53:51 PM, you wrote: AR> In my php.ini file I have configured the SMTP to the name of the ISP's email AR> server. AR> However, when testing the same script out locally on Apache Server: I get AR> the form box, enter the data but I do not receive an em

[PHP] Re: i need help help with include

2004-01-07 Thread Sven
hi, is this useful? hth SVEN Php schrieb: Hi I created a directory and files 3 directory's down root/dir1/dir2/dir3/files now i need to include my function file out of the root root/dir/funtionfile How do i do this? I cannot create a htacess file on this server nor set my include path.

Re: [PHP] i need help help with include

2004-01-07 Thread Marek Kilimajer
include('../../../functionfile'); or something similar PHP wrote: Hi I created a directory and files 3 directory's down root/dir1/dir2/dir3/files now i need to include my function file out of the root root/dir/funtionfile How do i do this? I cannot create a htacess file on this server nor

Re: [PHP] i need help help with include

2004-01-07 Thread Richard Davey
Hello, Wednesday, January 7, 2004, 2:13:03 PM, you wrote: P> now i need to include my function file out of the root P> root/dir/funtionfile P> How do i do this? P> I cannot create a htacess file on this server nor set my include path. Err.. include("/root/dir/functionfile.php"); :) You cou

Re: [PHP] Verifying a url

2004-01-07 Thread Marek Kilimajer
There is a "official" variable - $_SERVER['HTTPS'] - that is defined only if https protocol is used. Ivo Pletikosic wrote: It did not work for me but since I have only one http port and one https port on my server i use instead if( $_SERVER['SERVER_PORT'] == "80" ) echo 'http'; C. -Origi

[PHP] i need help help with include

2004-01-07 Thread PHP
Hi I created a directory and files 3 directory's down root/dir1/dir2/dir3/files now i need to include my function file out of the root root/dir/funtionfile How do i do this? I cannot create a htacess file on this server nor set my include path. Can anyone help please Thanks -- PHP Gen

[PHP] localhost mail

2004-01-07 Thread Anthony Ritter
Using php/apache/mysql on win 98 I am testing an mail script. The script has a .html form which receives the text input and then a .php script to execute the variables in a mail() function. When I publish both files - the .html and .php - to my ISP's server and enter the data and hit submit I r

[PHP] hacking sf

2004-01-07 Thread Mat Harris
I have just downloaded the sourceforge source from sf.net and I am trying to hack it witohut much luck. The login mechanism just doesn't seem to work. It uses manually set cookies instead of inbuild session stuff and I never got it to work like that. I don't know exatcly why but the cookie just ne

Re: [PHP] Apache per directory setting

2004-01-07 Thread Jason Wong
On Wednesday 07 January 2004 14:18, Chris Lee wrote: > >You need to use: > > > > php_value register_globals 1 > > I tried, but still fail, phpinfo still show > register_globals Off Off Well, it works for me. What versions of apache/php are you using? -- Jason Wong -> Gremlins Associates -> www

[PHP] picturing webpage

2004-01-07 Thread Eli Hen
Hello All, I wanted to know if it is possible to picture a webpage via PHP. By "picturing" I mean that the program can generate a picture, a view, out of the page URL given. (Like sometimes you have in search engines, that you see the site URL and besides is the picture of the first page of the si

[PHP] Re: Error/ Warning messages in log files (OS 121) and (OS 64)

2004-01-07 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > (Relisted as no response from over Xmas period) > > Hi, > > I am having a real problem with error messages posted in the error.log file > > in the Apache directory. I have been doing lots of searches to find a > > solution and it seems

[PHP] Suexec/SafeMode Hybrid [repost]

2004-01-07 Thread Dan Mahoney
So it's, at the time of this writing, 4:12 AM. My apologies for misposting this into a previous thread, previously. I was looking at my webserver configuration. I am in love with Suexec. It's a gift from god for web hosts. Not only does it secure your directories, but as a bonus it forces your

Re: [PHP] Verifying a url

2004-01-07 Thread Christophe Chisogne
Kelly Hallman wrote: $is_secure = ($_SERVER['SERVER_PORT']==443) ? true : false ; which can be written more simply $is_secure = $_SERVER['SERVER_PORT']==443; Christophe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] INSERT into mysql from dynamic drop down

2004-01-07 Thread Nitin Mehta
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 07, 2004 12:07 PM Subject: [PHP] INSERT into mysql from dynamic drop down > > Hi all, > >Right now i would like to INSERT the values from a dynamic drop down >

Re: [PHP] Cross Server, Cross Database connection W/ JOINs

2004-01-07 Thread Rory McKinley
On 6 Jan 2004 at 14:10, Jay Blanchard wrote: > Does anyone know how, if possible, to connect to two databases on two > different network servers so that join queries can be performed (without > using temporary tables)? > > I am using MySQL so mysql_pconnect() or mysql_connect() will insert a > d

Re: [PHP] Apache per directory setting

2004-01-07 Thread Chris Lee
Dear Umesh, I already restart Apache, but it didn't work. OT question: Do Apache's Directory Directive, use relative path or absolute path for matching? Beside, I am using PHP Version 4.2.3 Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww