You can do recursive matching using the (?R) syntax in preg functions (Perl
Compatible Regular Expression).
- Original Message -
From: "Christopher William Wesley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Cameron Just" <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 1:01 AM
Subj
Very nice. I was going to suggest:
But uhhh, your way is much nicer :]
- Original Message -
From: "Richard Archer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 4:04 AM
Subject: Re: [PHP] Regular Expression Challenge
> At 11:30 AM +1000 26/3/02, Cameron Ju
$i = 1;
foreach ($months) {
// do some things
$i++;
}
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 26, 2002 9:49 AM
>
> I have a foreach loop, where I execute some commands for each
> element in
> a certain array. One thing I would l
preg syntax is different to ereg (which you are using). You also need to
provide an output variable.
This would work:
preg_match( "/[0-9]+/", $input, $output );
--
Matt
"Carl E Shmidt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTE
y out for their own selfish ends, as
you have clearly demonstrated, and they don't care about anyone else.
You should be ashamed, but I'm certain that you are not.
Matt Friedman
Web Applications Developer
-Original Message-
From: Alienator [mailto:[EMAIL PROTECTED]]
Sent: Sa
I think if you look at today's date, you'll realize why the silly
picture on your phpinfo today.
Good one guys! That's what I love about php - it's about enjoying
programming and making it fun.
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
-Origin
It doesn't like the ";" at the end of the statement. I noticed this a
while ago. I'd prefer if it didn't choke on the ";" but it seems to.
It's probably more correct to have the ";" there - I don't know why it
chokes when going
In my opinion, you should always single quote everything, including numerics. Why?
Say you have a:
$sql = "Delete from table where id=$id";
where id is expected to be numeric.
What if the variable id ends up containing:
7 or id>0
So the sql would end up as
$sql = "Delete from table where id=
You should use $HTTP_POST_VARS (or $_POST) all of the time. There's security risks in
using register_globals. It's not risky in all cases. But register_globals will allow
arbitrary variables to be added to into the name space of your script by simply
putting them on the uri. Code not expectin
Is it an issue when
concurrency is high? The manual says "you may have to"; I am looking for
some clarification as to when exactly you "may have to" follow the
advice.
Thanks as always,
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.php.net/manual/en/function.preg-quote.php
Found this in the manual in about 3 secs.
Try to check the manual first before posting. ;-)
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent
sue? Is it an issue when
concurrency is high? The manual says "you may have to"; I am looking for
some clarification as to when exactly you "may have to" follow the
advice.
Thanks as always,
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
--
PHP General Mailing
it
for a lock on the lock file and then go on with any processing on the
actual data file. After the processing is done release the lock on the
lock file. Perhaps there are better ways to do this.
What do you think?
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
-Original Me
You need a comma between $fname and $lname eg:
"Lmlweb" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm just curious:
>
> if I use within my html codes:
>
> , I get an error message telling me:
>
> Parse error: parse error, expecting `','' or `';''
>
> Ho
windows exploror. as part of the file type
options.
I can tell you where exactly if you want to go round updating all windows/IE
users machines. I'll do mine for you as a start ;)
matt
---
--
PHP General Mailing List (http://www.php.ne
I just did this on a Linux box running Red Hat 7.2 last Friday. I used several
sources on the web and wrote up my exact steps and posted them at
http://www.php-faq.com/as400.html The other sources are quoted in that document.
Keep in mind, it's not the final version of the document, and I'd
http://bugs.php.net/bug.php?id=15568
This bug has been fixed in the latest RC - if you really need this
functionality, you could use RC2 available at www.php.net/~derick or wait
until 4.2.0 is realeased which is due to be on the 22nd of this month.
Matt
"Mark W. Humphries" <[EM
> -Original Message-
> From: Carlos Fernando Scheidecker Antunes
> [mailto:[EMAIL PROTECTED]]
>
> function SearchOrders() {
> global $Orders;
> global $HTTP_POST_VARS;
>
> $index = count($HTTP_POST_VARS);
>
> for($i=1; $i <= $index; $i++) {
The trouble is here . You sh
Any ideas why this won't output anything
table;
}
}
echo test::showName();
?>
I have other classes along the similar lines but a lot bigger which work
fine.
I'm also using phplib which has a lot of this stuff going on...
I remeber seeing something regarding it in the manual but i don
ROTECTED]]
> Sent: 18 October 2001 14:39
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] class problems
>
>
> Try to create an instant of the class like this:
> class test
> {
> var $table = "val";
>
> function showName()
> {
> return $this->table;
>
, without having to
add another if check as you're doing above. This also lets you know
easilly which step failed:
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Move it outside the document root
or put a .htaccess file inside the dir to deny access. This will still allow
system access but will prevent other fopen.
M:
> In a PHP application using MySQL i have to connect the database using
>
> $iDBhandle = mysql_connect( $sDBhost, $sDBuser, $sDBpsw );
; $class[$index]->text;
> $class[$index]->array[0];
>
> how can I do this?
I'd use usort() instead. http://www.php.net/manual/en/function.usort.php
The manual page has a couple examples for sorting objects by their member
variables.
Matt
--
PHP General Mailing List (http://w
der to tell the browser that you're sending it an image.
That's it.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I imagine that's only limited by your available bandwidth. If you try to
send emails out faster than your bandwidth will allow you'll get a slowdown
on your email server.
I use sleep() between each email to lessen the load on the server.
Matt.
- Original Message -
From
Try putting a "?" after your quantifier for "non-greedy" matching.
Something like: $the_array=split("", $html,-1);
Matt.
- Original Message -
From: "brendan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 2
> I have the above configuration installed along with mySQL, all
> works fine on
> my local machine except for error/warning messages whenever previewing the
> page in my browser where I am calling/setting a cookie variable...
>
A little more info re the error message would be useful.
Make s
> Thanks for the replies, I think it has more to do with configuration
> settings than anything else as all the scripts work fine on remote Linux
> server, it is just on my win98 set-up the problem occurs..
>
> I am looking in the php.ini, file the only reference to a tmp directory I
> c
> Well, I would do that but I don't know such an application.
> Please, can you suggest me one?
>
pkzip of course :)
M:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administr
http://www.progressive-comp.com/Lists/?l=php3-general&r=1&w=2
M:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Just found this in the manual notes
http://www.php.net/manual/en/ref.array.php
To delete an element from an array in an easy way, use
unset($array["element"]);...
Funny those... manuals
M:
> -Original Message-
> From: David Yee [mailto:[EMAIL PROTECTED]]
> Sent: 30 October 2001 19:03
object or something like that.
Matt.
- Original Message -
From: "Stefan Rusterholz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 30, 2001 8:00 AM
Subject: [PHP] Zipping a folder on a win2000 server with php4.06
Hi
Does someone out there know,
pkzip's the name.
M:
> Does someone out there know, how I can zip a folder with some files in it?
> It should be readable for Winzip.
>
> Enviroment: Win2000 Server.
> VB was available if useful.
> Additional Components (applications, dll's or whatever) could be loaded if
> needed.
>
> I didn't f
> The action for the form is only fired if the onClick="window.close() is
> removed. My question is how can I close the window and refresh or reload
> the specified window.
>
function endWindow()
{
window.opener.location.reload();
window.close();
}
Close Window
M:
--
PHP Ge
> Hello,
> I want to set member variables out of their class. The code class is:
>
>
> class translator {
>
> var $nombre;
> var $departamento;
> var $despacho;
> var $telefono;
> var $correo_electronico;
> var $pagina_personal;
>
> function translator(){
> $nombre = array("Nombre","Nam
Please find attached a very good date class.
I can't remeber where I got it from and who wrote it but it's pretty good.
M:
> --
> > Is there any way to find out the week of the month. Today is in
> the first
> > week of month.
> >
> > That is, a function like weekofmonth() which displays 1 toda
me it works fine.
Thanks in advance,
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
first element, preserving the array in the calling scope
function get_array_first($arr)
{
return array_shift($arr);
}
$first_element = get_arr_first($array);
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
http://www.php.net/manual/en/language.oop.php
This is what you want to read.
Matt.
- Original Message -
From: "Christian C." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 04, 2001 7:16 PM
Subject: [PHP] what's this???
> Hello :c)
&
I would try urlencoding the query-string in that url. Or put the url in
single quotes instead.
Just shots in the dark, but try it out.
M.
- Original Message -
From: "Tim Harvey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 10, 2001 9:44 PM
Subject: [PHP] Problem
craft and SecuritySpace.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
int("");
you may write:
print ("");
Further, you don't need parenthesis with the print statement so you can
write:
print "";
It's just a matter of preference, but I think it looks cleaner.
When concatenating several variables together into a string this ca
I'm not sure if this answers your question but it seems to me that & is
an html encoding whereas if you want to put something in the url you should
urlencode it.
This will eliminate the "&"s.
Matt.
- Original Message -
From: "GaM3R" <[EMAIL PROT
ired form data to stdout, and it'll be fed into the file that
the user saves.
For example:
First:
Seond:
Here, the form takes in two text strings, and offers them to the
browser as a file.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PRO
> on win32 i like g6ftp server
I go along with this recommendation.
Had some problems on 2k with serv-u
M:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail
r sendtohost.txt for a
simple function to handle passing the right headers.
http://www.php.net/manual/en/function.fsockopen.php
http://dodds.net/~cardinal/sendtohost.txt
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
Caveat: Don't forget to escape user input before sending to SQL. Those samples leave
that part to your imagination. Bad guys might take advantage of that :)
> http://www.google.com/search?q=php+mysql+user+authentication&b
tnG=Google+Search
>
> First hit's a winner :)
>
>
--
PHP General M
he switch loop.
E.g,
switch ($id)
{
case "foo":
case "bar":
..
..
..
default:
include ('index_page.php');
}
Then your index page goes in index_page.php, and the actual index
becomes a simple dispatching page with no content in it.
Matt
--
PHP General Mailing List (
> Hi,
> I'm writing a 404 handler and in order to report the item that
> was requested
> I was trying to get the value of HTTP_REFERER. But, it does seem
> to get set.
> Does anyone know how to find thi value? Is there a reason why it
> would not
> get set?
>
Hi
I think you're looking fo
> Hi,
> When I use HTTP_REFERER it gives me the name of the php script which is
> handling the 404's?!
>
> Should that happen?
As someone put in one of the other reply's don't rely on HTTP_REFERER.
This is set (or not) by the browser and they all have different ideas about
they want to play ball
> Ok for the question. I was under the impression that PHP would
> automatically
> select the type for the vars to use. However if I have a field in my form
> where I insert only a 4 in I'd expect the var to be an integer
> (or atleast
> some other whole number type of var). However is_int fails
> or remove the {$len} to not check for a length
>
Sorry I meant replace the above with *
m:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROT
t it's coming.
In the mean time, you have a couple options. If you only have one Person
inside a Content, you can simply say $content->person->age; If you have
more than one, they could be arranged in an array, so it becomes
$content->person['Jeroen']->age;
Another opt
On Fri, Nov 30, 2001 at 07:04:08PM -0500, Uchendu Nwachukwu wrote:
> Is there any easy way to get the filesize of an image on a remote server?
>
> Please tell me there is! TIA
It scares me that nobody has answered with filesize() yet.
Matt
--
PHP General Mailing List (http://ww
On Sat, Dec 01, 2001 at 09:55:47AM +0200, faeton wrote:
> Hello Matt,
>
> filesize() works only on local filesystems.
If you want the size of a remote file, you'll have to download it; HTTP
doesn't provide a way to query a remote file's size. FTP does, if you have
FT
On Sat, Dec 01, 2001 at 11:05:51PM +0200, faeton wrote:
> Hello Matt,
>
> Of course it does not, but as i've already said file() with strlen()
> can be used. :)
>
> MM> If you want the size of a remote file, you'll have to download it; HTTP
> MM> doesn
nths ago. It should be in PHP 4.1.0 when
it comes out shortly.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
s this a new
feature. Thoughts?
Thanks,
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
Email: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administra
This is what I had thought. I wasn't sure and needed the clarification.
Thanks as always!
Matt Friedman
-Original Message-
From: Harshdeep S Jawanda [mailto:[EMAIL PROTECTED]]
Sent: Thursday December 6, 2001 1:55 PM
To: Matt Friedman
Cc: [EMAIL PROTECTED]
Subject: Re:
t the benefits of using references as opposed to
copies. If anyone would like to elaborate on the reasons for using a
reference instead of a copy, please do so; it would be much appreciated.
Many Thanks,
Matt Friedman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
> http://groups.google.com/groups?selm=1991Apr14.200541.755%40napc.uucp
>
So did you ever find the book Rasmus
m:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators
> It is a external library with useful PHP functions. It was designed
> by some German guys, but you can now forget it. Main feature was the
> session function and that function is now integrated in the PHP
> extensions.
>
Maybe not quite forget as easily as that.
PHPLib offers very good user
http://www.php.net/manual/en/function.ftruncate.php
Chris writes:
> I've created a program that runs a process then stores the results to a
> file on the server. I would like the file to contain only the most
> recent update, but it seems I can only append to my using fopen. Is
> there a wa
PHP class, an object that simulates a web
browser.
http://sourceforge.net/projects/snoopy/
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
and i always thought the best tactic was to go ugly early.
seriously, this isn't really that ugly a solution, most textbooks tend to
tell you to use this method to start with as its a bit simpler to understand
for beginners - an if...else statement to see if an initial row is returned,
then you c
On Mon, Dec 24, 2001 at 01:48:38PM -0800, Phillip B. Bruce wrote:
> I want to take something like the following:
>
> $row = 1;
> $ column = 1;
>
> if ( $pages = "r$row$column")
>
>What I want to see is r1c1 as a string so I'm actually
> concatenating the strings togethe
I have a client who wants to set up iBill. Has anyone had any good
experiences with any of the commercially avaliable or open source iBill
administration scripts out there? Good Bad or Otherwise, please let me know.
Many thanks for any light you can shed on this topic.
Matt Friedman
--
PHP
tp://freshmeat.net/projects/php_pam/
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi
I am trying to validate a form to check the user has entered there date of
birth correctly
There are three fields day, month & year.
how can I check whether a string is a number?
I have tried using is_long(), is_int(), is_integer() to check the values
,but it doesn't seem to be working.
the
p are hashes
(associative). That's why they're so quick.
Happy interpolation!
Matt Friedman
- Original Message -
From: "Frank M. Kromann" <[EMAIL PROTECTED]>
To: "Michael Champagne" <[EMAIL PROTECTED]>
Cc: "PHP General Mailing List" &l
in PHP (set either at compile or
in the php.ini) that controls whether or not a PHP script will accept data
passed to it via POST or GET?
I would appreciate any suggestions or ideas you may have.
Thanks
Matt
--
Matt Adams (ICQ 109490925)
Altair Electronics: <[EMAIL PROTECTED]>
Scouts Canad
I dont like any of them, the UBB style is the best.
-Original Message-
From: Kath [mailto:[EMAIL PROTECTED]]
Sent: Monday, 26 March 2001 2:02 PM
To: Gfunk; Stephan Ahonen; PHP User Group
Subject: Re: [PHP] The ubitquitous forum project
I think what he means is this:
This is newsgroup s
PM
To: Matt Stone
Cc: PHP User Group
Subject: Re: [PHP] The ubitquitous forum project
On Mon, Mar 26, 2001 at 02:11:46PM +1000, Matt Stone wrote:
> I dont like any of them, the UBB style is the best.
what's UBB-style like?
-fkr
--
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9
PROTECTED]]
Sent: Monday, 26 March 2001 2:52 PM
To: Matt Stone
Cc: PHP User Group
Subject: Re: [PHP] The ubitquitous forum project
On Mon, Mar 26, 2001 at 02:11:46PM +1000, Matt Stone wrote:
> I dont like any of them, the UBB style is the best.
what's UBB-style like?
-fkr
--
gpg-fingerpri
stuff up in certain circumstances?
Please help,
Matt stone
___
";
}
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
Oops sorry, this line is supposed to read:
$passfirst = randomGen($length-3, 1);
>>$passend = randomGen(3, 0);
$pass = $passfirst.'-'.$passend;
return $pass;
-Original Message-
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Monday, 26
> http://php.net/manual/en/function.exec.php
>
> $return = exec("/pathtocgi/script.cgi VAR1 VAR2 &");
>
> if you want the data returned, its in $return.
If there are multiple lines returned, you'll only get the last line in
$return.
See the manual link to
is type of info. http://www.php.net/
Also, write a short script and run it as so:
You'll see a myriad of variables and their values. It's also handy for
debugging. You can include phpinfo() anywhere to see the output values of
your script.
Matt Friedman
- Original Message ---
On Tue, Mar 27, 2001 at 09:56:01PM +0200, FredrikAT wrote:
> Why can't I do $myfile[$count]_type?!
> What schould I do instead?
${$myfile[$count] . '_type'}
There are some examples in the user comments in this manual page:
http://www.php.net/manual/en/language.variabl
will stuff up in certain circumstances?
Please help,
Matt stone
_
";
}
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
> Is there a way to get spacing between
> $row["City"],$row["State"] in the html output?
> I've tried echo "$row["City"], nbsp; $row["State"]";
> and a bunch of other things and get Parse error: parse
> error, expecting `STRING' or `NUM_STRING' or `'$'' .
Try
echo $row["City"]." ".$row["State"
Hi
Is there a way I can remove all the values of $HTTP_POST_VARS?
I'm trying to check where a form has been posted from and if it's not the
right plac I want to remove all the post vars so they can't any damage.
I've tried unset($HTTP_POST_VARS) but it doesn't seem to do anything.
TIA
M@
--
ual/en/function.fopen.php
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
the
width of the page.
Is there any way of PHP picking up these line breaks so that the text will
be formatted on my web page as it was on my form.
Thanks
Matt.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi,
I have a excellent library for doing just that but it is very complicated
and integrated into the other libraries.
Perhaps check out http://www.phpbuilder.com/columns/rod2221.php3 which
is an article on what you are trying to do.
Good luck,
Matt Stone
-Original Message-
From
See http://phplib.netuse.de
regarding sessions in php3
HTH
M@
> -Original Message-
> From: Sean Weissensee [mailto:[EMAIL PROTECTED]]
> Sent: 29 March 2001 11:38
> To: [EMAIL PROTECTED]
> Subject: [PHP] Session Varables with PHP3
>
>
> How can I create Session Varables, the docs I h
> > Try replacing "100M" with it's byte equivalent. Or maybe it's
> > kilobytes. One on of my systems they had "2M" and it wouldn't upload
> > anything cause it didn't parse it right.
> > In other words, set that value to what you had with say php4.0.1
> > good luck!
>
> replaced 100M by 10485
erhaps), but the solution there isn't to disable
phpinfo(), it's to run the web server from a specifically tailored
environment.
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
//www.host.com/script.php")
assuming lynx is installed.
Instead of exec, why not just include the script you want to run in your
page?
Matt Friedman
Spry New Media
http://www.sprynewmedia.com
- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: "PHP
page to another
page. The search spider will not follow the redirect.
Other than that, I can't think of more things that a spider wouldn't like
that have to do with php. If there are more, please correct me.
Matt Friedman
Spry New Media
http://www.sprynewmedia.com
- Original Message
Hi, is anyone aware of any php training courses available in the UK or
alternativly any online anywhere.
Thanks
Matt.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
I think the PEAR class file comes with PHP4... si that correct?
-Original Message-
From: glenn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 4 April 2001 11:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PEAR
Does anyone know where I can get the basic pear class file from? I'm
using the omni
I don't know about everyone else but I've found that since the changeover to
the new design of the php.net site, it's been very unreliable.
I used to be able to look up a function in seconds if I didn't quite
remember the usage. Now, I find that the doesn't won't even come up at
times.
Other tim
> > How do I set the php-iclude path if I have not acess to php.ini?
> >
> > I know in .htacess but al I try ends in an Internal Server Error
> > I use php4.0.4pl1
>
php_value include_path "/path1:/path2"
HTH
M@
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
global $domain,$tld,$firstname,$lastname,$userid...;
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> I tried
> php_value include_path ".:./foo"
> php_value include_path=".:./foo"
> php_value include_path .:./foo
> php_value include_path=.:./foo
> php_flag include_path .:./foo # but flag is not right
> according to the
> documentation
>
> nothing :-(
>
> It seems I must change al my in
ortevent outputs "Thu 1 Jan" which is unix epoch date.
Does anybody know what I am doiing wrong its probably something really
simple but I cant see what.
Matt.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
at have come to mind. my
cookie is being set like:
if (!isset($cookie[0])) setcookie("cookie[0]", "0");
i do not have a product w/ id of zero (0), so i use that as the default id /
value to set the cookie with. any suggestions _at_all_ would be
appreciated. :)
thanks,
mat
;[EMAIL PROTECTED]> wrote in message 01040720420304.01567@box">news:01040720420304.01567@box...
> I think you might wanna check if $cookie is set, not $cookie[0], if that
> doesn't work just check if $cookie[0] = 0
>
> -Shaun
>
> On Saturday 07 April 2001 21:1
if ($useragent)
fputs($fp, "User-Agent: MSIE\n");
fputs($fp, "Connection: close\n\n");
if ($method == 'POST')
fputs($fp, $data);
while (!feof($fp))
$buf .= fgets($fp,128);
fclose($fp);
return $buf;
}
$data should be the variables of th
801 - 900 of 1653 matches
Mail list logo