Sorry, had my return address set up wrong, apparently the list doesn't like
that.
Actually, it appears to be caused by Daylight Savings time.
Leap years yield 143.95833
Other years yield 142.95833
At 10:07 PM 1/9/2004, Chris W wrote:
The following code doesn't do what I expect and I was w
The following code doesn't do what I expect and I was wondering if
someone could tell me why and how to make it do what I want.
$NowT = strtotime("January 9 2004");
$EventT = strtotime("June 1 2004");
print ($EventT - $NowT)/86400;
I get 143.95833
Why don't I get 144?
Chris W
--
PHP Genera
Hi,
I'm using debian-unstable.
I just installed apache-1.3 and php4.
I don't know where else to ask. I made a php test file (phpinfo.php),
containing: , and put it in ~/public_html.
When i try to see it by putting: http://127.0.0.1/phpinfo.php into
mozilla 1.2.1, mozilla changes it to http://211.2
===
This message is for the benefit of new subscribers
and those new to PHP. Please feel free to add
more points and send to the list.
===
1. If you have any queries/problems about PHP try
http://www.php.net/manual/en first
Diana Castillo wrote:
Is there any way to limit the connections so that this error never happens?
Warning: mysql_connect(): Too many connections at
/home/local/global/php/libraries/dblayer_mysql.php line 14.
The connections are already limited, that's why you get this warning.
You need to handle
DISREGARD THIS ONE
-Original Message-
From: Ralph Guzman [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 4:35 PM
To: 'Raditha Dissanayake'; 'dareal hamsta'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Sorting data into columns vertically
Here is a function that will do this, assumi
Here is a function I use. Assuming data is stored in an array called $items
you will call out horizontalTable() like this:
horizontalTable(3,600,1,3,3, $items);
Here is the horizontalTable() function code:
// $size: number of columns
// $width: table width
// $border: table border
// $cpadding:
Here is a function that will do this, assuming $items is an array you would
do the following:
// $size INTEGER
// $width INTEGER
// border INTEGER
// $cpadding INTEGER
// $cspacing INTEGER
// $data ARRAY
function horizontalTable($size, $width, $border, $cpadding, $cspacing,
$data)
{
Or this:
system("rename('/path/to/new.sh', '/path/to/old' . $today)");
-Original Message-
From: Matt Grimm [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 10:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Not working?
You can't use variables inside single quotes, either.
Thi
Use socket connection:
http://www.php.net/fsockopen
read the "User Contributed Notes" where you will find functions and
examples.
-Original Message-
From: Nabil [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 2:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] post vars not by form
Put them in a folder with .htaccess:
RewriteEngine onRewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
ReWriteRule .*\.(gif|jpg)$ - [N,F,L]
-Original Message-
From:
For debugging purposes, if you want to see all values in $_POST use this
code:
print '';
print_r($_POST);
print '';
or this:
print '';
var_dump($_POST);
print '';
-Original Message-
From: Robin Kopetzky [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 4:31 PM
To: PHP General
Hi, just wanted to pick someones brain.
I want to store some images outside the /public_html/ how ever my isp has decided that
i'm not aloud
to write files in that area. Would the next best solution that wold be as secure to
maybe put them
in a folder with a .htaccess file in it?
---
Philip J.
Hello Vincent,
On 9 Jan 2004 at 16:23, Vincent Jansen wrote:
> After xslt I end up with a html document with a souce that looks
> something like
>
>
> "http://www.w3.org/TR/REC-html40/loose.dtd";>
>
>
> dotted e (ë) works
>
>
>
I don't know if the same syntax is available on Linux, but on Solaris
I can use the 'tail -f' command to watch lines being appended to a
file from the commandline.. You might be able to do something via
passthru("tail -f $PathToSyslog");
in a frame on your page...although there might be socket
I am having an issue where a user with a MAC can't see jpegs uploaded to a
web site I built. They are getting some sort of corrupt file indicator.
All PC users are fine from what I gather.
I saw only one reference to this on the web in a forum, and it lead to no
particular answer; just a few peo
It makes perfect sense now. Thanks for clearing it up for me Chris :)
-Peter
On Fri, 2004-01-09 at 15:29, Chris Shiflett wrote:
--- Peter Vertes <[EMAIL PROTECTED]> wrote:
> Just to play devil's advocate; why would you validate data on the
> server if you have a _javascript_ that checked th
Hey,
if they are paying for this service of getting thumbnails.maybe I can
write a script that keeps on hitting their site with different random
URLs
Would be a good way to make them pay for spamming me anyway.
Whos with me?
Cheers,
-Ryan
*
Getting closer.. Did a little digging.. Th
Yep,
They might be spammers and lowlifes but they have a pretty nice program
running there.
I wrote to them twice but didnt get a replyI wonder if its because I
"kind of " said a few
bad words directed at them, their mothers, fathers and family.???
Cheers,
-Ryan
On 1/9/2004 7:10:35 PM, J
--- Peter Vertes <[EMAIL PROTECTED]> wrote:
> Just to play devil's advocate; why would you validate data on the
> server if you have a JavaScript that checked the user's input before
> it gets submitted to the server? I mean the whole point of you having
> that JavaScript is to make sure the the co
I used system call to a dos spell checker program from here
http://fmg-www.cs.ucla.edu/fmg-members/geoff/ispell.html#ftp-sites
using the places2k.txt file from the US census as the dictionary
http://www.census.gov/geo/www/gazetteer/places2k.html
-Dave
At 02:57 PM 1/9/2004, Robin Kopetzky wrote
Haven't heard of anyone doing this, and it's got to be slow but you could
consider creating a word document, invoking word, and saving/retrieving the
results. I would start with
http://www.php.net/manual/en/ref.com.php
this should show you how to invoke word from your php script since you are
on
Hi,
I have a website where the admin can create entries in a news list and
upload an associated PDF document.
I am storing the document in a MySQL database on another machine on the same
network.
For some reason, occasionaly when loading a PDF document, internet explorer
will "lock up", the Wind
Good afternoon!
I know aspell and pspell are available but pspell won't work in my Windows
environment. Does anyone know how to tie into Word's spell checker using php
or another spell check option? What I need is a way to check spelling on
city/state names and select the most appropriate if the u
Hi,
I have a website where the admin can create entries in a news list and
upload an associated PDF document.
I am storing the document in a MySQL database on another machine on the same
network.
For some reason, occasionaly when loading a PDF document, internet explorer
will "lock up", the Wind
[snip]
why would you validate data on the server
if you have a JavaScript that checked the user's input before it gets
submitted to the server ? I mean the whole point of you having that
JavaScript is to make sure the the correct data gets entered so why
bother checking it once again on the server
On Fri, 2004-01-09 at 14:22, Chris Shiflett wrote:
But, no matter what, always validate data on the server. Otherwise, it's
like being a teacher and having your students grade their own work; it
only works when everyone is honest (and I can guarantee you that won't be
the case on a public Web
--- Matt Grimm <[EMAIL PROTECTED]> wrote:
> Is there a distinct advantage to doing form validation / error checking
> on the server side using PHP?
Yes, security.
Basically, I never think of it as client-side *versus* server-side. I
think of it more like this:
1. Server-side data validation? YES
while (eregi(',\s*,',$query)):
$query = preg_replace('/,\s*,/',',NULL,', $query, -1);
endwhile;
Please don't mix the regex engines like that...it could lead to much
suffering.
instead of eregi, use preg_match.
--
paperCrane
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Thanks Kelly.
That works just like I wanted, only starting the regex engine
once. Guess I'll have to figure out lookahead.
-Craig
> -Original Message-
> From: Kelly Hallman [mailto:[EMAIL PROTECTED]
> Sent: January 9, 2004 11:24 AM
> To: craig
> Cc: Php
> Subject: Re: [PHP] not sure why
Hello,
On 01/09/2004 01:23 PM, Vincent Jansen wrote:
I'm doing some XML processing with PHP5
I'm using UTF-8 encoding
When I look at my xml doc it looks something like
dotted e (ë) works
(I hope you see a dotted e)
After xslt I end up with a html document
Hello,
On 01/09/2004 05:30 AM, Jake McHenry wrote:
Hi everyone,
Can someone point me in the right direction towards creating and
implementing XML with php? I've heard it can make things much easier
on me, and would like more info on it. Also, if anyone has any storys
from using it, might give me
Thanks for the great input guys. Sounds like I'm using a sound method now
with full server-side validation. Perhaps to make the most user- and
server-friendly forms, one could use JavaScript as a guide to the user,
alerting them to erroneous input and suggesting alternatives rather than
being rel
On Fri, 2004-01-09 at 13:07, Matt Grimm wrote:
Is there a distinct advantage to doing form validation / error checking on
the server side using PHP? That's how I've always done it because I know
PHP better than _javascript_, but wouldn't it make sense to validate as much
of your form as possi
On Fri, 9 Jan 2004, craig wrote:
> (4536,'golf tournament management',430,0,0),
> (1434,'Premium golf balls',,,0),
>
> I have to replace the blank entries (,,) with NULLs, using this regex:
> $query = preg_replace('/,\s*,/',',NULL,', $query, -1);
> after this line, only ONE of the ,, sets is repla
Sorry my bad; I read your post but I didn't understand it fully. I agree with the others; there is no theoretical limit (only physical like available memory, disk space, etc..) to the size of a string which you can pass to the md5() function.
-Pete
On Fri, 2004-01-09 at 12:29, Michael Müller
> Is there a distinct advantage to doing form validation /
> error checking on
> the server side using PHP?
The actual code you use to validate remains hidden from a potential
malicious user, while javascript code can be seen, so if there is a
hole in your error checking, it can be found easier.
T
> -Original Message-
> From: Ryan A [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 09, 2004 12:55 PM
> To: David T-G
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] picturing webpage
>
>
> Hey,
> These sons of bitches at top--sites have done this, I call
> them that coz I regularly get
I can tell you this much, .cfm is ColdFusion. And CF is somewhat similar to
PHP in it's embedded-in style of scripting.
It could be similar to how you can build a PDF. They could just take your
HTML and then use that to build a .JPG. I'm sure it's a very *expensive*
process (server & CPU -wise) t
Hello,
On 01/09/2004 04:07 PM, Matt Grimm wrote:
Is there a distinct advantage to doing form validation / error checking on
the server side using PHP? That's how I've always done it because I know
PHP better than JavaScript, but wouldn't it make sense to validate as much
of your form as possible
On Fri, 2004-01-09 at 11:07, Matt Grimm wrote:
> Is there a distinct advantage to doing form validation / error checking on
> the server side using PHP? That's how I've always done it because I know
> PHP better than JavaScript, but wouldn't it make sense to validate as much
> of your form as poss
Yes, it's considered best practice to do as much client-side validation as
you can as to save your server time and load.
This doesn't mean you still shouldn't do full validation on the server-side,
but the fewer times the form is posted to your site the better.
You might want to recheck what Jav
Matt --
...and then Matt Grimm said...
%
% Is there a distinct advantage to doing form validation / error checking on
% the server side using PHP? That's how I've always done it because I know
1) I hate JavaScript.
2) Don't trust anything coming from a client.
You should be validating on the
> -Original Message-
> From: Ryan A [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 09, 2004 12:55 PM
> To: David T-G
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] picturing webpage
>
>
> Hey,
> These sons of bitches at top--sites have done this, I call
> them that coz I regularly get
Is there a distinct advantage to doing form validation / error checking on
the server side using PHP? That's how I've always done it because I know
PHP better than JavaScript, but wouldn't it make sense to validate as much
of your form as possible using JavaScript before the form was ever posted?
Hey,
These sons of bitches at top--sites have done this, I call them that coz I
regularly get spam from them.
Try this URL: http://top--sites.com/update.htm?d=spamcop.com&e=p
change spamcop to any other url...
Cheers,
-Ryan
On 1/9/2004 4:28:33 PM, David T-G ([EMAIL PROTECTED]) wrote:
> Eli --
Hi again,
I am not sure, that it is the clearest way, how to do it, but I've tried
this:
As you can see, I've added more ","s to your string to try, if it works good
and it seems, that yes...
PJ
"Craig" <[EMAIL PROTECTED]> píse v diskusním príspevku
news:[EMAIL PROTECTED]
> Hi,
>
> I have a
>mhm, I think there was a missunderstanding ;)
>I want to know, how long the input-string could be (so that the encoded
>strings, that you get, are unique)
In theory, you are limited by the fact that the MD5 message digest is 128
bits long, so collisions are /possible/, but not /probable/. In prac
No limit for the input string
-Message d'origine-
De : Michael Müller [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 9 janvier 2004 18:29
À : [EMAIL PROTECTED]
Objet : Re: [PHP] md5() and string-length?
mhm, I think there was a missunderstanding ;)
I want to know, how long the input-string
On Saturday 10 January 2004 01:29, Michael Müller wrote:
> mhm, I think there was a missunderstanding ;)
> I want to know, how long the input-string could be (so that the encoded
> strings, that you get, are unique)
Basically, as long as you like (within memory constraints).
--
Jason Wong -> Gre
On Fri, 2004-01-09 at 10:29, Michael MÃller wrote:
> mhm, I think there was a missunderstanding ;)
> I want to know, how long the input-string could be (so that the encoded
> strings, that you get, are unique)
I don't think there is a limit, theoretically. In practice you might
have other constrai
mhm, I think there was a missunderstanding ;)
I want to know, how long the input-string could be (so that the encoded
strings, that you get, are unique)
Michael
Hi Craig,
the mistake is in regex, because you replace only the pair of "," with
",NULL,"... So in case, that there are tree "," in row, there is only one
pair and it means one replacing..
For example, when your string is like this: (12345) //two pair of ",,"
the result is (12345,NULL,,NULL,)
Hi Marek,
I came up with this hack, which seems to work:
$query = "SELECT name, value FROM config WHERE site = '$site' ORDER BY name,
seq";
$result = mysql_query($query)
or die("Query failed : " . mysql_error());
$conf = array ();
$last = "";
while ($line = mysql_fetch_array($result, MYSQL_A
I think it's because all headers must be sent BEFORE doing anything else ...
Scott Fletcher wrote:
Hi!
The login page where the HTTP Authentication would pop-up asking the web
user to enter the user id and password to log in. I'm using the PHP's
$_SERVER['PHP_AUTH_USER'] and it work okay in
This should be what you need:
if(!is_array($conf[$name])) $conf[$name] = array($val);
else $conf[$name][] = $val;
Cameron B. Prince wrote:
Hey guys,
I'm making progress on my perl to PHP conversion project but I need some
help...
I have a configuration table in MySQL made up like this:
CREATE T
Hi,
I have a text file that I have to parse and insert into a db.
these are a couple of sample lines (they are part of the
variable $query)
(4536,'golf tournament management',430,0,0),
(1434,'Premium golf balls',,,0),
I have to replace the blank entries (,,) with NULLs,
and I am using this rege
It's always a 32 character string.
http://us4.php.net/manual/en/function.md5.php
-Peter
On Fri, 2004-01-09 at 11:30, Michael Müller wrote:
Hi,
is anybody here who knows the max_length of a string which is encoded by
md5()?
thx, Michael
Berlin, Germany
--
perl -e 'print pack("H*", "707
Hi,
is anybody here who knows the max_length of a string which is encoded by
md5()?
thx, Michael
Berlin, Germany
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
The login page where the HTTP Authentication would pop-up asking the web
user to enter the user id and password to log in. I'm using the PHP's
$_SERVER['PHP_AUTH_USER'] and it work okay in both Internet Explorer and
Gecko browsers, like Mozilla for example. What I had discovered is that
w
Hi there, Jake,
On 9 Jan 2004 at 2:30, Jake McHenry wrote:
> Can someone point me in the right direction towards creating and
> implementing XML with php? I've heard it can make things much easier on
> me, and would like more info on it. Also, if anyone has any storys
> from using it, might give
On 9 Jan 2004 at 8:20, Ryan A wrote:
> I dont know if this is the right way to do this, so please have a looksee
> and tell me. Its working perfectly well...but will I have problems if I
> try it on a large email list or will it hog resourcesetc? ANY advice
> appreciated.
One step at a time,
Hello Rolf,
On 9 Jan 2004 at 0:51, Rolf Berkenbosch wrote:
> I have a big problem with the mail function in a php script.
> If I run this script with root access, the mail function is working.
> If I try to run it like http://www.i-s-u.nl/test.php it won't work.
> What is happening, what can
Hey guys,
I'm making progress on my perl to PHP conversion project but I need some
help...
I have a configuration table in MySQL made up like this:
CREATE TABLE config (
code mediumint(9) NOT NULL auto_increment,
site varchar(32) NOT NULL default '',
name varchar(64) NOT NULL default '',
> > Hi!
> >
> >
> > %
> > % 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
Don't know if this is exactly what you're looking for but this might be
what you're after. It was posted on Freshmeat
On Fri, 2004-01-09 at 08:44, Vincent Jansen wrote:
> I see this using MSIE 6
> But in Mozilla 1.5 I get ë for ë
>
> I'm hoping this is fixable without changing browser settings
Do you have this page accessible via the web that i can take a look at
it.
--
Ray
--
PHP General Mailing List (http:
On Fri, 2004-01-09 at 10:05, Carlton L. Whitmore wrote:
I'm using the root user to access the file so rights aren't an issue.
Actually it is an issue because PHP is not running with root privileges (at least I hope you haven't changed it and made it run with root privileges; that would
I see this using MSIE 6
But in Mozilla 1.5 I get ë for ë
I'm hoping this is fixable without changing browser settings
-Original Message-
From: Ray Hunter [mailto:[EMAIL PROTECTED]
Sent: vrijdag 9 januari 2004 16:34
To: 'Php-general'
Subject: Re: [PHP] XML/HTML encoding?
On Fri, 2004-0
> -Original Message-
> From: David T-G [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 09, 2004 10:29 AM
> To: PHP General list
> Cc: Eli Hen
> Subject: Re: [PHP] picturing webpage
>
>
> Eli --
>
> ...and then Eli Hen said...
> %
> % Hello All,
>
> Hi!
>
>
> %
> % I wanted to kno
On Fri, 2004-01-09 at 08:23, Vincent Jansen wrote:
> I'm doing some XML processing with PHP5
> I'm using UTF-8 encoding
> When I look at my xml doc it looks something like
>
>
>
> dotted e (ë) works
>
>
> (I hope you see a dotted e)
> After xslt I end up with a
On Fri, 2004-01-09 at 08:22, Jake McHenry wrote:
> It's pretty much for data organization, right?
yes, it is a method for organizing data into a standard format that is
platform independent.
> I do a lot of importing and exporting to/from excel. I belive it could
> help me out here.
Perhaps.
>
Eli --
...and then Eli Hen said...
%
% Hello All,
Hi!
%
% 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
Hmmm... An interesting concept.
% of the page URL given. (Like sometimes you have in sear
On Fri, 2004-01-09 at 08:05, Carlton L. Whitmore wrote:
> Ray,
> I'm using the root user to access the file so rights aren't an issue.
> I want to display the file thru a webserver. I'd like the page to
> refresh so I can watch the activity coming in from my SonicWall router.
> I don't mind watchi
I'm doing some XML processing with PHP5
I'm using UTF-8 encoding
When I look at my xml doc it looks something like
dotted e (ë) works
(I hope you see a dotted e)
After xslt I end up with a html document with a souce that looks
something like
Not sure. Just asking. I haven't used it before and don't really know
what it's about. I've read about it on xml.com. Either nothing sank
in, or I'm just confused.
It's pretty much for data organization, right?
Almost all of the documentation I've read on it deals with asp. I know
it is used with
Ray,
I'm using the root user to access the file so rights aren't an issue.
I want to display the file thru a webserver. I'd like the page to
refresh so I can watch the activity coming in from my SonicWall router.
I don't mind watching all the activity coming in on that syslog file,
maybe later I c
On Fri, 2004-01-09 at 00:30, Jake McHenry wrote:
> Can someone point me in the right direction towards creating and
> implementing XML with php? I've heard it can make things much easier
> on me, and would like more info on it. Also, if anyone has any storys
> from using it, might give me an idea o
On Fri, 2004-01-09 at 07:28, Carlton L. Whitmore wrote:
> I didn't make my last request very clear. I used lastlog as an example,
> but what I really want to do is open a syslog file (text file), that is
> coming in from a VPN box.
That is easy enough to do if you have access to the syslog file.
I didn't make my last request very clear. I used lastlog as an example,
but what I really want to do is open a syslog file (text file), that is
coming in from a VPN box.
I'd like to have it displayed live so I can scan it during the day.
What is the best way to do this? Someone had suggested using
Nabil wrote:
for ($i=0 ; $iwith n records you send n http GET requets, which take a long time,
using bandwith, and needs n executions of php script on webserver2.
Why not simply creating a csv file on the fly, with all your
3fields data, and send it to the php script on the other webserver?
You can
Matt,
>From the php manual:
The restriction specified with open_basedir is actually a prefix, not a directory
name. This means that "open_basedir = /dir/incl" also allows access to "/dir/include"
and "/dir/incls" if they exist. When you want to restrict access to only the specified
directory,
check out the mssql.max_links setting in php.ini
There's a dew other settings in there 200
pete
Diana Castillo wrote:
Is there any way to limit the connections so that this error never happens?
Warning: mysql_connect(): Too many connections at
/home/local/global/php/libraries/dblayer_mysql.php li
What you trying to achieve...
Decapode Azur wrote:
hello,
Is it possible to make php scripts working like deamons
and build something like a server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Decapode Azur wrote:
Is it possible to make php scripts working like deamons
and build something like a server?
Yes.
http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-answers.html
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
[snip]
Is it possible to make php scripts working like deamons
and build something like a server?
[/snip]
*scratching chin* Anything is possible.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hello,
Is it possible to make php scripts working like deamons
and build something like a server?
--
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Ryan,
Friday, January 9, 2004, 7:20:09 AM, you wrote:
RA> Its working perfectly well...but will I have problems if I try it on a large
RA> email list or
RA> will it hog resourcesetc? ANY advice appreciated.
Stick this at the bottom of your loop (INSIDE the loop!):
set_time_limit(30);
Hello,
a have this problem. I am reading some data from another server via
http-conection for which I have used fsock_open. But sometimes, it is
possible, that reading is longer, than for example 5 seconds, and I want to
stop this reading a return false...
I found function set_time_limit, whi
On 09 January 2004 01:16, Matt Grimm wrote:
> Can anyone clarify this for me? Is open_basedir recursive or
> restricted to the exact paths specified?
This is a bit hard to find in the manual, but everything you need to know
should be at
http://www.php.net/manual/en/features.safe-mode.php#ini.ope
[snip]
1-the problem is that the 30 second of execution time expired before i
can
send even 200 records.
[/snip]
Use set_time_limit() in the page itself, requires no mod to php.ini
http://www.php.net/set_time_limit
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
Is there any way to limit the connections so that this error never happens?
Warning: mysql_connect(): Too many connections at
/home/local/global/php/libraries/dblayer_mysql.php line 14.
--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax
Diana Castillo wrote:
Can someone tell me the name of the environmental variable that tells you
the path that you are in?
http://php.net/getcwd
or for the virtual path to the script...
dirname($_SERVER['SCRIPT_NAME']);
or for the document root of the current site...
$_SERVER['DOCUMENT_ROOT']
-
Cheers Chris
> I will try to explain using your code:
>
> > Here's test3.cgi:
> > ==
> > #! /usr/local/bin/php
> > > print 'Content-type: text/html' . "\n\n";
>
> When you are running as a CGI, you can set the Content-Type header in this
Can someone tell me the name of the environmental variable that tells you
the path that you are in?
--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
http:/
> > Do you have any ideas what I should do to make both .php and .cgi
> > versions work?
>
> > Here's test3.cgi:
> > ==
> > #! /usr/local/bin/php
> > > print 'Content-type: text/html' . "\n\n";
> > session_start();
>
> Have you tried p
I was to fast on this list... I found the solution reading the manual
better ;)
...
With JPG images, two extra indexes are returned: channels and bits. channels
will be 3 for RGB pictures and 4 for CMYK pictures. bits is the number of
bits for each color.
Beginning with PHP 4.3, bits and channe
php is server side
try in javascript
-Message d'origine-
De : Louie Miranda [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 9 janvier 2004 6:12
À : [EMAIL PROTECTED]
Objet : [PHP] detecting flash in php
is there anyway of detecting flash? in php
-- -
Louie Miranda
http://www.axishift.com
I'm allowing user to upload images to a gallery. However, some user seem to
have both RGB and CMYK jpeg images. I get an error from ImageCreateFromJPEG
when the script is creating thumbnails from a CMYK jpeg. Can I somehow see
if the image is RGB or CMYK, so I know when to skip the automatic thumbn
php-general Digest 9 Jan 2004 09:50:14 - Issue 2520
Topics (messages 174065 through 174095):
open_basedir clarification
174065 by: Matt Grimm
174082 by: Matt Grimm
Re: php on linux..
174066 by: memoimyself.yahoo.com.br
Content-type vs session_start()
174067
I have the following example case:
1- More than 1000 record in my MySQL database.
2- I have to submit those record via HTTP GET or POST method.
3- I have to read the confirmation message that will be printed on the
remote page showing me that the vars have been inserted in the remote
database.
4-
1 - 100 of 103 matches
Mail list logo