php-general Digest 7 Jan 2004 17:51:12 -0000 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 into mysql from dynamic drop down
173952 by: irinchiang.justeducation.com
173956 by: Nitin Mehta
Re: Cross Server, Cross Database connection W/ JOINs
173955 by: Rory McKinley
Re: Verifying a url
173957 by: Christophe Chisogne
173965 by: Marek Kilimajer
Suexec/SafeMode Hybrid [repost]
173958 by: Dan Mahoney
Re: Error/ Warning messages in log files (OS 121) and (OS 64)
173959 by: David Robley
picturing webpage
173960 by: Eli Hen
173976 by: Raditha Dissanayake
hacking sf
173962 by: Mat Harris
173970 by: Manuel Lemos
173971 by: Mat Harris
173972 by: Mat Harris
localhost mail
173963 by: Anthony Ritter
173969 by: Richard Davey
i need help help with include
173964 by: PHP
173966 by: Richard Davey
173967 by: Marek Kilimajer
173968 by: Sven
Max GET size?
173973 by: James E Hicks III
173974 by: Jay Blanchard
173975 by: Thomas Andersen
Very confusing problem!
173977 by: Aaron Wolski
173978 by: Jonathan Wilkes
173979 by: Aaron Wolski
173980 by: Jonathan Wilkes
173982 by: CPT John W. Holmes
POST_QUERY STRING without letting php to parse it.
173981 by: nabil
173983 by: Mike Migurski
(OT?) form question
173984 by: craig
173985 by: Jay Blanchard
multibyte/multilingual support
173986 by: Aditya Ivaturi
Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL
toolbox???
173987 by: Scott Fletcher
Timezone and time() and date()
173988 by: Manuel Vázquez Acosta
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Using php/apache/mysql
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 receive an e-mail.
In my php.ini file I have configured the SMTP to the name of the ISP's email
server.
However, when testing the same script out locally on Apache Server: I get
the form box, enter the data but I do not receive an email.
I only use one ISP. Is it possble they have two name servers and that is
why I am not receiving an e-mail when testing on Apache Server?
Thank you for any help.
Best...
Tony Ritter
--- End Message ---
--- Begin Message ---
>You need to use:
>
> php_value register_globals 1
I tried, but still fail, phpinfo still show
register_globals Off Off
Regards,
Chris Lee
--- End Message ---
--- Begin Message ---
The change of values will take place after you restart the Apache.
Try it once.
-----Original Message-----
From: Chris Lee [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Apache per directory setting
>You need to use:
>
> php_value register_globals 1
I tried, but still fail, phpinfo still show
register_globals Off Off
Regards,
Chris Lee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I didn't order any WOO-WOO ... Maybe a YUBBA ... But no WOO-WOO!
*/
--- End Message ---
--- Begin Message ---
Hi all,
Right now i would like to INSERT the values from a dynamic drop down
menu into mysql database but encountered some problem here. Values in the drop
down menu are retrieved from DB as follows:
<SNIP>
<SELECT NAME="tutor_name" CLASS="textarea">
<?
$sql = mysql_query("SELECT DISTINCT tutor_name FROM tutor");
while ($row = mysql_fetch_array($sql))
{
print "<OPTION VALUE=\"$tutor_name\" >" .$row["tutor_name"]. "</option>";
}
$result = $db->query($sql);
?>
</SELECT>
</SNIP>
-------------------------------------------------------------------------------
echo $_POST["tutor_name"];
INSERT statement:
$sql = "INSERT INTO class (class_code, tutor_name, edu_level, timetable_day,
timetable_time)
VALUES
('$class_code','$tutor_name','$edu_level','$timetable_day','$timetable_time')";
-------------------------------------------------------------------------------
I am trying to POST the values and then INSERT into DB but was not able to do
so....(all other values eg. class_code, edu_level etc...was able to be
INSERTED into DB but not "tutor_name". So, how do i insert values into DB from
a dynamic drop down and where have i gone wrong???Hope to get some help real
soon.=)
All help are greatly appreciated. Thanks in advance.
Regards,
Irin.
--- End Message ---
--- Begin Message ---
----- 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
> menu into mysql database but encountered some problem here. Values in the
drop
> down menu are retrieved from DB as follows:
>
> <SNIP>
>
> <SELECT NAME="tutor_name" CLASS="textarea">
> <?
>
>
> $sql = mysql_query("SELECT DISTINCT tutor_name FROM tutor");
> while ($row = mysql_fetch_array($sql))
> {
> print "<OPTION VALUE=\"$tutor_name\" >" .$row["tutor_name"]. "</option>";
change it to:
print "<OPTION VALUE=".$row['tutor_name']." >" .$row["tutor_name"].
"</option>";
hope that helps
> }
> $result = $db->query($sql);
>
> ?>
> </SELECT>
>
> </SNIP>
>
> --------------------------------------------------------------------------
-----
>
> echo $_POST["tutor_name"];
>
> INSERT statement:
>
> $sql = "INSERT INTO class (class_code, tutor_name, edu_level,
timetable_day,
> timetable_time)
> VALUES
>
('$class_code','$tutor_name','$edu_level','$timetable_day','$timetable_time'
)";
>
> --------------------------------------------------------------------------
-----
>
> I am trying to POST the values and then INSERT into DB but was not able to
do
> so....(all other values eg. class_code, edu_level etc...was able to be
> INSERTED into DB but not "tutor_name". So, how do i insert values into DB
from
> a dynamic drop down and where have i gone wrong???Hope to get some help
real
> soon.=)
>
> All help are greatly appreciated. Thanks in advance.
>
>
> Regards,
> Irin.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
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
> default server ('localhost:3306', per the docs) if I do not specify one.
> Specifying two servers (with the same granted user/pw combo) throws a
> syntax error. I have tested and searched, but turned up nothing so far.
> This is an experiment, but I can see where the value would be far
> ranging for those operating database server farms within their network
> (data modularization).
>
> If you have attempted this sort of (or would like to) thing I'd like to
> hear your thought, caveats, etc.
>
> TIA!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Hi Jay
We are currently developing an application that will have a set of rules dbs sitting
on a
single server while client data is stored in dbs on different servers (for performance
reasons). We are also faced with the issue of only wanting to keep one copy of the
rules dbs (to ensure consistency and ease of updating) and using these rules in
queries
involving client data - i.e. queries using databases on separate hosts.
I raised this question (either in this list, or PHP-DB, or MySQL..my memory fails me)
and the responses that I got suggested that the only viable option is keeping local
copies of the rules db on each client and keeping these updated via replication.
Currently we are developing on a single server (client and rules) but we are building
the
code so we have yet to sort out the replication but that looms ahead of us.
If there is a way to do what you suggest, I would be glad to hear about it, and if I
could I
would happily assist to the best of my meagre abilities as it would definitely make my
life
simpler.
Regards
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in this world,
those who understand binary and those who don't" (Unknown)
--- End Message ---
--- Begin Message ---
Kelly Hallman wrote:
$is_secure = ($_SERVER['SERVER_PORT']==443) ? true : false ;
which can be written more simply
$is_secure = $_SERVER['SERVER_PORT']==443;
Christophe
--- End Message ---
--- Begin Message ---
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.
-----Original Message-----
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 6:56 PM
To: Thomas Andersen
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Verifying a url
Hello Thomas,
Wednesday, January 7, 2004, 2:49:48 AM, you wrote:
TA> My web site has two different ways to be accessed. One
is through a SSL
TA> connection and the other not.
TA> Does anyone know how to check either the URL that is
being used (https would
TA> give away the SSL) or if you can check if SSL is being used?
I'm pretty sure the following would work:
if ($_SERVER['SERVER_PROTOCOL'] == "HTTP/1.1")
{
echo "Normal site";
}
--
Best regards,
Richard mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
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 users to keep their stuff
secure (i.e. by not running scripts in 777 directories, et al).
Wonderful stuff.
So then I looked at suexec with php, which pretty much breaks embedded php
scripts, and requires that most freely available scripts be modified in a
now-unfamiliar and non-standard way, i.e. sticking a php shebang in the
scripts. As a bonus, it's slower.
So then I found suPHP, and while it looked interesting at first, as it
comes with an apache module, and a suid program, I thought it was exactly
what I needed.
Nope, it still runs in CGI mode. I think there's a couple benefits, but I
still think that if PHP had always been a CGI, it would have NEVER gained
the popularity it has.
So then I had a thought. What about a stub program, similar to suexec,
that instead of running all the php scripts and the php CGI binary,
merely handles all the file operations that php would. Ideally it would
speak to the httpd via pipes or something.
This would be similar to the way safe mode presently operates (as in, it
would do the same permissions checks on file reads for UID and GID, except
that it would, at least for file writes (and optionally, for reads), fork
a quick process that handled the file operations. Also, it could possibly
do more than UID/GID checks, and actually check permissions, ala suexec.
Am I making no sense here? Or is this actually doable?
I tend to think if it WAS feasible some other company would have done it
and would be selling it now, but in simple terms, I'd love to know why it
CAN'T be done.
I've thought about the fact that "you're still slowed down by the forking
of a separate process", but I'd much rather fork only on file writes,
while things like SQL-based message boards getting thousands of hits a day
still run at full-speed.
This would also solve the biggest bane of my existence, the fact that I
can't find a half-decent way of making it so that users can't read each
others' MySQL login info, usually sitting in the config.php of some
script. This would solve that too. (Safe mode would solve it, but safe
mode is known for breaking too much else.)
Am I insane? If so, please tell me why.
How much would I have to donate to the apache foundation to get this
feature written if it is feasible? :)
-Dan Mahoney
--
"Goodbye my peoples. I'll miss each one of you. Sniff-Sniff I now know
the true meaning of love. Thank you Sniff-Sniff. You are all in my
heart."
-Chris D.
--------Dan Mahoney--------
Techie, Sysadmin, WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144 AIM: LarpGM
Site: http://www.gushi.org
---------------------------
--- End Message ---
--- Begin Message ---
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 obvious that many people are see this issue but I can
>
> find no resolution or explanation for the entries (see below).
>
> PHP Bug #25570 seemed to be a solution but the version of php I am using is
>
> 4.3.2 which is claimed to not exhibit the bug described in 25570.
>
> The system is running on a Win2K box, and we are using php, sql and Apache.
>
>
> Anyone out there have an idea of how to fix this issue?
>
> Thanks
>
> Trevor
>
>
>
>
>
> Some system info:
>
> System Windows NT UKRBCSR01 5.0 build 2195
>
> Build Date May 28 2003 15:06:05
>
> Server API Apache 2.0 Handler
>
> Apache/2.0.47 (Win32) PHP/4.3.2
>
> This is the more worring of the issues:
>
> 21:18:49 2003 [notice] Parent: child process exited with status
>
> 4294967295 -- Restarting.
>
>
>
> But I am assuming that some or all of these are related.
>
> 21:19:44 2003 [warn] (OS 121)The semaphore timeout period has expired. :
>
> winnt_accept: Asynchronous AcceptEx failed.
>
> 00:50:58 2003 [warn] (OS 64)The specified network name is no longer
>
> available. : winnt_accept: Asynchronous AcceptEx failed.
One or more of the results from
http://www.google.com/search?q=Asynchronous+AcceptEx+failed
may provide some insight into the problem?
Cheers
--
Quod subigo farinam
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
--- End Message ---
--- Begin Message ---
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 site).
What technologies I use for that? Is it possible with PHP?
-thanks, Eli
--- End Message ---
--- Begin Message ---
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 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 site).
What technologies I use for that? Is it possible with PHP?
-thanks, Eli
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--- End Message ---
--- Begin Message ---
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 never gets set even tho the function is called
and there are no complaints.
I have put a tarball of the code on my site:
http://dev.genestate.com/projects/sf.tar.gz
Relevant code is in:
include/session.php
account/login.php
include/user.php
The login file calls session_login_valid() which
calls various functions including the set_cookie.
Please can someone give me a hint?
cheers
pgp00000.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
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. I don't
know exatcly why but the cookie just never gets set even tho the function is called
and there are no complaints.
I have put a tarball of the code on my site:
http://dev.genestate.com/projects/sf.tar.gz
Relevant code is in:
include/session.php
account/login.php
include/user.php
The login file calls session_login_valid() which
calls various functions including the set_cookie.
Please can someone give me a hint?
Sourceforge has always been an headache to install.
You may want to try GForge instead, which is the continuation of the
project as Open Source carried by Tim Purdue, one of the lead developers
that left VA when they decided to close the source of further
Sourceforge development.
http://gforge.org/
--
Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
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 somehow.
i'll have a look at gforge now.
cheers
On Wed, Jan 07, 2004 at 12:25:18 -0200, Manuel Lemos wrote:
> 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. I don't
> > know exatcly why but the cookie just never gets set even tho the function is called
> > and there are no complaints.
> >
> > I have put a tarball of the code on my site:
> > http://dev.genestate.com/projects/sf.tar.gz
> > Relevant code is in:
> > include/session.php
> > account/login.php
> > include/user.php
> >
> > The login file calls session_login_valid() which
> > calls various functions including the set_cookie.
> >
> > Please can someone give me a hint?
>
> Sourceforge has always been an headache to install.
>
> You may want to try GForge instead, which is the continuation of the
> project as Open Source carried by Tim Purdue, one of the lead developers
> that left VA when they decided to close the source of further
> Sourceforge development.
>
> http://gforge.org/
>
> --
>
> Regards,
> Manuel Lemos
>
> Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
pgp00001.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
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 +0000, 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 somehow.
>
> i'll have a look at gforge now.
>
> cheers
>
> On Wed, Jan 07, 2004 at 12:25:18 -0200, Manuel Lemos wrote:
> > 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. I don't
> > > know exatcly why but the cookie just never gets set even tho the function is
> > > called
> > > and there are no complaints.
> > >
> > > I have put a tarball of the code on my site:
> > > http://dev.genestate.com/projects/sf.tar.gz
> > > Relevant code is in:
> > > include/session.php
> > > account/login.php
> > > include/user.php
> > >
> > > The login file calls session_login_valid() which
> > > calls various functions including the set_cookie.
> > >
> > > Please can someone give me a hint?
> >
> > Sourceforge has always been an headache to install.
> >
> > You may want to try GForge instead, which is the continuation of the
> > project as Open Source carried by Tim Purdue, one of the lead developers
> > that left VA when they decided to close the source of further
> > Sourceforge development.
> >
> > http://gforge.org/
> >
> > --
> >
> > Regards,
> > Manuel Lemos
> >
> > Free ready to use OOP components written in PHP
> > http://www.phpclasses.org/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
pgp00002.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
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 receive an e-mail.
In my php.ini file I have configured the SMTP to the name of the ISP's email
server.
However, when testing the same script out locally on Apache Server: I get
the form box, enter the data but I do not receive an email.
I only use one ISP. Is it possble they have two name servers and that is
why I am not receiving an e-mail when testing on Apache Server?
Thank you for any help.
Best...
Tony Ritter
--- End Message ---
--- Begin Message ---
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 email.
AR> I only use one ISP. Is it possble they have two name servers and that is
AR> why I am not receiving an e-mail when testing on Apache Server?
It's possible your ISP doesn't allow relaying of mail via their SMTP
server from your host, or they have a different SMTP server for this
purpose?
--
Best regards,
Richard mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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 could store the root directory in a variable or something to make
life a bit easier for yourself:
unset($basedir);
$basedir = "/root/dir";
include("$basedir/file1.php");
include("$basedir/deeper_directory/file2.php");
etc
Or you could use a constant to do the same thing, but unsetting the
variable at the start protects it from over-writing via passthru data.
--
Best regards,
Richard mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
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 set my include path.
Can anyone help please!!!!
Thanks
--- End Message ---
--- Begin Message ---
hi,
is this useful?
<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
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.
Can anyone help please!!!!
Thanks
--- End Message ---
--- Begin Message ---
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 method?
James Hicks
--- End Message ---
--- Begin Message ---
[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 GET method?
[/snip]
Not on the method itself, but the length of the URL. 255 characters
IIRC, but that could have changed by now...
--- End Message ---
--- Begin Message ---
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 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 method?
>
> James Hicks
--- End Message ---
--- Begin Message ---
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->query("SELECT * FROM ProductTable");
At the top of the page I have this:
require("../paging_class.php");
I can post the paging_class.php file if anyone needs but it hasn't
changed from when I used it on another site. The only thing that has
changed is server type (current: Linux previously: BSD). Both are
running PHP 4.3.2.
ANY help is desparately appreciated!!!!!
Thanks so much.
Aaron
--- End Message ---
--- Begin Message ---
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 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->query("SELECT * FROM ProductTable");
At the top of the page I have this:
require("../paging_class.php");
I can post the paging_class.php file if anyone needs but it hasn't
changed from when I used it on another site. The only thing that has
changed is server type (current: Linux previously: BSD). Both are
running PHP 4.3.2.
ANY help is desparately appreciated!!!!!
Thanks so much.
Aaron
--- End Message ---
--- Begin Message ---
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 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 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->query("SELECT * FROM ProductTable");
>
> At the top of the page I have this:
>
> require("../paging_class.php");
>
> I can post the paging_class.php file if anyone needs but it hasn't
> changed from when I used it on another site. The only thing that has
> changed is server type (current: Linux previously: BSD). Both are
> running PHP 4.3.2.
>
>
> ANY help is desparately appreciated!!!!!
>
> Thanks so much.
>
> Aaron
>
--- End Message ---
--- Begin Message ---
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 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 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 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->query("SELECT * FROM ProductTable");
>
> At the top of the page I have this:
>
> require("../paging_class.php");
>
> I can post the paging_class.php file if anyone needs but it hasn't
> changed from when I used it on another site. The only thing that has
> changed is server type (current: Linux previously: BSD). Both are
> running PHP 4.3.2.
>
>
> ANY help is desparately appreciated!!!!!
>
> Thanks so much.
>
> Aaron
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
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:
>
> require("../paging_class.php");
>
> I can post the paging_class.php file if anyone needs but it hasn't
> changed from when I used it on another site. The only thing that has
> changed is server type (current: Linux previously: BSD). Both are
> running PHP 4.3.2.
Do you have
$paging = new paging_class();
anywhere to make $paging an actual object? According to the error, you
don't, or it's type has been changed. Maybe there was an error in the
required file that you're not seeing?
---John Holmes...
--- End Message ---
--- Begin Message ---
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 don't want to use GET method.
Please Advice
Nabil
--- End Message ---
--- Begin Message ---
>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.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
[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/html4/interact/forms.html#h-17.11
--- End Message ---
--- Begin Message ---
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.net/mbstring) claims to support multiple languages with a
caution saying it might not work properly.
After further research it seems unicode might be the way to go, since
unicode can represents all characters (in all languages) with integers,
which in turn can be handled in php as it has excellent integer support. But
again since all the data is store in mysql we need unicode support for mysql
too and it has 2 formats (http://www.mysql.com/doc/en/Charset-Unicode.html)
usc-2 (for storing data) and utf-8 (for encoding). Finally, we decide to
stick with utf-8 as it could support more languages than usc-2 and also
since php has utf-8 support.
Our application evolved over time and it was not very long ago that we
introduced a new DB layer. Even though efforts were made to change code to
use this new DB layer, I am afraid there still might be instances where we
use the php mysql functions to access db. We use egexes heavily and do a lot
of text manipulation, so that rules out any chance of being closer to utf-8.
So I am wondering if there are any good approaches to this issue i.e. modify
the existing application code minimally to handle utf-8 (that doesn't sound
right!) and make it all transparent to the presentation layer. Any
suggestions or comments are welcome.
Turi
http://aijalon.net
--- End Message ---
--- Begin Message ---
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 when I click the submit button to submit the webpage, the hidden data
then show up in the URL address. Fine, no problem. But I noticed one
problem, I can changed the value in the URL toolbar of the web-browser and
get different result on the webpage. I know it is where $_REQUEST[],
$_GET, etc. come into play. So, is there a way to keep that $_REQUEST[],
$_GET[] data unchanged? Does this require the php.ini configuration or
what?
Thanks,
FletchSOD
--- End Message ---
--- Begin Message ---
Hi all:
How does the timezone of the server affects the behavior of the functions
time and date.
Manu.
--- End Message ---