I don't mean any disrespect, but I just want to check that the basics are
OK, sometimes I forget stuff like that myself: Did you click a link to go to
your test page?
"Stephen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
For some reason my webhost doesn't allow the HTTP_REFERER var
LOL
I like PHP, but I also like wet girlies. But the two are not interchangable,
which is a pitty, becouse sometimes I really could use a wet girl, and I
only have PHP
"Khalid El-Kary" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> sorry, but if PHP (a great piece of knowledg
You want to add a new line every time your form is submittet, am I right?
Then you should open the file for appending, using fopen(filename, "a")
instead of "w"
"Ryan Holowaychuk" <[EMAIL PROTECTED]> wrote in message
news:!~!UENERkVCMDkAAQACABgAu5ugyx6+hUW5gsOu6grgVMKA
AAA
$file = file('filename');
$line = end($file);
for ($i=0; $line && $i<10;$++)
{
list (. and so on...
$line = prev($file);
}
"Webdev" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
How to grab the last -n lines from a data file and display the stored data
Only the the last 1
Yes, $HTTP_POST_FILES is depricated, but it still works in PHP 4.
"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> $HTTP_POST_FILES as opposed to $_FILES is older syntax? $HTTP_POST_FILES
is still compliant?
> John
>
--
PHP General Mailing List (http://www.p
Since input from a form are strings, you can check like this:
if ($_POST['your_input_name'] == '')
// field is empty
"Shaun" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there an easy way to scan through an array of values sent from a form
to
> see if any of them are empty?
By the way, beware of possibly buggy code:
strpos() will return 0 if the string begins with '-', but it will return
FALSE if '-' is not found in the string.
Since both 0 and FALSE will evaluate to boolean false in your condition, you
may get weird results.
Use this instead: (strpos($a, '-') !==
That depends on the way you run PHP
If you run it a a server module, it may be more efficient.
If not, then it it less efficient than CGI, as the PHP script engine is a
CGI program itself, and has to compile and run your script after it gets
started itself.
"Spyproductions Support Team" <[EMAIL P
I have created a simple template engine extension. It is published at
http://zhat.dk/template/
It is very simple to install and use, and a PHP alternative (an include
file) is also provided.
No documentation available yet (sorry!!!), so have a look at the example
scripts.
--
PHP General Mailin
PHP is not text markup, it is a kind of programming language. You can't just
validate code for "correctness", only for valid syntax. It may still contain
bugs. The syntax is checked by the parser, which is invoked when you run
your script.
Regarding HTML-output from your script, you can make sure
So when you do request for:
your_script.php?var=hello%20world
And put this in your script
you get
hello%20world
printed?
"Sunfire" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> tried everything except session vars and the query string is still
broken...
> no matter what i do for
it arrive at 17:22?
>
> "Niels Andersen" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > When I post something here, it first appears several hours later. How
can
> it
> > be so?
> >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I post something here, it first appears several hours later. How can it
be so?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Do you have a DNS server on you network? Without it, it will not work.
"Chris Blake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Greetings,
>
> Th command
>
> echo gethostbyaddr("ip.number.inserted.here");
>
> returns the name of the server when it`s an internet address.
> Is the
> Not sure how you define an extension, but you could take a look at my
> web site www.phpscriptsearch.com and see if it applies to listing it
> there. But like I said, it depends what you mean by extension.
Extension like in binary that is either an integral part of PHP or a
loadable module.
> A
Hello!
I have made a really great (or at least that is what I think) extension,
which I think everybody should use :))
Where should I publish it?
Is there any chance that it will make its way into a future distro?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Data from POST is a hash table of strings, so you should use this to check
for zero:
if ($_POST['field'] == "0")
// Zero was entered
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> i am having a terrible time killing the session
> someone please please help me...
This one works for me:
session_start();
$_SESSION = array();
session_destroy();
But I am surprised that there is no single command to kill the session.
The semantics of "session_destroy()" suggest that it do
Check that php_gd2.dll is in your C:\PHP\ folder.
"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I run the following script:
>
> phpinfo();
> ?>
>
> // the page loads o.k. when the semi-colon remains as in:
> ;extension=php_gd2.dll
>
> but if I remove the semicolon
Hello,
I did my first PHP extension (a simple template engine), and I found out I
could not ude V_OPEN() - it simply crashed PHP.
I then searched the web and found somebody mentioning something about a
function called VCWD_OPEN(), which works perfectly, but is not
documented
Any idea why did
I want to compile an extension, let's say the zip extension.
So I do the following:
cd /usr/src/php-4.2.3/ext/zip
phpize
Now, I understand that this should result in a shared library being
produced, but I can't find it.
Also, during the phpize process, I get following warnings:
perl: warning: Se
There mey, but need not be a space. As far as I know, the option scanner in
mysqldump ignores spaces between short options and their values.
"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks!
>
> > exec("mysqldump -c -q database -u user -ppassword", $sql)
22 matches
Mail list logo