Sweet. Thanks!
The {'..'} works perfectly. Never knew about that syntax.
-Charlie
Jochem Maas wrote:
Charlie Davis wrote:
Hey all, I've run into a snag trying to use some XML output from NOAA.
what NOAA when its at home?
The problem is that some of the fields it sen
t;direction access works fine.
$xmlobj->data->parameters->direction->value works fine. Gives me the array.
$xmlobj->data->parameters->wind-speed returns an int value of 0.
$xmlobj->data->parameters->wind-speed->value gives me an error:
Parse error: parse error, unexpected T_OBJECT_OPERATOR in noaa.php on
line 59
So, what am I doing wrong? The only thing I can think of is the - in the
wind-speed object name.
Any help would be appreciated!
-Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a #!/usr/bin/perl -w
can I do a #!/usr/bin/php -q at the begining of the text file?
Thanks.
From: Elijah Gallatin <[EMAIL PROTECTED]>
To: Charlie Don <[EMAIL PROTECTED]>
Subject: Re: [PHP] Question about executing PHP script
Date: Mon, 28 Jun 2004 19:33:14 -0400
On Mon, 28 Jun 2
Hello,
I need to have some scripts that do database maintanance on my cron tab.
However, some might take more time to execute that the maxtime set on
php.ini.
These are now web scripts but scripts that I execute on my command prompt or
cron tab.
I wonder if there is any way to have on the first
Chris Shiflett wrote:
You might strongly consider using foreach() instead for reasons of
performance (1000% or more faster):
http://www.blueshoes.org/en/developer/php_bench/
You could simply:
foreach ($_POST as $name => $value)
{
...
}
Hope that helps.
Sure does, thanks!
--
Char
Leif Gregory wrote:
Hello Charlie,
Tuesday, March 2, 2004, 1:54:43 PM, you wrote:
CFI> I'm creating a form with 170 fields, and I'd like to create an
CFI> intermediary page so the user can review their info before
CFI> submitting it again to the emailing script.
Just a though
elds,
that's a lot of data to manually handle.
--
Charlie Fiskeaux II
Media Designer
Cre8tive Group
cre8tivegroup.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ldn't find anything; I'm
having a difficult time finding stuff in there, since I have
to know what category a function falls under before I can
look it up.
Thanks.
--
Charlie Fiskeaux II
Media Designer
Cre8tive Group
cre8tivegroup.com
--
PHP General Mailing List (http://www.php.net/)
T
Gary Sanders wrote:
Charlie,
Can you make the submit target be the PHP script and have the PHP script
call the Perl script to send the email?
Sure, that would definitely work; I just don't know how to
call the Perl script and pass the data (and
uploaded/attached files) to it.
--
Ch
ults in
PHP to another script? (Like I said, I'm pretty new to PHP...)
Thanks!
--
Charlie Fiskeaux II
Media Designer
Cre8tive Group
cre8tivegroup.com
859/858-9054x29
cell: 859/608-9194
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e
equation?
It's just a matter of development time; if there's a way to
use the Perl mail script with a PHP data saving script, it
would save time. If I do have to rewrite the whole thing in
PHP, how would I accept uploaded file attachments and attach
them to the emailed form results?
P script)? Or can I use the DOM (ie
document.formname.fieldname.value) to grab the data straight
from the fields and then pass it on somehow?
--
Charlie Fiskeaux II
Media Designer
Cre8tive Group
cre8tivegroup.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
m fairly new to
PHP and don't know how to get one form to go to two
different places. Because the target of the form is the Perl
script (for emailing the submitted form), how can I grab the
data from the form with PHP?
--
Charlie Fiskeaux II
Media Designer
Cre8tive Group
cre8tivegrou
username/password information (to access the database) in
the popup page code?
Is there a tutorial or article on stuff like this somewhere?
--
Charlie Fiskeaux II
Media Designer
Cre8tive Group
cre8tivegroup.com
859/858-9054x29
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
.
Surely someone else has run into this and more than likely its just a
usage or configuration problem that relates to my lack of understanding.
Any help is greatly appreciated.
--
charlie collins
screaming-penguin.com
'source does matter'
--
PHP General Mailing List (http://w
. Also is this the
correct session save path:
session.save_path
.c:/php/sessions/tmp .c:/php/sessions/tmp
What is wrong, please help.
Charlie
I am hoping someone can please help me. I belong to a large online game,
which hosts several sub games. Each sub games has been assigned a certain
amount of space with which to put up a website. The site itself is running
with php enabled but mysql is limited for security reasons. So I have be
the latest sapdb and php 4.1.2.
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I don't now of one.
Charlie
> Is there one?
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e a way to check if a number is whole only using the number once?
Something like is_whole_number(log($n)/log(2));
Charlie
> Is there a one line test for whole numbers?
>
> I want to condense this function down to one line:
>
> function isOneBitSet($n)
> {
> $x = log($n)/log
Is there a one line test for whole numbers?
I want to condense this function down to one line:
function isOneBitSet($n)
{
$x = log($n)/log(2);
return ($x == intval($x));
}
TIA,
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Thanks to all those that replied. Especially Torben. (What have you been up
to?)
Miguel's solution works great.
Check out the example below:
Prints out:
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768,
Just what I wanted.
Thanks again,
Charlie
> >
How can I test if a number only has on bit set?
So testing different numbers will return TRUE or FALSE:
testing 0001 would return TRUE.
testing 0011 would return FALSE.
TIA
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
u'll get a warning:
if ( $dd > 2) true;
Will warn unless $dd is initialized prior to the if().
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ime.
$u = ${$y.$z.$t};
print_r($x{$u}); // Doesn't work.
Any help would greatly be appreciated,
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks Mike. I updated display_errors = On and now I see the errors.
Charlie
> Sounds like you have your php.ini configured to not display errors, since
> you are not seeing the parse error message in your HTML output...
>
--
PHP General Mailing List (http://www.php.net/)
To un
set_error_handler() is passing some errors like:
$d = x;
Use of undefined constant x - assumed 'x'
But others like not including a semicolon returns nothing:
$d = 3
The page is not returned there is no error and the page is stopped being
parsed.
Any ideas?
My handler function:
Function errorHa
This equation from Bogdan is simple and working:
$scale=ceil($scale/100)*100;
Thanks to all those who helped,
Charlie
> -Original Message-
> From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
>
> $scale=ceil($scale/100)*100, maybe?
>
> Bogdan
--
PHP General
up to hundreds.
But this is messy.
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
I would like to create a page in php where a user can change their unix password,
does anybody know how i can do this?
Thankyou
Charlie
I turn register_globals off using this command:
but my get variables are still accessible as variables.
Any ideas.
phpinfo() says:
register_argc_argv Off
register_globals Off
PHP Version 4.0.6
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Email me w/ qualifications, reference links, etc.
Thanks,
Charlie
--
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]
Why does the marc.aimsgroup archives post my IP address and not my name when
posting to the newsgroup? Is there anyway I can change this?
Charlie Killian
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Neil, look under variable variables in the php manual. They're what you
need:
http://www.php.net/manual/en/language.variables.variable.php
Charlie
"Neil Freeman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
>
Hi Tom. First check to see what $y looks like:
print "";
print_r($y);
print "";
Then you'll see the whole array. I'm guessing your mysql_fetch_array() is
returning the id twice. What does your query look like.
Also, you can use the foreach but I don't think the while is the problem:
$y = mysql_
le. What am I doing wrong?
TIA,
Charlie
--
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]
Does the MySQL user have permission to execute this query on the new table?
>
>line 14 is $result = mysql_db_query... I've never encountered this, and it
>only happens when I change the table it's supposed to look into for the
>data. Using the old table, it's fine, The new table, it gives me t
ch appears to be used to
include the openldap library directory. I assume that PHP needs the
library path. But for some reason it is not able to find that path once
PHP is installed as a shared dynamic object for Apache.
Any ideas?
Many thanks,
Charlie Hileman ([EMAIL PROTECTED]).
--
PHP Ge
I used x86 Solaris8, php-4.0.5, with --enable-sockets, when I tried the
server example from the PHP manual, I got bind error as follows:
bind() failed: reason: Address family not supported by protocol family
Does anyone know what the problem is? Thanks.
--
PHP General Mailing List (http://w
One fairly easy way is to use Richard Heyes html mail class available at
phpclasses.upperdesign.com
> I am working on a newsletter module. What I want
> to know is that how can we send a newsletter via
> email to all the subscribers in html format
> with images in the htm too???
>
--
PHP
By the way, I am having problems with the javascripts that are enabled by
default with PHPNuke..
I'm going to disable them for now until I can figure out what is wrong.
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
Yes, this looks very good, thanks for the recommendation
- Original Message -
> phpnuke would be my recommendation
>
> www.phpnuke.org
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
I'm setting up a slashdot style site using PHP, and am looking for
recommendations for ready-to-use packages, such as geeklog and PhpSlash. Has
anybody used either of these, got any comments, or suggestions for other
software.
TIA,
Charlie
--
PHP General Mailing List (http://www.php.net
www.texasmonthly.com
is the site I manage.. converted to php over the last year
--
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]
Another neat trick is to use ftp to upload, avoiding the need to change
permssions.
- Original Message -
From: "Dhaval Desai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 24, 2001 12:25 AM
Subject: [PHP] Change dir mode to writable for uploading..
> Hi!
>
> I have
Or ,as has been mentioned before, use the Manuel Lemos email validation
class which will attempt to verify that the address can recieve mail.
- Original Message -
From: "Don" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Friday, February 16, 2001 9:50 AM
Subject: [PHP] valid
the - needs to be immediately after the [ to include that character.
Otherwise it is a range indicator.
Charlie
- Original Message -
From: "CC Zona" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 12:56 PM
Subject: Re: [PHP] ereg
A comma works when you use echo. Is there any reason why this is a bad idea?
Charlie Llewellin
- Original Message -
From: "John Vanderbeck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 9:11 AM
Subject: Re: [PHP] $PHP_SELF in Net
If you don't want to run the script from the command line you can use
ignore_user_abort with set_time_limit(?) in the script to allow you to close
the browser and let it do its thing.
> I have PHP3 and MySQL on Win98 and am trying to run a script that loops
> through a file making process and it
, but my question
is...
can I not call functions from scripts that are included in a page that is
itself written out from a function?
Charlie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
50 matches
Mail list logo