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
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
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")'
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
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
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
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
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
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
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
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($
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...
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
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
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
--- 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
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
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
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
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
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
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
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
> $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
--- 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
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
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
--- 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
Sure glad I figured it out myself. :(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
--
+
--- 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
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 = $
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
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
--- 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
--- 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/
[ 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
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
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
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
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:
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
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
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
[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 - 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
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
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
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
[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
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
>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.
-
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:
>
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
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
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
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
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->
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
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
[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
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
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:
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
- 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
>
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
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
81 matches
Mail list logo