--- John Nichel [EMAIL PROTECTED] wrote:
Does anyone know how Netcraft queries a webserver to get the info it
does (OS, web server software, uptime, etc.)?
http://uptime.netcraft.com/up/accuracy.html
Please try to stick to PHP queries as much as possible. Thanks.
Chris
=
Become a better
Maybe if I add a second question, which I figure didn't have to be
asked, since I'm asking a PHP list, would make it all better
Does anyone know how Netcraft queries a webserver to get the info it
does (OS, web server software, uptime, etc.)? newstuffCan this be
done with PHP/newstuff
But
I have a quandary and I hope I can explain myself well enough that someone
may understand and enlighten me.
I am in the middle of building a (largish) Class. It is done for the most
part, at least all pieces are there. Now I'm just trying to put the pieces
together in a logical order.
This is my
On Thursday 25 September 2003 12:08, ascll wrote:
Question:
=
Could my .php page ALWAYS get the latest values WITHOUT reload the page?
That would be magic.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design Hosting *
What about something like this?
(actual code not tested, but concept has...)
class FOO
{
function Fred() { echo Fred in FOO; }
}
class BAR
{
function Fred() { echo Fred in BAR; }
}
class BAZ
{
var $subclass;
function BAZ($num)
{
if ($num == 1) $this-subclass = new FOO();
if
Hi
Im kinda new to php. I have a linux server witch has our website on it. I
want to make a download page. If a person clicks on a link , they must be
able to download from our server. How difficult is this , can you send me an
example ?
Thanks
Shaun van den Berg
--
Novtel Consulting
Tel:
On Thursday 25 Sep 2003 08:14, Shaun van den Berg wrote:
Hi
Im kinda new to php. I have a linux server witch has our website on it. I
want to make a download page. If a person clicks on a link , they must be
able to download from our server. How difficult is this , can you send me
an example
Hi to all,
I'm looking for a alphanumeric randomized image script.
Can anyone give me a good link or an example for this?
Thanks in advance.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thursday 25 Sep 2003 23:10, Michael P. Carel wrote:
Hi to all,
I'm looking for a alphanumeric randomized image script.
Can anyone give me a good link or an example for this?
This was covered not more than 24 hours ago, and is in the archives. It's
also been covered in the past two
I did see you on the other list, Well anyway. It can be a combination of
system tools and php. Not just php, but also system tools like ping,
traceroute, etc.
Php can help a lot, on querying it over the website. But overall read the
man :D
-- -
Louie Miranda
http://www.axishift.com
-
if ($psi_shipping_addtnl_info != '') {
echo ' NO USER INPUT ';
}
Im catching a _POST variable from a form, now i wonder im filtering it out
to pass again to another variable is this possible?
-- -
Louie Miranda
http://www.axishift.com
--
PHP General Mailing List (http://www.php.net/)
To
On Thursday 25 September 2003 15:46, Louie Miranda wrote:
if ($psi_shipping_addtnl_info != '') {
echo ' NO USER INPUT ';
}
Im catching a _POST variable from a form, now i wonder im filtering it out
to pass again to another variable is this possible?
*assign* to another variable // $new =
Martin Towell [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
What about something like this?
snip
I've been playing with that same approach this evening.
But I guess I was hoping for a more direct, 1 level of inderection instead
of 2.
But, by making a base method in the main
thanks i've found a good sample in phpclasses Class:PWGen
- Original Message -
From: Michael P. Carel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 3:10 PM
Subject: [PHP] alphanumeric randomized image
Hi to all,
I'm looking for a alphanumeric
A different approache for the captcha.. instead of using a blurred image
use some text and than ask a question about the text like
What does the 2nd word in the first line of the 4thparagraph say?
Things to make sure:
- Use enough texts so that guessing the correct word is not possible.
- Use
= start Test.php =
// Section-A
?php
...
?
// Section-B
?php
...
?
// Section-C
?php
...
?
// Section-D
?php
...
?
= end Test.php =
Greetings,
It that a way for me to reload Section-A's php codes every 1-second and
Section-D's php codes every 5-second, that belongs to the SAME
You find a reasonable example if you go googling for 'PHP tutorial' and then
sit down for an evening and read the manual.
C
-Original Message-
From: Shaun van den Berg [mailto:[EMAIL PROTECTED]
Sent: 25 September 2003 07:14
To: [EMAIL PROTECTED]
Subject: [PHP] Databases
Hi
Im kinda
Consider 4 IFRAMEs on one page, with meta refreshes in each header which
point to your php script with a get parameter of whichever 'section' you're
dealing with.
Regards
Chris
-Original Message-
From: ascll [mailto:[EMAIL PROTECTED]
Sent: 25 September 2003 08:48
To: [EMAIL PROTECTED]
I have set the PHP.INI as follow:
error_reporting = E_ALL ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
But it doesn't work
How can i solve
I have set the PHP.INI as follow:
error_reporting = E_ALL ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
But it doesn't work
How can i solve
I write my code with pencil and paper and then scan it..
Dont need an editor !
John Nichel wrote:
I know we've discussed this numerous times, but I'll chime in again
(mainly because I'm bored).
By far, I have been totally satisfied with UltraEdit. Lightweight, just
about any language you
I have a table that the user can select numerous address's, I then want them
to click submit and have a confirmation page that just shows the address's
they selected.
If you take a look at this you will see what I mean and where I have got to.
ttp://www.tbptestsite.com/kaantest/index.php
or
I like accelerators I just didnt like the price. So I wrote my own, but I
havent worked all the bugs out yet.
From: Robert Cummings [EMAIL PROTECTED]
To: Curt Zirzow [EMAIL PROTECTED]
CC: PHP-General [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Editor - which to use?
Date: 24 Sep 2003 09:44:40
[snip]
But, as we all know, PHP doesn't run client side, so she'd have to turn
her computer into a web server or run PHP from the command line. There
still isn't a way to automatically submit a file over HTTP using either
method, though.
FTP would work, though...
[/snip]
I am surprised that this
me? groan? never!
:)
Really I think most of agree that its a personal preference if you learned
one way then you going to be the most comfortable in using that style. I am
very used to C style coding and therefore am more comfortable using that.
From: Kevin Bruce [EMAIL PROTECTED]
To:
[snip]
error_reporting = E_ALL ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
But it doesn't work
How can i solve it?
[/snip]
I am going toask
I think that is the one thing that really gets me, and therefore is the
reason that I stay away from Dreamweaver (my wife uses it, so its in the
house) but I have to tweak the code it gives me or she gives me when
something isnt working, and its always something odd or many things odd in
the
lmao .. good one.
From: pete M [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Editor - which to use?
Date: Thu, 25 Sep 2003 10:59:19 +0100
I write my code with pencil and paper and then scan it..
Dont need an editor !
John Nichel wrote:
I know we've discussed this numerous
It was filtering, but now I've opened the port to listen to my machine,
which is running my web server (where all php scripts qre running). So,
that's not a problem now. I've checked it (SSH) on the terminal, it's
working fine with root as well as other users. Now, problem is, for other
users it
From: [EMAIL PROTECTED]
A different approache for the captcha.. instead of using a blurred image
use some text and than ask a question about the text like
What does the 2nd word in the first line of the 4thparagraph say?
Reading images can still be automated, it just takes a lot more time to
Good day all
I have a txt file that has values from various strings written to it.
What Im looking for is the following
$name = Chris';
I need to do a count on $name so that it returns 5 letters. Then before writing it to
the output file I
know that it has to be 40 charecters long before it
Try Str_len and str_pad
Regards
Chris
-Original Message-
From: Chris Grigor [mailto:[EMAIL PROTECTED]
Sent: 25 September 2003 13:10
To: php
Subject: [PHP] Am stuck
Good day all
I have a txt file that has values from various strings written to it.
What Im looking for is the
Hi,
Does anyone know how to tell PHP to look in a different location for the
mysql.lock file? It's currently looking in /tmp/ and that's wrong.
Thanks
Donald
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
can anyone tell me why following script does not resize image? It calls
ImageMagick function mogrify to resize image. Webserver user does have access
to shell, script and image are owned by webserver user.
?
$file = DSCI0005.JPG;
exec(mogrify
The path mogrify is in PATH for webserver user? Try exec(/path/to/mogrify ...
Also, the webserver user have write (not only read) the file ?
-Mensaje original-
De: Martin Hudec [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 25 de septiembre de 2003 15:29
Para: PHP-General
Asunto: [PHP]
On Thursday 25 September 2003 21:17, Donald Tyler wrote:
Does anyone know how to tell PHP to look in a different location for the
mysql.lock file? It's currently looking in /tmp/ and that's wrong.
manual MySQL Functions
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
User does have all required permissions.
Yeah the path was missing.
Thank you very much :).
On Thursday 25 September 2003 15:25, Javier Tacon wrote:
The path mogrify is in PATH for webserver user? Try exec(/path/to/mogrify
...
Also, the
What do you mean it doesn't work? It doesn't display errors? How do you
know that you have errors? Are you running your own script or someone
else's?
-Shawn
Luckyeagle [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have set the PHP.INI as follow:
error_reporting = E_ALL
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Anyway I can't understand why php does not return any message in this:
$mess = blablabla;
if (exec(mogrify blbalba))
{
$hlaska .= xixixixix;
}
echo $hlaska;
- --
kind regards
- --
Martin Hudec
- --
:@: [EMAIL
I agree that an image captcha can not be cracked by a lot of people,
allthough it has been done. (and it takes only one program being released
to do the job : ) ) Somethings to keep in mind is that you should use
passphrases made up of random letters and numbers preventing the automated
system
You can see what they see using telnet (which incidentally suggests you
can use a PHP script that opens a socket connection on port 80 to get
the information). The commands in telnet are as follows:
telnet www.interjinn.com 80
HEAD / HTTP/1.0
enter
That will give you the OS, web server, and any
Hi,
Thursday, September 25, 2003, 10:40:27 PM, you wrote:
DM lmao .. good one.
From: pete M [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Editor - which to use?
Date: Thu, 25 Sep 2003 10:59:19 +0100
I write my code with pencil and paper and then scan it..
Dont need an editor !
I don't know, but this works for me:
?php
$correct = ls -la;
$wrong = 123ls -la;
if(exec($correct)) print correct cmd: correct\n;
else print correct cmd: wrong;
if(exec($wrong)) print wrong cmd: correct\n;
else print wrong cmd: wrong;
?
Anyhow, you can parse the output, example:
exec(ls -la,
I have successfuly been creating PDF files... however it is required that
the files are printed Automatically - i.e. no need to hit print icon etc
etc...
Anyone know how to achieve this or atleast point me in the right direction?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
In the current issue of php|architect - an electronically distributed
magazine, which you can find here http://www.phparch.com/ there is an
article on printing with php. The magazine is not free, but is good value
anyway.
HTH
Francesco
Brian M McGarvie [EMAIL PROTECTED] ha scritto nel
messaggio
[snip]
In the current issue of php|architect - an electronically distributed
magazine, which you can find here http://www.phparch.com/ there is an
article on printing with php. The magazine is not free, but is good
value
anyway.
[/snip]
and props to John Holmes who so frequently provides
Sorry maybe I should elaborate
?php
$name = Chris;
$b = '5'; /* this is the value count of $name; */
for ($a=$b; $a=40; $a++)
{
add a space to the end of $name; /* this then makes $name 40 charecters long (but
what function do I use to add on spaces?? */
}
?
Good day all
I have a
I meant mysql.sock, sorry.
-Original Message-
From: Donald Tyler [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 8:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] mysql.lock file location
Hi,
Does anyone know how to tell PHP to look in a different location for the
mysql.lock
class FOO
{
function Fred()
{
echo Fred in FOO;
}
}
class BAR
{
function Fred()
{
echo Fred in BAR;
}
}
class BAZFactory
{
[snip]
I meant mysql.sock, sorry.
Does anyone know how to tell PHP to look in a different location for the
mysql.lock file? It's currently looking in /tmp/ and that's wrong.
[/snip]
But MySQL is running? PHP AFAIK doesn't care where mysql.sock is, unless
it is not the default.
locate mysql.sock
The MySQL functions only allow me to change the location per function
call.
I want to change the default mysql.sock file location for PHP, it would
seem silly to change every script to do that, especially since this is
only a test server and the main server will most likely have the
mysql.sock
Hi, i have the same problem.. If you are using 4.3.2 or 4.3.3 version of
php, go to http://ftp.proventum.net/pub/php/win32/misc/openssl/ and
download files. There is php4ts.dll in c:\php and replace it with this.
There should be worked..
Astron
Chris Edwards [EMAIL PROTECTED] wrote in message
Thanks for the reply. I forgot about the php.ini file. That seemed to
point me in the right direction.
However, although PHP is now looking at the correct file. I still get
the error message:
Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock'
[snip]
Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13) in
/usr/local/apache2/htdocs/dbtest.php on line 3
[/snip]
Can we see your connection string? My bet would be permissions...
--
PHP General Mailing List (http://www.php.net/)
To
On Thu, 25 Sep 2003 15:17:26 +0200
Chris Grigor [EMAIL PROTECTED] wrote:
Sorry maybe I should elaborate
?php
$name = Chris;
$b = '5'; /* this is the value count of $name; */
for ($a=$b; $a=40; $a++)
{
add a space to the end of $name; /* this then makes $name 40 charecters
On Thursday 25 September 2003 22:07, Donald Tyler wrote:
The MySQL functions only allow me to change the location per function
call.
I want to change the default mysql.sock file location for PHP, it would
seem silly to change every script to do that, especially since this is
only a test
On Thu, 25 Sep 2003 15:09:31 +0200
Chris Grigor [EMAIL PROTECTED] wrote:
Good day all
I have a txt file that has values from various strings written to
it.
What Im looking for is the following
$name = Chris';
I need to do a count on $name so that it returns 5 letters. Then
before
Yeah I thought so to. But I did a chmod 755 on the sock file and it
didn't help.
Here's the test script I am using: (Presume that's what you meant by
connection string?
?PHP
if($Connection = mysql_connect('localhost', '**', '**'))
print 'Success!';
else
ohohohohohoo
or you can delete that and restart mysql and it will recreate. i have seen
that before and that worked.
From: Jay Blanchard [EMAIL PROTECTED]
To: Donald Tyler [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] mysql.sock file location
Date: Thu, 25 Sep 2003 09:43:33 -0500
Donald Tyler wrote:
Yeah I thought so to. But I did a chmod 755 on the sock file and it
didn't help.
Here's the test script I am using: (Presume that's what you meant by
connection string?
?PHP
if($Connection = mysql_connect('localhost', '**', '**'))
print
[snip]
Here's the test script I am using: (Presume that's what you meant by
connection string?
?PHP
if($Connection = mysql_connect('localhost', '**', '**'))
print 'Success!';
else
print 'Failure';
?
[/snip]
Let's get a hair more info,
yes like the user and the password ** and ** arent working for me.
;)
From: Jay Blanchard [EMAIL PROTECTED]
To: Brad Pauly [EMAIL PROTECTED], Donald Tyler
[EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: [PHP] mysql.sock file location
Date: Thu, 25 Sep 2003 10:12:50 -0500
[snip]
[snip]
yes like the user and the password ** and ** arent working for
me.
;)
[/snip]
Not to head way off topic, well, OTOH, yes I am...
Didier, is that pronounced did-i-A or did-i-er, or am I way off base. I
knew someone with the first iteration.
--
PHP General Mailing List
Robert Cummings wrote:
can use a PHP script that opens a socket connection on port 80 to get
For these interactive things, Perl seems much more appropriate for me.
Using libwww aka LWP for the web client (LWP::UserAgent or LWP::RobotUA)
Using DBI for access to a DB to store/retreive results.
I'm
--- Christophe Chisogne [EMAIL PROTECTED] wrote:
Robert Cummings wrote:
can use a PHP script that opens a socket connection on port 80
For these interactive things, Perl seems much more appropriate for
me. Using libwww aka LWP for the web client (LWP::UserAgent or
LWP::RobotUA) Using DBI
On Thu, 2003-09-25 at 11:25, Christophe Chisogne wrote:
That method is not reliable, as you can see. Other methods exist
to check OS (fingerprinting) etc. But it remain quite complex.
(round-robin DNS, load balancing, caching servers, firewalls...)
Maybe not, but it's the method that Netcraft
Yes, I ping it and it says its alive.
-Original Message-
From: Brad Pauly [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 10:07 AM
To: Donald Tyler
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] mysql.sock file location
Donald Tyler wrote:
Yeah I thought so to. But I did a chmod
d-d-a is the proper way to say it but I pretty much go by everything
including 'Hey you!'
From: Jay Blanchard [EMAIL PROTECTED]
To: Didier McGillis [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: [PHP] mysql.sock file location
Date: Thu, 25 Sep 2003
Hi
I am writing to a file different sources.
The one writes the date and the next starts writing data.
The date writes fine.
$header = 0$gpsdate;
echo $out_file;
$fp = fopen($out_file, a);
$write = (fwrite($fp, $header\n));
fclose($fp);
Now I get to another batch process that inserts
I wasn't worried about short code =0P
I would have done this if I was:
$Connection = mysql_connect('localhost','**','**')
or die(mysql_error());
=0P
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003
Yeah I do that too. But I was reluctant to do that with something that
just seemed like a fix for a problem that shouldnt even exist.
If the server with my scripts is configured correctly, then I should
never have to specify a .sock file. I hope...
-Original Message-
From: Jackson
[snip]
I wasn't worried about short code =0P
I would have done this if I was:
$Connection = mysql_connect('localhost','**','**')
or die(mysql_error());
=0P
[/snip]
Cool, but do you get errors?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi,
Is there an equivalent to the C++ 'break' command to stop execution of a for
loop? I know I can use 'goto' but I don't want to unless I have to.
for ($i=0; $i$n; $i++)
if (some condition)
break;
And, what about 'continue' which skips the rest of the code in the for loop
and
Take the sample code below, paste it to a PHP file, add a real
conditional, execute script. Voila, you've taken the first step towards
helping yourself.
Cheers,
Rob.
On Thu, 2003-09-25 at 11:42, Rich Fox wrote:
Hi,
Is there an equivalent to the C++ 'break' command to stop execution of a for
Does anyone know of any projects to bring QT/KDE GUI bindings to PHP?
It would be VERY cool to have something like PyKDE for PHP. Especially once
PHP5 is released and SQLite is part of the KDe interpreter.
I know there is PHP-GTK, but it's development appears stale.
-Jackson
--
jackson
Argh! Wonderful. Now I have broken something else.
I just restarted the machine and now MySQL won't start. I keep getting
the error:
030925 10:30:10 mysqld started
030925 10:30:10 InnoDB: Operating system error number 13 in a file
operation.
InnoDB: See http://www.innodb.com/ibman.html for
Donald Tyler wrote:
Yes, I ping it and it says its alive.
I don't understand. What did you ping? How does that mean it is running?
Getting a response from a ping does not mean MySQL is running. Did you
try connecting with a MySQL client from the command line? Have you
looked at the running
Chris,
Looks like all you need to do is insert a statement that writes an
\n to the file, although what you have should work. Kind of puzzling
now that I look at it. Try adding the \n to $header before using it
in the fwrite statement.
$header .= \n;
$write = (fwrite($fp, $header));
Why dont you trim the string first to ensure that there are no empty spaces
at the end and beginning of it
http://ca3.php.net/manual/en/function.trim.php
and then do your count.
Chris
-- SNIP --
Good day all
I have a txt file that has values from various strings written to it.
What Im looking
DOH!
This is a new addition to PHP because it wasn't there before!
Thanks for the slap.
Robert Cummings [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Take the sample code below, paste it to a PHP file, add a real
conditional, execute script. Voila, you've taken the first step
On Thu, 2003-09-25 at 12:04, Rich Fox wrote:
DOH!
This is a new addition to PHP because it wasn't there before!
Thanks for the slap.
PHP has supported break for as long as I can remember which goes back to
about 1999 and PHP 3.something.
Cheers,
Rob.
--
In the Unix world with PHP, you can do OS fingerprinting by calling
a system tool such as nmap (option: -O),
but this require root privileges, and
is not always perceived as well-behaviour by sysadmins.
Or you can do everything you want with PHP sockets.
I guess Netcraft use OS fingerprinting tool
No not a network IP ping. A mysqladmin ping:
Mysqladmin --user=root ping
-Original Message-
From: Brad Pauly [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 10:53 AM
To: Donald Tyler
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] mysql.sock file location
Donald Tyler wrote:
Don't know yet, I've managed to stop mysql from loading now! (See my
previous mail)
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 10:40 AM
To: Donald Tyler; [EMAIL PROTECTED]
Subject: RE: [PHP] mysql.sock file location
[snip]
I
we have a number of csv dumps that occasionally have to be used to update tables
in a postgres database...
normally this is done by uploading the file and whomever running a php based
parser which opens the file into an array via file(), does a split() on the
comma, then executes an insert or
Can't you let me have a shred of programming self-respect?
Rich (I should have cracked the book) Fox
On Thu, 2003-09-25 at 12:04, Rich Fox wrote:
DOH!
This is a new addition to PHP because it wasn't there before!
Thanks for the slap.
PHP has supported break for as long as I can
[snip]
Can't you let me have a shred of programming self-respect?
Rich (I should have cracked the book) Fox
[/snip]
Nah, too easy! :) We all get bumped from time to time
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've just picked up a more advanced book on PHP and it has a lot of
example code in it. I understand most of it but some things I'm seeing I
don't understand. Like the following...
code:
$couponcode = (!
! means not, for example $yes != $no
Regarding the (xxx) ? x : x;
Your assumption is correct
I use it alot, but sometimes it's still better to use if/else statements
On Thu, 2003-09-25 at 11:47, Jeff McKeon wrote:
I've just picked up a more advanced book on PHP and it has a lot of
example
On Thu, 2003-09-25 at 12:47, Jeff McKeon wrote:
I've just picked up a more advanced book on PHP and it has a lot of
example code in it. I understand most of it but some things I'm seeing I
don't understand. Like the following...
code:
Thanks for the reply.
What about he use of '!' with the strcmp() command. As I understand it,
strcmp compairs two strings and returns 0 if str1 is less than str2,
returns 0 if they are equal and returns 0 if str1 is greater than str2.
At least that's what the PHP online manual says.
How does
Your assumptions are correct. It's called a ternary operator and it is
a substitution or the if-else statements. I try not to overuse it since
I don't think it's as readable as the block if statement. But for
things not assigning a value to a variable, I think it's better than
the block
Hi,
I haven't found very many referenced for using php with YP/NIS aside
from the occasional question answered. (Google is your friend), however
I can't seem to find anything related to my latest quirrel:
I want to access nismap data from another nisdomain which resides on
another host, much like
Hello,
I installed PHP 4.3.3 with default values. When I moved my sites, who use
imagettfbbox() function, I received message -Fatal error: Call to undefined
function: imagettfbbox() - everytime when I called this.
GD library is installed and Freetype library I installed by hand. Hovewer
What if you set the server to use UTC and then used the clients local
system setting to offset it for each client?
So the server would have it's time at UTC and a client in the Eastern US
would be at -4. You could then detect the web client timezone setting
and adjust as needed?
This is just
Hi Can someone look at this code for me For Some reason when I add any
more:
INPUT NAME = \postcode[]\ TYPE = \HIDDEN\ VALUE=\$postcode\
The form doesnt send!!
What I want is to have two more hidden fields storing the data for country
and contact
thanks
-Code---
html
head
On Friday 26 September 2003 01:02, Miroslav Puzder wrote:
I installed PHP 4.3.3 with default values. When I moved my sites, who use
imagettfbbox() function, I received message -Fatal error: Call to undefined
function: imagettfbbox() - everytime when I called this.
GD library is installed and
[snip]
I installed PHP 4.3.3 with default values. When I moved my sites, who
use
imagettfbbox() function, I received message -Fatal error: Call to
undefined
function: imagettfbbox() - everytime when I called this.
GD library is installed and Freetype library I installed by hand.
Hovewer
They want everything set to their time, so it would
probably be easier just to determine the server time
and add as necessary. I think...
--- Jeff McKeon [EMAIL PROTECTED] wrote:
What if you set the server to use UTC and then used
the clients local
system setting to offset it for each
I am pulling my hair trying to figure this out. Maybe some of you can
shed some light on the problem.
I am uploading a file through a web connection using the $_FILE array.
Works perfectly on small files. The code executes and it goes through
the script like a champ.
BUT ...
When I try to
1 - 100 of 152 matches
Mail list logo