Re: [PHP] SimpleXML returning Object names with hyphens

2005-12-23 Thread Charlie Davis
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

[PHP] SimpleXML returning Object names with hyphens

2005-12-23 Thread Charlie Davis
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

Re: [PHP] Question about executing PHP script

2004-06-28 Thread Charlie Don
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

[PHP] Question about executing PHP script

2004-06-28 Thread Charlie Don
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

Re: [PHP] resubmitting $POST data to another script

2004-03-03 Thread Charlie Fiskeaux II
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

Re: [PHP] resubmitting $POST data to another script

2004-03-03 Thread Charlie Fiskeaux II
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

Re: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Charlie Fiskeaux II
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

[PHP] resubmitting $POST data to another script

2004-03-02 Thread Charlie Fiskeaux II
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

Re: [PHP] saving form data - calling another script from PHP?

2004-02-24 Thread Charlie Fiskeaux II
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

Re: [PHP] saving form data

2004-02-23 Thread Charlie Fiskeaux II
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

Re: [PHP] saving form data

2004-02-23 Thread Charlie Fiskeaux II
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?

Re: [PHP] saving form data

2004-02-23 Thread Charlie Fiskeaux II
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

[PHP] saving form data

2004-02-23 Thread Charlie Fiskeaux II
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

[PHP] creating a very simple cms with one login and one mySQL database

2003-12-30 Thread Charlie Fiskeaux II
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:

[PHP] Session Issues when Cookies are Disabled

2002-12-12 Thread charlie collins
. 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

[PHP] Problem with sessions

2002-11-12 Thread Charlie Fowler
. 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

[PHP] dba_open () help

2002-10-02 Thread 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

[PHP] sapdb and odbc_* binding

2002-04-08 Thread Charlie Killian
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

[PHP] Re: Function that escapes special caracters from regular expressions

2002-04-07 Thread Charlie Killian
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

[PHP] Re: Test for whole number.

2002-04-07 Thread Charlie Killian
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

[PHP] Test for whole number.

2002-04-07 Thread Charlie Killian
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

Re: [PHP] Test for one bit set?

2002-04-07 Thread Charlie Killian
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 > >

[PHP] Test for one bit set?

2002-04-07 Thread Charlie Killian
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

[PHP] Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE ?)

2002-03-15 Thread Charlie Killian
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

[PHP] Variable Variables and Mulitdimensional Arrays

2002-03-15 Thread Charlie Killian
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

Re: [PHP] set_error_handler() not catching some errors

2002-02-09 Thread Charlie Killian
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

[PHP] set_error_handler() not catching some errors

2002-02-09 Thread Charlie Killian
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

RE: [PHP] Math rounding problem

2002-02-08 Thread Charlie Killian
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

[PHP] Math rounding problem

2002-02-08 Thread Charlie Killian
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

[PHP] changing unix password in php?

2002-01-22 Thread Charlie Grosvenor
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

[PHP] register_globals not turning off

2001-12-13 Thread Charlie Killian
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

[PHP] Part Time PHP/MySQL Work Available in Wash. DC

2001-11-08 Thread Charlie Romero
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]

[PHP] archives posting ip address not name

2001-09-20 Thread Charlie Killian
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

[PHP] Re: Generating variable names 'on the fly'

2001-09-20 Thread Charlie Killian
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, >

[PHP] Re: double values in array

2001-09-12 Thread Charlie Killian
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_

[PHP] virtual() ignoring str_replace()

2001-08-19 Thread Charlie Romero
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]

Re: [PHP] Unusual error.

2001-07-20 Thread Charlie Llewellin
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

[PHP] starting Apache: unable to find OpenLDAP library path

2001-06-21 Thread Charlie Hileman
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

[PHP] Got error binding a socket.

2001-06-21 Thread Charlie Cheung
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

Re: [PHP] Want to send email in html format

2001-04-24 Thread Charlie Llewellin
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

Re: [PHP] Geeklog or phpSlash?

2001-04-12 Thread Charlie Llewellin
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

Re: [PHP] Geeklog or phpSlash?

2001-04-12 Thread Charlie Llewellin
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

[PHP] Geeklog or phpSlash?

2001-04-12 Thread Charlie Llewellin
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

Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Charlie Llewellin
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]

Re: [PHP] Change dir mode to writable for uploading..

2001-02-26 Thread Charlie Llewellin
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

Re: [PHP] validating an e-mail address entry

2001-02-16 Thread Charlie Llewellin
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

Re: [PHP] ereg problem

2001-02-14 Thread Charlie Llewellin
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

Re: [PHP] $PHP_SELF in Netscape PART 2

2001-02-14 Thread Charlie Llewellin
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

Re: [PHP] Run a script for 20minutes

2001-02-12 Thread Charlie Llewellin
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

[PHP] errors when included functions call functions

2001-02-01 Thread Charlie Llewellin
, 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