[PHP] why doesn't $books[$val][display] show the value

2002-05-09 Thread Peter J. Schoenster
Hi, I've got an array like the following: $books = array( "1572316217" => array( category=> 'tech', display => 'Steve McConnell\'s Software Project Survival Guide', href=>

Re: [PHP] Re: why doesn't $books[$val][display] show the value

2002-05-09 Thread Peter J. Schoenster
On 9 May 2002 at 15:25, Philip Hallstrom wrote: > It has to do with precedence (I think). When inside a double quoted > string PHP evalutes "$books[$val]" *first* and doesn't catch that > there's more to it... > > You can do this: > > $html.= " Yaddda yadda " . $books[$val][display]; > > And

[PHP] array of objects???

2002-05-10 Thread J. Anderson Scarbrough
I have two classes. Organization and users. In the organization class I am try to keep an array of user objects but it does not seem to be taking. Can any help? See code below. class Organization { var $users = array(); function AddUser($oUser) { array_push($this->users,

[PHP] Remote Hosting: Trouble shooting

2002-05-11 Thread David J Jackson
Let's see if I can keep this short and simple. I'm having to problems with a hosting service. 1. index.php isn't being read as default index. 2. Form aren't working (see a below mail_call.php). 2A.The mail_call.php works on my localbox (apache-2.0.36 +PHP4.2.0) 2B. Hosting company,for reason they

[PHP] Compatiblity: Zend-1.20 + PHP4.2.1

2002-05-14 Thread David J Jackson
Is my hosting company trying to "pull the wool over my eyes"? There response to upgrading to 4.2.1, was that it isn't compatible with Zind optomizer 1.20? The only *issue* I seen with 4.2.x is of course register_globals! (which of course be changed in php.ini) I don't have a problem with them ho

[PHP] random quote script with flat file? (PHP Vault: Random Quote Script)

2002-05-18 Thread Timothy J. Luoma
I've been searching for some a little bit of PHP that will pull out one line from a flat text file and display it, changing it on reload. So far most of them use MySQL and the links that I did find all turn up 404... but one was called "PHP Vault: Random Quote Script" and it seemed like it would

Re: [PHP] random quote script with flat file? (PHP Vault: Random Quote Script)

2002-05-18 Thread Timothy J. Luoma
> list($usec,$sec)=explode(" ",microtime()); > mt_srand($sec * $usec); > $quotes = file("quotes"); > echo $quotes[mt_rand(0, (sizeof($quotes)-1))]; Yes!!! That works exactly! I love PHP! I love this list and look forward to the day when I can contribute something more than fascinating q

[PHP] PHP&Apache config to not require "?"

2002-05-21 Thread Timothy J. Luoma
Hello PHP'ers I am currently using the very cool PHPSlideshow(1) This gives me URLs that look like this: http://www.tntluoma.com/show.php?directory=nursery/ I would like to be able to have simpler URL like this: http://www.tntluoma.com/show/directory=nursery/ I was researchi

[PHP] Oracle Cursors

2002-05-29 Thread J. Anderson Scarbrough
I have a bound variable to an oracle cursor. I then use the OCIFetchInto() statment to move forward through the resultset. My question is how do i move backwards through the resultset? Or reset it to its starting position? thanks.

[PHP] Store in XML -> process w/ PHP -> Display in XHTML ?

2002-05-30 Thread Timothy J. Luoma
Summary: I've been looking for a resource (book, website, etc) that will address how to write/store information in XML and deliver it as XHTML (using PHP for the processing), but haven't had much luck. I know a little bit of PHP (just enough to be dangerous, but also to recognize how cool it is

Re: [PHP] Undefined variables

2002-05-30 Thread Christopher J. Crane
still errors. > > In Perl, it would simply be ignored. What do I do here. > > Here is a simple example of the code. > > if ($Task == "ShowVersion") { function ShowVersion(); } > elseif ($Task == "GetData") { function GetData(); print "$DataOutput"; } > elseif ($Task == "CreateImage") { function CreateImage(); } > else { print "Incorrect Variable or no Variable Supplies"; } > > > > > > Christopher J. Crane > Network Operations Manager > > IKON Office Solutions > 860.659.6464 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined variables

2002-05-30 Thread Christopher J. Crane
I like this piece of code. In fact, I convert all my scripts that use the older If/Else code. What would happen if the "break; " wasn't used. Would it just continue through the rest of the function to find another match??? "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">new

[PHP] XML to ARRAY

2002-06-01 Thread Christopher J. Crane
Here is a piece of code, that is close to doing what I want it to. The end result I would like to have is an array that is simple to work with. If the XML tag was RED HAT, I would like something like the following: $Tags['issue-name']. So I could print it out. Something like, print "$Tags['issue-

[PHP] Re: Is PHP used by U.S. Government? By U.S. DoD?

2002-06-01 Thread Christopher J. Crane
Another site that you should be aware of is for both internal and external, NASA uses PHP and MySQL, of which both are free. "John Christopher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I would like to use PHP in a project for a United States > Governmen

[PHP] Newman Says: Only one value from a msSQL field.

2002-06-01 Thread Philip J. Newman
Only one value from a msSQL field. I have many values the same in a field and would like to know how i can select one of each (not mating). $sql = "SELECT * FROM brands WHERE 1 ORDER BY `sId` DESC LIMIT 6"; lists everything .. ANy help would be cool. Phil

[PHP] PHP Coding Problem

2002-06-01 Thread Christopher J. Crane
Here is a piece of code, that is close to doing what I want it to. The end result I would like to have is an array that is simple to work with. If the XML tag was RED HAT, I would like something like the following: $Tags['issue-name']. So I could print it out. Something like, print "$Tags['issue-

[PHP] newbie help please

2002-06-02 Thread Christopher J. Crane
$Tags['issue-name']. So I could print it out. Something like, print "$Tags['issue-name']\n"; I was able to get a numerical representation of the array like, $Tags[5] and the value of that tag was "RED HAT", but then I would have to know what the position of the data I am looking for in the array.

[PHP] Re: Creating methods runtime

2002-02-21 Thread Matthew J Gray
No there really isn't. I wrote an extension that does it for me, but I am waiting to see what the second zend engine will have for this rather that using my hack. Maybe check the Zend Engine 2 mailing list to see what the future may hold. Matt Mika Tuupola wrote: > > Is there a way to

[PHP] PHP + Apache + IMAP-SSL + LDAP = Headache

2002-02-21 Thread J. Rashaad Jackson
./apache_1.3.22 --enable-track-vars Any help at all would be appreciated. Thanks! -- I have spoken. J. Rashaad JacksonUNIX Systems Administrator 2032 Samuel T. Dana Building(W) 734.615.1422 Ann

[PHP] random question

2002-02-22 Thread Robert J. Cissell
this is slightly o-t, but does anyone live in/near DC or the surrounding areas that i could ask questions of? thanks. robert

[PHP] Re: Guestbook question

2002-02-22 Thread Matthew J Gray
Take a look at mysql_data_seek() Matt James Taylor wrote: > > I have a really simple guestbook that allows someone to post to the book, > then it displays all the entries. Well, there are too many entries now for > just one page and it looks kinda wacky, so I wanted to do something where it >

[PHP] I need a random number eather one or two

2002-02-23 Thread Philip J. Newman
I'm trying to make a random number kind of a coin toss, heads = 1 = left tales = 2 = right any solutions Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012

[PHP] [NEWMAN] Collecting information from a my sql table.

2002-02-24 Thread Philip J. Newman
When I want to get just one record is there an easyer way than using the while loop that I have been using? Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012

Re: [PHP] [NEWMAN] Collecting information from a my sql table.

2002-02-24 Thread Philip J. Newman
RE: [PHP] [NEWMAN] Collecting information from a my sql table.Dang, thanks (o; - Original Message - From: Martin Towell To: 'Philip J. Newman' ; [EMAIL PROTECTED] Sent: Monday, February 25, 2002 12:22 PM Subject: RE: [PHP] [NEWMAN] Collecting information from a my

[PHP] My first piece of decent PHP (I think :-)

2002-02-25 Thread Timothy J. Luoma
Hello folks! I've been lurking the last 200 messages or so (i.e. 10-15 minutes ;-) I've already learned a lot, including that this list will be well worth the bandwidth. I hope my post will be worth the reading. I think I have my first contribution to make, and at the same time would like to a

[PHP] Custom 404 Page

2002-02-27 Thread J. Anderson Scarbrough
I am running apache and php. I want to create a custom 404 page for my site. I have created a .htaccess file and "ErrorDocument 404 /error.php3" line to it. If someone tries to view www.myserver.com/thispagedoesnotexist.htm the 404 page is displayed without issue. If someone tries to view w

[PHP] Checking for and @ and a .

2002-02-27 Thread Philip J. Newman
I'm trying to make an email field and I would like to check that its valid by checking for an @ and a . can someone point me in the right direction for this. THanks Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64

Re: [PHP] Checking for and @ and a .

2002-02-27 Thread Philip J. Newman
Yo thanks this dose work. (o; haven't got to functions in the book yet - Original Message - From: "Chris Burnett" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 28, 2002 8:25 AM

[PHP] global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma
Hello folks I have a virtual domain under Apache and do not have access to the global php.ini file Apache lets me set site-wide configuration in an /.htaccess file Is there something similar for PHP? All the references I've been able to find seem to refer to php.ini but do not say if I can ma

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma
On Wed, 27 Feb 2002, CC Zona wrote: > > I have a virtual domain under Apache and do not have access to the global > > php.ini file > > > > Apache lets me set site-wide configuration in an /.htaccess file > > > > Is there something similar for PHP? > > Forget "similar", you can set PHP config opti

[PHP] Re: Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Timothy J. Luoma
On Wed, 27 Feb 2002, Richie Chauhan wrote: > > > FYI I think your SSI syntax is wrong, it should be TjL ps -- I emailed Richie offlist that my experience with PHP was that it was MUCH faster than SSI, fwiw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma
On Wed, 27 Feb 2002, CC Zona wrote: > In that case, the "auto_prepend_file" config option may be of interest. > It's described on the page previously mentioned. Awesome... that was just what I needed. I hadn't made the connection before. Thanks TjL -- PHP General Mailing List (http://www.p

[PHP] getting a files time and date.

2002-02-28 Thread Philip J. Newman
Is there any way that PHP can grab the time and date of a file ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OMG your right ... $REMOTE_ADDR don't work in Samber 5.1, PHP4

2002-02-28 Thread Philip J. Newman
OK yah, this is a pain in the butt, $REMOTE_ADDR Dose not work in Sambar 5.1. Anyone have anyone have any solutions that can be used insteard? Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012

Re: [PHP] OMG your right ... $REMOTE_ADDR don't work in Samber 5.1, PHP4

2002-02-28 Thread Philip J. Newman
lison" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 11:15 AM Subject: Re: [PHP] OMG your right ... $REMOTE_ADDR don't work in Samber 5.1, PHP4 > Philip J. N

[PHP] What dll files do I need to go in my SYSTEM32 dir on the server?

2002-02-28 Thread Philip J. Newman
Someone tell me what DLL files you actually need to run PHP on isapi, do I need to have all the files in the /php/ dir? Takes up heaps of HDD space. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MacOS-style pager

2002-02-28 Thread Philip J. Newman
We'll for give you - Original Message - From: "James Arthur" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 12:39 PM Subject: Re: [PHP] MacOS-style pager > Sorry -- that was supposed to go to the KDE list :) > > On Monday 25 Feb 2002 20:12, James Arthur wrote:

[PHP] Re: Auto_prepend_file

2002-02-28 Thread Timothy J. Luoma
On Thu, 28 Feb 2002, Richard Baskett wrote: > What I want to do is have a function available to all my php files without > having to use an include in every page. So what I did was put this line in > my .htaccess file: > > php auto_prepend_file "pathtoscript/uniemail.php" On my system I had to

[PHP] how to use PHP on command line in windows

2002-03-01 Thread Peter J. Schoenster
Hi, I use NT for development and I like to write snippets of code and test them on my local box. I can do this in Perl. How can I do that in PHP without installing a webserver etc. etc. I guess I can install a version of PHP and just make sure I've got the path in my env. Thanks, Peter http:

[PHP] showing last mod. of *included* file

2002-03-01 Thread Timothy J. Luoma
I have been using this code to show the last modified time: (Note: the following was adapted from http://www.terrabyte.dc.com.au/phpscripts.php3 ) // the server is 13 hours ahead of Eastern Time USA $hourdiff = "13"; $timeadjust = ($hourdiff * 60 * 60); $eastern_time = date("d M Y g:ia",getlast

[PHP] Re: showing last mod. of *included* file

2002-03-01 Thread Timothy J. Luoma
> Use filemtime(). UGH! There are so many things to learn! I hate asking obvious questions like this, but I'm still not finding the right search terms. I appreciate your patience. FYI the answer to my problem was found at http://www.php.net/manual/en/function.filemtime.php [EMAIL PROTECTED]

[PHP] Passing verables along from Java Scripts

2002-03-02 Thread Philip J. Newman
Hi there, I have a few java scripts that have some verables that I wish to pass along to my PHP scripts. Any ideas where to start. Oh yah and noting to do with PHP -- Can anyone give me a small java script that will pop up a 400x400pix window when a button is clicked ... can't wortk that ou

Re: [PHP] Upload a CSV file to MySQL

2002-03-04 Thread Philip J. Newman
- Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Ben C." <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 8:04 AM Subject: Re: [PHP] Upload a CSV file to MySQL > Ben, > > > Is there an easy way to upload a CSV file into a MySQL table? Is > there als

[PHP] Help with a search array.

2002-03-06 Thread Philip J. Newman
ot; '%".$getme_arr[$i]."%'"; $sql .= " ORDER BY `id` ASC LIMIT 0, 30"; ... This should send to my sql ... SELECT * FROM `hyperlinks` WHERE 1 AND `keywords` LIKE "green" AND `keywords` LIKE "eggs" ORDER BY `id` ASC LIMIT 0, 30 How ever it reall

[PHP] Makeing $string into CAPS

2002-03-06 Thread Philip J. Newman
How can I make a $string = hello into $string = HELLO? Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

Re: [PHP] Help with a search array.

2002-03-06 Thread Philip J. Newman
--- From: "Hank Marquardt" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 10:21 AM Subject: Re: [PHP] Help with a search array. > $words = explode(" ",$keywords); > > foreac

Re: [PHP] Help with a search array.

2002-03-06 Thread Philip J. Newman
'"; $sql .= " ORDER BY `id` ASC LIMIT 0, 30"; hehe its works (o; thanks http://www.philipsdomain.com/hyperlinks/search.php (o; Thanks buddy (o; - Original Message - From: "Hank Marquardt" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PRO

[PHP] HELP UNIX vs Windows

2002-03-06 Thread Christopher J. Crane
I am a PERL scripter and I am just getting into PHP. My first few pages are simple but I am running into a few problems when changing OS. I included below a piece of code that works fine in windows but not on a linux box. Not sure what the differences would be The problem is that on the windo

[PHP] need help converting code to more efficient loop

2002-03-09 Thread Timothy J. Luoma
Hello! I am trying to reduce the size of the code below, which I believe can be simplified. I checked the 'for' entry in the manual as well as googling for some similar code, but did not have any luck. Here is what I have: $ICON_COUNT="0"; if ($SHOW_WAI_ICON != "no") { $ICON_COUNT++

[PHP] writing data to a file, pointers

2002-03-15 Thread Philip J. Newman
can someone point me in the right direction for writing data to a file. d:/site/file.txt infomation: [DATE] Information Please point me right. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

[PHP] From: Newman, using " and ' or ` in My Sql

2002-03-15 Thread Philip J. Newman
sql = "SELECT * FROM hyperlinks ORDER BY clicks DESC LIMIT 0, 10"; Any Comments on this? Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

[PHP] From: Newman, PHP on non PHP servers?

2002-03-16 Thread Philip J. Newman
requested from another server page. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

Re: [PHP] From: Newman, PHP on non PHP servers?

2002-03-16 Thread Philip J. Newman
d javatopten.php returns document.write(' Blar Blar'); - Original Message - From: "Michael Geier" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, March 17, 2002 9:06 AM Subject: Re: [PHP] From:

[PHP] [NEWMAN] make an "if" or "else if" statement from mysql.

2002-03-19 Thread Philip J. Newman
n update the record and use the accessID for that record. else if there isn't that $remote_addr in the table then it is added. I have yet to start on the code, so would some direction. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

Re: [PHP] Re: [NEWMAN] make an "if" or "else if" statement from mysql.

2002-03-19 Thread Philip J. Newman
w where ip = visitor_ip > } else { > // Normal insert > } > > -- > > Julio Nobrega. > > Um dia eu chego lá: > http://sourceforge.net/projects/toca > > Ajudei? Salvei? Que tal um presentinho? > http://www.submarino.com.br/wishlistclient.asp?wlid=6641767

Re: [PHP] Re: [NEWMAN] make an "if" or "else if" statement from mysql.

2002-03-20 Thread Philip J. Newman
ction: db_num_rows() in d:\hosting\crushme\index.php on line 20 anyone helo me fix this - Original Message - From: "Philip J. Newman" <[EMAIL PROTECTED]> To: "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, M

[PHP] [Newman] updating a mysql record if IP # is the same.

2002-03-20 Thread Philip J. Newman
What I'm trying to do: I have a log table called 'access'. When a user comes to my website there IP is logged, along with there DNS name. When they return with the same IP number the accessVIEW is updated +1 and the last number is assigned to them. Heres the Code: Can anyone help me. This s

[PHP] [newman] This don't work, "if" else if

2002-03-20 Thread Philip J. Newman
Can anyone tell me why this isn't working? What its ment to do is add an IP number to the database. if the IP is all ready in the database then it would update a counter. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

[PHP] Displaying SELECT results

2002-03-21 Thread Christopher J. Crane
I wrote a shopping cart, but I don't understand two things. 1) What is the best way to display like the first ten records and then a list of how many pages with 10 records on them...similar to like a search engine when it returns it's results. If I have 100 items I do not want to display all of th

[PHP] OMNICRON Problems

2002-03-21 Thread Christopher J. Crane
I just downloaded PHP from PHP.net and it's the newest version. I can not get it to work. I get the "Security Alert! PHP CGI cannot be accessed directly" message. I have edited the php.ini file and changed the "cgi.force_redirect" to "0" and back to "1" and everything else I could think of. I rest

RE: [PHP] FAQ

2002-03-22 Thread J. Scott Johnson
n topics that I'm not finding, please email them to me. When its done, and useful, we can see about getting it auto posted (which is a _good_ idea). Thanks Scott J. Scott Johnson Virtual: * * * * * * * * * * * * * * * * * * * * * * * * * * [EMAIL PROTECTED] http://www.fuzzygroup.com/ Yahoo IM:

RE: [PHP] URL information into a variable

2002-03-22 Thread J. Scott Johnson
Here you go: Scott -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 9:08 PM To: [EMAIL PROTECTED] Subject: [PHP] URL information into a variable How do I take the current URL and turn it into a variable? THANKS!! Phil -- PHP Gener

[PHP] [newman] Whats wrong with this MySql Statement?

2002-03-22 Thread Philip J. Newman
mysql_query("UPDATE access SET accessVIEW = accessVIEW+1 WHERE accessIP = $proxy_ip"); is there anything wrong with this? Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

RE: [PHP] looking for tutorial on XML parsing of attributes...

2002-03-23 Thread J. Scott Johnson
If you use xml_parse_into_struct, it does split out the attributes into the array it creates. I tested this with the standard manual code, adding a single attribute to the sample data i.e. $simple = "simple note"; $p = xml_parser_create(); xml_parse_into_struct($p,$simple,$vals,$index); xml_pars

[PHP] HELP!! New PHP not working

2002-03-23 Thread Christopher J. Crane
I just downloaded the new version of PHP. I installed it and I am using Omnicron HTTPD server version 2.09. The PHP that came with the server works, but when I installed the new version of PHP from PHP.NET, I got the following error.

Re: [PHP] [NEWMAN] Why?

2002-03-24 Thread Philip J. Newman
Good good question? - Original Message - From: "Alberto Wagner" <[EMAIL PROTECTED]> To: "Php General Mailling List" <[EMAIL PROTECTED]> Sent: Sunday, March 31, 2002 2:39 PM Subject: [PHP] Why? > Why everyone uses $foo or $foobar as examples? > > > > > -- > PHP General Mailing List

[PHP] [Newman] PHP causing exceptions in ntserver.

2002-03-26 Thread Philip J. Newman
hay everyone can someone recommend a good solution for stopping my server from crashing. I have 4. something installed on my server and something nuts happens with the memory causing the server to crash and generate an exception. The only way I can fix this is to re-start. I run the isapi m

[PHP] [Newman] Help Needed with a redir script.

2002-03-26 Thread Philip J. Newman
er. Any suggestions. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem sending email message, from Newman.

2002-03-26 Thread Philip J. Newman
erver 'ihug.co.nz' [250] received: 550 Syntax error in 'From' header: missing or malformed local part (expected word or "<"): failing address is: Philip J. Newman] Can anyone help with this $msg = "Thanks, $name. Your entry had been added, Good Luck."; $msg

Re: [PHP] Problem sending email message, from Newman.

2002-03-26 Thread Philip J. Newman
$email = [EMAIL PROTECTED] example - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 27, 2002 11:14 AM Subject: Re: [PHP

RE: [PHP] Create table

2002-03-27 Thread J. Scott Johnson
Closing connection to the db mysql_close($link); ?> * * * * * * * * * * * * * * * * * * * * * * * * * * J. Scott Johnson PHP Consulting and Design Work * * * * * * * * * * * * * * * * * * * * * * * * * * Virtual: * * * * * * * * * * * * * * * * * * * * * * * * * * [EMAIL PROTECTED] http:

RE: [PHP] Adding stuff to the end of strings

2002-03-27 Thread J. Scott Johnson
Shouldn't this work: $string = $string . "Some text added to the end"; Or am I thinking your question is simpler than it really is? * * * * * * * * * * * * * * * * * * * * * * * * * * J. Scott Johnson PHP Consulting

RE: [PHP] ASP vs PHP

2002-03-28 Thread J. Scott Johnson
I've seen a tool called Code Charge which claims to do that. http://www.codecharge.com/index2.html And, I think that the new Zend tools make this easier (but I really haven't started evaluation yet). www.zend.com Scott * * * * * * * * * * * * * * * * * * * * * * * * * * J. Scott J

RE: [PHP] PHP and XML/XLST/WDDX etc

2002-03-29 Thread J. Scott Johnson
anything else. NOTE -- I was doing SGML in 89 and XML ain't all that different. Scott * * * * * * * * * * * * * * * * * * * * * * * * * * J. Scott Johnson PHP Consulting and Design Work * * * * * * * * * * * * * * * * * * * * * * * * * * Virtual: * * * * * * * * * * * * * * * * * * * *

[PHP] From Newman: Just installed, get this error message.

2002-03-29 Thread Philip J. Newman
u can leave doc_root undefined. If you are running IIS, you may safely set cgi.force_redirect=0 in php.ini. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

[PHP] From Newman: Redirect function not working.

2002-03-29 Thread Philip J. Newman
I have just updated my copy of PHP and changed the INI file. Some of my redirect commands no longer work. Any Suggestions. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

[PHP] Some Problems that Newman has with PHP since reinstall.

2002-03-29 Thread Philip J. Newman
?? Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problems trying to use PHP to choose CSS

2002-03-29 Thread Timothy J. Luoma
Hello PHP friends I went searching (Core PHP Programm, php.net and google) for an answer, but didn't find anything that did what I want, namely: Use PHP to set the style sheet for a site. I am trying this method: Register a global variable ($CSS) using a FORM. Currently this does not w

Re: [PHP] Some Problems that Newman has with PHP since reinstall.

2002-03-30 Thread Philip J. Newman
] Some Problems that Newman has with PHP since reinstall. > On Saturday 30 March 2002 14:26, Philip J. Newman wrote: > > Hi People, > > I just installed PHP again, and am having some problems with a few things. > > When Posting to a form, veriables do not travel across the page

RE: [PHP] time question

2002-03-30 Thread J. Scott Johnson
Why wouldn't you use gmdate: http://www.php.net/manual/en/function.gmdate.php and then increment it yourself by an offset? Scott -Original Message- From: anders nawroth [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 30, 2002 5:05 PM To: [EMAIL PROTECTED] Subject: [PHP] time question

[PHP] Newman Says: Error when starting sessions.

2002-03-31 Thread Philip J. Newman
I'm trying to start a session, and I get this error. I have been told its something to do with a missing dir is my php dir? Warning: open(1\sess_0513b5c5d7021f1acdcf9f732032081f, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Philip J. Newman PhilipNZ :: Design Solu

[PHP] Re: Newman Says: Error when starting sessions.

2002-03-31 Thread Philip J. Newman
so it should be session.save_path = c:\php\temp at the moment it says session.save_path = 1 - Original Message - From: "Yasuo Ohgaki" <[EMAIL PROTECTED]> Newsgroups: php.general To: "Philip J. Newman" <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002

[PHP] Re: problems trying to use PHP to choose CSS

2002-03-31 Thread Timothy J. Luoma
On Sat, 30 Mar 2002, Hugh Bothwell wrote: Thanks to Hugh for his help... his PHP code was perfect... it was exactly what it took to get it done. Just a few minor notes: I was able to keep the echo <<< EOD statements which I prefer for this particular implementation, and I kept so tha

RE: [PHP] Problems reading a URL

2002-04-01 Thread J. Scott Johnson
Just as an aside, sourceforge seems to have changed the url. Its now: http://sourceforge.net/projects/snoopy/ (I was interested too). Scott -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 9:12 AM To: 'Stephen Phillips'; [EMAIL PROTECTED] Sub

[PHP] Question on Using fgets for Network I/O while Limiting Amount of Data Retrieved

2002-04-01 Thread J. Scott Johnson
reak; } } I've done it with and without the while loop, tried if tests and such. Its strange. Thanks in advance J. Scott Johnson Physical * * * * * * * * * * * * * * * * * * * * * * * * * * 80 Spring Road Nahant, MA 01908 Phone: * * * * * * * * * * * * * * * * * * * *

[PHP] how to sort by value in associative array

2002-04-06 Thread Peter J. Schoenster
Hi, I have the array below and I want to sort on language. Can't figure it out. Below the array is what I tried $ArrayOfNewsLinks = array( "http://dailynews.yahoo.com/fc/World/Brazil/"; => array( title => 'Yahoo Brazil News', category => 'news', language => 'English', ), "ht

[PHP] Re: Newbie and includes

2002-04-06 Thread Timothy J. Luoma
On Sat, 6 Apr 2002, Dean Ouellette wrote: > Newbie who has my include working with this > include ('includes/footer.php'); > ?> > > Problem is when I try to use this with files in other directories I use > include ('/includes/footer.php'); > ?> > > Then get file cannot be found. Is there a way

Re: [PHP] Re: how to sort by value in associative array

2002-04-06 Thread Peter J. Schoenster
On 6 Apr 2002, at 14:38, Chris Adams wrote: > On Sat, 6 Apr 2002 10:36:18 -0600, Peter J. Schoenster > <[EMAIL PROTECTED]> wrote: > > $ArrayOfNewsLinks = array( > > "http://dailynews.yahoo.com/fc/World/Brazil/"; => array( > > title => &

[PHP] Re: Phone number validation

2002-04-07 Thread Timothy J. Luoma
> I'd just add that validating international numbers against any sort of > list is bound to lead to extreme annoyance. Even telephone companies > have trouble keeping track of changes. Not to mention people who will just put in valid-format-but-false numbers when they are "required" No stran

[PHP] Object Confusion

2002-04-08 Thread Robert J. Cissell
If object of type A ($A) contains a variable $B which is an object of type B, how does a function within $B reference another variable in $A? Thanks.

[PHP] XML HELP

2002-04-08 Thread Christopher J. Crane
I am new to using XML and PHP for that matter. I have made some great progress with the latter however. My current problem is that I am trying to parse a relatively simple XML file. The file can be found at http://quotes.nasdaq.com/quote.dll?page=xml&mode=stock&symbol=ikn. I used pieces of a sampl

Re: [PHP] XML HELP

2002-04-08 Thread Christopher J. Crane
t_line_number($xml_parser))); } print ""; xml_parser_free($xml_parser); print "Array = $StockStuff[0]\n"; and I got an error that read "XML error: at line 67". I am not sure what that meant. "Analysis & Solutions" <[EMAIL PROTECTED]> wro

[PHP] Re: need help with your code?

2002-04-10 Thread Christopher J. Crane
Ok time out...the problem was simple I had each of the functions one it's own line because it was simple to see. When I add code to the functions then I do make it as indicated and easier to read. The problem was that I did not realize the 80 character columns width. I apologize but did not think

Re: [PHP] XML HELP

2002-04-10 Thread Christopher J. Crane
ou'd have to put it as the > first line inside the CharacterHandler function. > > > > print "1st Position in the array = $StockStuff[1]\n"; > ... snip ... > > Christopher J. Crane > > Network Operations Manager > > IKON Office Solutions > >

[PHP] cookies not being sent?

2002-04-11 Thread Timothy J. Luoma
I have been using PHP that someone from this list provided in order to provide a CSS switcher to my site (below). I noticed today that it isn't working (it was working previously). As far as I can tell, the problem is that cookies are not being sent. I tested this by setting Opera to 'display

Re: [PHP] php hosting

2001-10-20 Thread Michael J. Seely
HI - I've been using http://www.tierranet.com/services/ for several years. Good tech support. Lots of extras. >Anybody know of good reliable hosting that supports >php, and has a control panel to go with it? >thanks, >Heidi > >= >Heidi Belal >ICQ# 32127109 > >A bus stops at a bus station. >

Re: [PHP] how can I do this !! color text in html

2001-10-25 Thread Michael J. Seely
This should work. You can also use html code to use a style sheet ref. Hello Word"; ?> >i have txt file have this words > >-- >bla bla bla > >[phpcode] >echo 'hello word'; >?> >[/phpcode] > >bla bla bla >--- > >now I want to convert the code that are between [phpcode] and >[

[PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-09 Thread Lara J. Fabans
ce all the rest of the postvars are working, and I can see that the data's there in the HTTP_POST_VARSI just can't get to it. (pun not intended) Thanks, Lara - Lara J. Fabans Lodestone Software, Inc [EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Lara J. Fabans
at_do); // blank . . . for ($x=0;$x<=$row;$x++) { $whatdox = $whatdo[$x]; print $whatdox; // blank . . . //loop start Load Delete Change Category . . . - Lara J. Fabans Lodestone Software, Inc [EM

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Lara J. Fabans
to access the HTTP_POST_VARS? Thanks, Lara At 08:36 AM 11/10/2001 -0800, Lara J. Fabans wrote: >My bad for typing it in from memory. I'd retyped it in a few times, so I >thought i had it perfect. Here's the exact code: > >print_r ($HTTP_POSTVARS); // yeilds the a

<    5   6   7   8   9   10   11   12   13   14   >