Hi,
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.
?php
$hostt=localhost; $userr=ryan; $passs=pass; $db=test;
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 an idea of what I'm getting into. Is it
easy to
I have checked hotscripts/resourceindex/etc, but to no avail. I am looking
for a script where I can have several meetings and having members rsvping
which meeting they can attend.
Thanks
--
Dustin Choe
http://www.dchoe.com
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-
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'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
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 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
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
?php
print 'Content-type: text/html' . \n\n;
session_start();
Have you tried putting
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
Cheers Chris
I will try to explain using your code:
Here's test3.cgi:
==
#! /usr/local/bin/php
?php
print 'Content-type: text/html' . \n\n;
When you are running as a CGI, you can set the Content-Type header in this
way.
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']
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
[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:
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
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,
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,
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
[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
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:
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
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
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, end
Nabil wrote:
for ($i=0 ; $iNUM OF RECORDS ; $i++)
{
send_rec( $var1 , $var2 , $var3 );
}
with 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
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
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.
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 of
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
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
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
?xml version=1.0 ?
doc
textdotted e (ë) works/text
/doc
(I hope you see a dotted e)
After xslt I end up with a html document with a souce
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 watching
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
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.
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
?xml version=1.0 ?
doc
textdotted e (ë) works/text
/doc
(I hope you see a dotted e)
-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 know if it is
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,
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
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
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 just this
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 '',
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 I
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,
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 me
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
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
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 Mller 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*,
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
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
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
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,
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,)
But
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
On Fri, 2004-01-09 at 10:29, Michael Mller 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 constraints
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 -
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
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
Hi again,
I am not sure, that it is the clearest way, how to do it, but I've tried
this:
?
$query=(4536,'golf tournament management',4300,0),
(1434,'Premium golf balls'0),;
while (eregi(',\s*,',$query)):
$query = preg_replace('/,\s*,/',',NULL,', $query, -1);
endwhile;
echo
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.come=p
change spamcop to any other url...
Cheers,
-Ryan
On 1/9/2004 4:28:33 PM, David T-G ([EMAIL PROTECTED]) wrote:
Eli --
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?
-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 spam from
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
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
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
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
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)
-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 spam from
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.
The
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 Mller
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 replaced
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
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
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
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
?xml version=1.0 ?
doc
textdotted e (ë) works/text
/doc
(I hope you see a dotted e)
After
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 regex
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 Justin Patrin
--
PHP General Mailing List (http://www.php.net/)
To
--- 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
2.
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
[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
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
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
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
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
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
--- 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 correct
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,
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..
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 the
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
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
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
?xml version=1.0 encoding=UTF-8 standalone=yes?
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
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
For debugging purposes, if you want to see all values in $_POST use this
code:
print 'pre';
print_r($_POST);
print '/pre';
or this:
print 'pre';
var_dump($_POST);
print '/pre';
-Original Message-
From: Robin Kopetzky [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 4:31 PM
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-
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
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.
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)
{
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
//
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,
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
===
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
1 - 100 of 103 matches
Mail list logo