Re: [PHP] Really Annoying Require/Include Error

2004-03-31 Thread Burhan Khalid
Mike R wrote: I am getting this error: Fatal error: Failed opening required '/home/sites/site111/web/news/settings/newsletter.settings.inc.php' (include_path='') in /home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7 From this piece of code: require

Re: [PHP] web statistics

2004-03-31 Thread Ben Joyce
I use AWStats for my web stats stuff. Pretty easy once the minimal configuration is done. http://awstats.sourceforge.net/ - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Elliot J. Balanza [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 7:00 PM Subject:

[PHP] RE: Simple one I think

2004-03-31 Thread Dave Carrera
Thanks for the insight Ben, Straight forward when I looked at your code examples and this answers a couple of other things to. Thanks once again for your clear help Dave C -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: 30 March 2004 17:08 To: Dave Carrera Subject:

RE: [PHP] adding days to a given date

2004-03-31 Thread Hawkes, Richard
You'll want to do something like this: $timeStamp = strtotime(2004-04-29); $timeStamp += 24 * 60 * 60 * 7; // (add 7 days) $newDate = date(Y-m-d, $timeStamp); The 'strtotime' function converts all sorts of standard dates to the Unix Epoch seconds (seconds since 1/1/1970). You then just

Re: [PHP] adding days to a given date

2004-03-31 Thread Jason Wong
On Wednesday 31 March 2004 17:08, Hawkes, Richard wrote: You'll want to do something like this: $timeStamp = strtotime(2004-04-29); $timeStamp += 24 * 60 * 60 * 7; // (add 7 days) $newDate = date(Y-m-d, $timeStamp); The 'strtotime' function converts all sorts of standard dates to the

RE: [PHP] adding days to a given date

2004-03-31 Thread Hawkes, Richard
What else can it do other than convert dates to time strings Jason? -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 31 March 2004 10:13 To: [EMAIL PROTECTED] Subject: Re: [PHP] adding days to a given date On Wednesday 31 March 2004 17:08, Hawkes, Richard wrote:

Re: [PHP] Re: STOP to send me mails !!!! Re: [PHP] Re: list to array help :-)

2004-03-31 Thread Lester Caine
Wabyan wrote: I do not know why I received this newsgroup infos, even if I like PHP :-) I will follow procedure unsbcribe But if you have subscribed for email delivery - unsubscribe does not work. I know I now get both eMail and have to use the newsgroup to post. There are MAJOR problems

Re: [PHP] adding days to a given date

2004-03-31 Thread Merlin
thanx Richard, that works excellent. Merlin Richard Hawkes wrote: You'll want to do something like this: $timeStamp = strtotime(2004-04-29); $timeStamp += 24 * 60 * 60 * 7; // (add 7 days) $newDate = date(Y-m-d, $timeStamp); The 'strtotime' function converts all sorts of standard dates

[PHP] WARNING! Virus

2004-03-31 Thread Firman Wandayandi
Be carefull guys, maybe email attacment contain a virus, NAV 2003 catch a virus [EMAIL PROTECTED] I don't know from which list, php-general, php-windows, pear-general, pear-dev or pear-cvs. Firman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] adding days to a given date

2004-03-31 Thread Merlin
Hi there, I am trying to add days to a given day, but somehow I am lost in all the time functions. This should be a standard function. Maybe someone has a good hint for me? This is the given day: 2004-04-29 I would like to add 2 days to it. So php should anyhow now how many days April has to

RE: [PHP] adding days to a given date

2004-03-31 Thread Harish
The time function available in PHP can be used for your requirement/ $two_days_later = date(Y-m-d,mktime(0,0,0,$month,$day+2,$year)); where $month, $day and $year are the respective parts of the given day $year=2004 $month=04 $day=29 You can specify the number of days to be +/- in the mktime

[PHP] Re: Sessions and PHP

2004-03-31 Thread pete M
THis does the same http://0x00.org/php/phpApplication/ pete Patrik Fomin wrote: Hi,, is there anyway to get the number of people connected to the site? in asp you just use Application and session_terminate to accomplish this is there anyway to do this in PHP ? regards patrick -- PHP General

RE: [PHP] What's the use in OOP?

2004-03-31 Thread Peter Albertsson
The OO paradigm maps very closely to problem domains, and is very easy to model. OO let us build more complex software with less effort. In general, OO code has more branches and hence use the stack more than procedural code does. That is why OO code is thought not to be as fast as procedural

[PHP] Re: plz help

2004-03-31 Thread Aidan Lister
Please ask a specific question, not a jumble of poor English ramblings. plz help is a stupid, stupid subject. Post again with a more appropriate title. Curlybraces Technologies Ltd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - Original Message - From:

[PHP] Re: PEAR::SOAP

2004-03-31 Thread Jason Barnett
Robby Russell wrote: I am trying to debug some xml issues with a SOAP/Client-based script. $sc = new SOAP_Client(...); is there a way to display the XML it attempts to send the server when I perform a $sc-call(...) *back to his google searches* Just as a note, you might try posting

[PHP] finding certain dates in the future (again)

2004-03-31 Thread Andy B
Hi... Is there any way to find say the third monday of the month (all months of the year) for any year (up to 2038) and show them in a combo box as exact dates? Have been trying to get something of the sort to work and havent quite figured out how thats supposed to work yet. I tried strtotime

Re[2]: [PHP] adding days to a given date

2004-03-31 Thread Richard Davey
Hello Richard, Wednesday, March 31, 2004, 10:14:39 AM, you wrote: JW strtotime() can do more than that, time to RTFM. RH What else can it do other than convert dates to time strings Jason? I have to agree with Jason on this one - the following code is just reinventing the wheel: $timeStamp =

RE: [PHP] finding certain dates in the future (again)

2004-03-31 Thread Harish
Hi try mktime you can get it there -Harish -Original Message- From: Andy B [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 4:59 PM To: [EMAIL PROTECTED] Subject: [PHP] finding certain dates in the future (again) Hi... Is there any way to find say the third monday of the

Re: [PHP] finding certain dates in the future (again)

2004-03-31 Thread Jason Wong
On Wednesday 31 March 2004 19:28, Andy B wrote: Is there any way to find say the third monday of the month (all months of the year) for any year (up to 2038) and show them in a combo box as exact dates? strtotime(third monday, mktime(0, 0, 0, $month, 1, $year)); I'm sure you can work out the

[PHP] array_search does not find the first element

2004-03-31 Thread Merlin
Hi there, I am trying to find values inside an array. This array always starts with 0. unfortunatelly array_search start searching with the array element 1. So the first element is always overlooked. How could I shift this array to start with 1, or make array-search start with 0? The array comes

Re: [PHP] array_search does not find the first element

2004-03-31 Thread Tom Rogers
Hi, Wednesday, March 31, 2004, 10:20:06 PM, you wrote: M Hi there, M I am trying to find values inside an array. This array always starts with 0. M unfortunatelly array_search start searching with the array element 1. M So the first element is always overlooked. M How could I shift this array

Re: [PHP] array_search does not find the first element

2004-03-31 Thread John Holmes
Merlin wrote: I am trying to find values inside an array. This array always starts with 0. unfortunatelly array_search start searching with the array element 1. So the first element is always overlooked. Please read the text inside the big Warning box on the following page:

[PHP] Re: array_search does not find the first element

2004-03-31 Thread Jason Barnett
Merlin wrote: Hi there, I am trying to find values inside an array. This array always starts with 0. Do you mean the keys? Or the values? Unnamed keys _should_ start with 0. unfortunatelly array_search start searching with the array element 1. So the first element is always overlooked. How

[PHP] fsockopen connection error on IIS

2004-03-31 Thread Michael Egan
Hello all, I'm working with somebody using IIS (honest - it's not me) to try and develop some web services whereby a site hosted on IIS is able to access data using a nusoap client with a nusoap server set up on a linux/apache server. I can do this satisfactorily from another linux/apache

[PHP] Hinding URL

2004-03-31 Thread Will
Hello all, I am hoping someone can help me. When someone brings up a page in the browser, is there a way to hide the URL in the browser bar to a set URL?? Example: I want them to see this URL in the browser: http://domain.com/test.htm But, I want them to see the url of http://domain.com in the

RE: [PHP] Hinding URL

2004-03-31 Thread James Nunnerley
Will, This isn't really a PHP thing... you can do it a number of ways... probably the best is to use frames. If you only have one then just create a single frameset with one frame in it Have a look at a HTML help site... Nunners -Original Message- From: Will [mailto:[EMAIL

RE: [PHP] Hinding URL

2004-03-31 Thread Hawkes, Richard
You could use HTML Frames, ensuring 'index.html' was your main frame. Not much PHP required though! -Original Message- From: Will [mailto:[EMAIL PROTECTED] Sent: 31 March 2004 14:38 To: [EMAIL PROTECTED] Subject: [PHP] Hinding URL Hello all, I am hoping someone can help me. When

Re: [PHP] Hinding URL

2004-03-31 Thread Duncan Hill
On Wednesday 31 March 2004 14:38, Will wrote: Hello all, I am hoping someone can help me. When someone brings up a page in the browser, is there a way to hide the URL in the browser bar to a set URL?? Why should a remote server have control over what a local client can display? The closest

RE: [PHP] Hinding URL[Scanned]

2004-03-31 Thread Michael Egan
Will, I had a look at this a while ago though never pursued it. If you do a search on google for url cloaking this should give you some pointers. I think the only way of doing it is to set up an empty frame and load all pages within that frame. This will hide more complex urls but with all the

RE: [PHP] Hinding URL {OT}

2004-03-31 Thread Jay Blanchard
[snip] When someone brings up a page in the browser, is there a way to hide the URL in the browser bar to a set URL?? Example: I want them to see this URL in the browser: http://domain.com/test.htm But, I want them to see the url of http://domain.com in the browser bar. Is this possible?? I hope

RE: [PHP] Hinding URL[Scanned]

2004-03-31 Thread Hawkes, Richard
So we're all agreed on Frames then?! -Original Message- From: Michael Egan [mailto:[EMAIL PROTECTED] Sent: 31 March 2004 14:43 To: Will; [EMAIL PROTECTED] Subject: RE: [PHP] Hinding URL[Scanned] Will, I had a look at this a while ago though never pursued it. If you do a search on

RE: [PHP] Hinding URL[Scanned]

2004-03-31 Thread Will
Thanks everyone! :) I was not sure what it was called. Thanks again, ~WILL~ PS: Sorry I thought you could do something in PHP. -Original Message- From: Michael Egan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 8:43 AM To: Will; [EMAIL PROTECTED] Subject: RE: [PHP] Hinding

Re: [PHP] Hinding URL{ot}

2004-03-31 Thread John W. Holmes
From: Will [EMAIL PROTECTED] Thanks everyone! :) I was not sure what it was called. Thanks again, ~WILL~ PS: Sorry I thought you could do something in PHP. Don't think for a second that you're actually hiding anything here. The only people you'll fool are newbies browsing the web. While

RE: [PHP] Hinding URL{ot}[Scanned]

2004-03-31 Thread Michael Egan
John, I agree with you but when I first looked at this I too thought there was some way of doing this in php which might look more elegant. Seeing urls such as www.mydomain.com/index.php?article_id=2id=e5t28er647ryh362hy67eh4563yh4635 looks fairly cumbersome and I'm sure I've seen something

RE: [PHP] fsockopen connection error on IIS[Scanned]

2004-03-31 Thread Michael Egan
Problem solved. It seems there was a proxy server involved which was screwing things up. Regards, Michael Egan -Original Message- From: Michael Egan Sent: 31 March 2004 14:20 To: PHP General (E-mail) Subject: [PHP] fsockopen connection error on IIS[Scanned] Hello all, I'm

RE: [PHP] Hinding URL{ot}[Scanned]

2004-03-31 Thread Matt Matijevich
snip I agree with you but when I first looked at this I too thought there was some way of doing this in php which might look more elegant. Seeing urls such as www.mydomain.com/index.php?article_id=2id=e5t28er647ryh362hy67eh4563yh4635 looks fairly cumbersome and I'm sure I've seen something about

RE: [PHP] Hinding URL{ot}[Scanned]

2004-03-31 Thread Aaron Wolski
On seeing that the only way of doing this was to use frames I decided that the costs of doing this probably outweighed what is in effect a purely cosmetic issue. Never ever underestimate the cosmetic factor when you are talking about Usability and search engines. For example, if you are

Re: [PHP] Hinding URL{ot}[Scanned]

2004-03-31 Thread John W. Holmes
From: Michael Egan [EMAIL PROTECTED] I agree with you but when I first looked at this I too thought there was some way of doing this in php which might look more elegant. Seeing urls such as www.mydomain.com/index.php?article_id=2id=e5t28er647ryh362hy67eh4563yh4635 looks fairly cumbersome

RE: [PHP] Hinding URL{ot}[Scanned]

2004-03-31 Thread Michael Egan
Matt, Many thanks for these excellent links - I think I might have reached a different conclusion if I'd come across these at the outset. Cheers, Michael Egan -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: 31 March 2004 15:11 To: [EMAIL PROTECTED]

RE: [PHP] Hinding URL{ot}[Scanned]

2004-03-31 Thread Aaron Wolski
-Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Do a search for search engine friendly URLs or somethig along those lines to see how to fix this. Using frames is not a very elegant solution. I'm not sure how/if search engines will index your pages if you have

[PHP] Is There a Stack Trace for Errors?

2004-03-31 Thread Hawkes, Richard
Hi Gang, I'm now writing the dreaded support document for the code, and I need to enhance my PHP to show error numbers so we can diagnose where it failed. All fine so far, but I've found a couple of functions that can be called from various other functions, so it's difficult to track where it

[PHP] Recode and OpenBSD

2004-03-31 Thread Michael Rasmussen
Hi all, Is recode broken in php4.3.3 on OpenBSD? When I try recode it returns an empty string! The same string used in mb* and iconv performs as expected. -- Hilsen/Regards Michael Rasmussen -- You would if you could but you can't so

Re: [PHP] Is There a Stack Trace for Errors?

2004-03-31 Thread Red Wingate
Maybe you would like to check out debug_bracktrace(); Hawkes, Richard wrote: Hi Gang, I'm now writing the dreaded support document for the code, and I need to enhance my PHP to show error numbers so we can diagnose where it failed. All fine so far, but I've found a couple of functions that can

Re: [PHP] determining number of rows in a mysql table

2004-03-31 Thread Richard Davey
Hello Andy, Tuesday, March 30, 2004, 6:48:47 AM, you wrote: AB $rows=mysql_query(select count(*) as count from users); AB $count=mysql_fetch_array($rows); There's no need to extract the result into an array in this instance, why bother giving PHP that extra overhead? Unless the query failed,

RE: [PHP] Is There a Stack Trace for Errors?

2004-03-31 Thread Hawkes, Richard
Thank you very much. Perhaps I should RTFM eh? Much better to get good advice though wouldn't you say?! Cheers Richard -Original Message- From: Red Wingate [mailto:[EMAIL PROTECTED] Sent: 31 March 2004 16:16 To: Hawkes, Richard Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Is There a Stack

[PHP] Regex

2004-03-31 Thread Brent Clark
Hi all does anyone know of a regex expression to get only the number number from after the Code 39 Kind Regards Brent Clark 1 barcodes found Code 39-10005215 This is the search1 barcodes found 2 barcodes found Code 39-10005216 Datalogic 2 of 5-4 This is the search2 barcodes found 1 barcodes

Re: [PHP] Regex

2004-03-31 Thread Red Wingate
preg_match( #39-([0-9]{8})# , $source , $result ); Brent Clark wrote: Hi all does anyone know of a regex expression to get only the number number from after the Code 39 Kind Regards Brent Clark 1 barcodes found Code 39-10005215 This is the search1 barcodes found 2 barcodes found Code

Re: [PHP] Regex

2004-03-31 Thread Burhan Khalid
Brent Clark wrote: Hi all does anyone know of a regex expression to get only the number number from after the Code 39 Kind Regards Brent Clark 1 barcodes found Code 39-10005215 $barcodes = Code 39-10005216; $parts = explode(,$barcodes); echo Number is .$parts[1]; Might be faster. -- PHP

Re: [PHP] Regex

2004-03-31 Thread Red Wingate
Faster, but wrong. Take a look at his question and examples. Burhan Khalid wrote: Brent Clark wrote: Hi all does anyone know of a regex expression to get only the number number from after the Code 39 Kind Regards Brent Clark 1 barcodes found Code 39-10005215 $barcodes = Code 39-10005216;

Re: [PHP] File Download link not working in PHP 4.3.4

2004-03-31 Thread Andrew Hauger
Curt, Thanks for the suggestions. Unfortunately, no luck yet. Here's the current version of the affected lines of code: $file_type = vnd.ms-excel; $file_ending = xls; header ( Content-Type: application/$file_type ); header ( 'Content-Disposition: attachment; filename=product.'.$file_ending.'' );

Re: [PHP] Regex

2004-03-31 Thread John W. Holmes
From: Burhan Khalid [EMAIL PROTECTED] Brent Clark wrote: Hi all does anyone know of a regex expression to get only the number number from after the Code 39 Kind Regards Brent Clark 1 barcodes found Code 39-10005215 $barcodes = Code 39-10005216; $parts = explode(,$barcodes);

Re: [PHP] determining number of rows in a mysql table

2004-03-31 Thread John W. Holmes
From: Richard Davey [EMAIL PROTECTED] AB $rows=mysql_query(select count(*) as count from users); AB $count=mysql_fetch_array($rows); There's no need to extract the result into an array in this instance, why bother giving PHP that extra overhead? Unless the query failed, the value count

Re: [PHP] File Download link not working in PHP 4.3.4

2004-03-31 Thread John W. Holmes
Check the comments on this page: http://us2.php.net/manual/en/function.session-cache-limiter.php ---John Holmes... - Original Message - From: Andrew Hauger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 11:18 AM Subject: Re: [PHP] File Download link not working

[PHP] Stop/Start a perl script

2004-03-31 Thread CurlyBraces Technologies \( Pvt \) Ltd
by using php technology, is there any possibility to stop/start perl script ina remote machine ? thanx in advance curlys -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: STOP to send me mails !!!! Re: [PHP] Re: list to array

2004-03-31 Thread Justin Patrin
Lester Caine wrote: Wabyan wrote: I do not know why I received this newsgroup infos, even if I like PHP :-) I will follow procedure unsbcribe But if you have subscribed for email delivery - unsubscribe does not work. I know I now get both eMail and have to use the newsgroup to post.

[PHP] OOP Class Interaction

2004-03-31 Thread Jonathan Pitcher
I have been writing OOP programs for the past couple years. Over these years I have run into the same problem, I have solved the problem in many different ways. I was wondering if there is a recommended way to solve the problem I have listed below. To keep it simple, lets say I have 3

[PHP] re:[PHP] determining number of rows in a mysql table

2004-03-31 Thread Andy B
$count = mysql_result($rows, 0, 'count'); i guess that would work too if all you need is the # of rows in a table... if you need it in an array then... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OOP Class Interaction

2004-03-31 Thread Robert Cummings
On Wed, 2004-03-31 at 12:55, Jonathan Pitcher wrote: I have been writing OOP programs for the past couple years. Over these years I have run into the same problem, I have solved the problem in many different ways. I was wondering if there is a recommended way to solve the problem I have

[PHP] globals

2004-03-31 Thread Daniel Bahena
is it too bad to have the globals = on in /etc/php.ini ? Best wishes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] globals

2004-03-31 Thread Robert Cummings
On Tue, 2004-03-30 at 20:31, Daniel Bahena wrote: is it too bad to have the globals = on in /etc/php.ini ? It is strongly advised to have this set to off for security and maintainability reasons. Cheers, Rob. -- .. | InterJinn

Re: [PHP] re:[PHP] determining number of rows in a mysql table

2004-03-31 Thread Richard Davey
Hello Andy, Wednesday, March 31, 2004, 7:02:59 PM, you wrote: AB i guess that would work too if all you need is the # of rows in a table... AB if you need it in an array then... ... then you read the part of my post that said There's no need to extract the result into an array **in this

[PHP] re:[PHP] determining number of rows in a mysql table

2004-03-31 Thread Andy B
I **highlighted** the relevant part for you :) i know what you mean... if you highlighted the part you were talking about with color then would explain why i didnt get what part you were talking about... my screen reader doesnt pay much attention to color highlights so probably missed it...

Re: [PHP] Re: TUX web server replacement

2004-03-31 Thread William Lovaton
Hi Manuel, El mar, 30-03-2004 a las 18:11, Manuel Lemos escribió: This might work... I gues that any web server to make advantage of the new kernel 2.6 has to make explicit use of the sendfile() system call. I know for sure that boa does it. I don't know about thttpd or apache2.

[PHP] Dynamic picture loading

2004-03-31 Thread Lieve Vissenaeken
Hi, Has anyone the code for me to load dynamic pictures in a website? I mean: so that any user on my website can add dynamic a picture to that website which is immedeatly visible? Thanks for helping. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] [ANNOUNCE] PHP extension for neural networks

2004-03-31 Thread Evan Nemerson
Hi everyone, I just wanted to send a one-time announcement regarding a new extension that we're (the FANN project) releasing today. URL: http://prdownloads.sourceforge.net/fann/fannphp-0.1.0.tar.bz2?download fann (Fast Artificial Neural Network Library) implements multilayer feedforward ANNs.

[PHP] extracting data from XML file to PHP variable ..

2004-03-31 Thread Kenn Murrah
Greetings. I've been RTFM all morning and for the live of me can't figure out how to relate the element name to its data, e.g. if the element name is fullname and the data is John Doe' how do I achieve $fullname = John Doe I must not be understanding how xml_parse works, and my searches have

[PHP] Re: Stop/Start a perl script

2004-03-31 Thread Jason Barnett
Curlybraces Technologies Ltd wrote: by using php technology, is there any possibility to stop/start perl script in a remote machine ? thanx in advance curlys You probably want to check out XML-RPC. You'd create server/client scripts that pass xml messages back and forth. As long as your

[PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Jason Barnett
Kenn Murrah wrote: Greetings. I've been RTFM all morning and for the live of me can't figure out how to relate the element name to its data, e.g. if the element name is fullname and the data is John Doe' how do I achieve $fullname = John Doe I must not be understanding how xml_parse works,

Re: [PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Kenn Murrah
Jason: Yes, I am aware of the problem. However, for the very simple XML files that I'm being asked to process, it's not an issue -- each file has, for example, one and only one occurrence of fullname So, while I realize that any solution I achieve for this project will have virtually no

[PHP] Printer functions

2004-03-31 Thread Lou Apolonia
My question involves sending html to the printer to be printed properly. Here is my code: $handle = printer_open('Lexmark Z25-Z35'); printer_start_doc($handle, test); printer_start_page($handle); printer_set_option($handle, PRINTER_MODE, 'raw'); printer_set_option($handle, PRINTER_PAPER_FORMAT,

Re: [PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Jason Barnett
Kenn Murrah wrote: Jason: Yes, I am aware of the problem. However, for the very simple XML files that I'm being asked to process, it's not an issue -- each file has, for example, one and only one occurrence of fullname So, while I realize that any solution I achieve for this project

[PHP] Build on Mac OS X

2004-03-31 Thread John Nichel
I'm trying to get php running on a Mac OS X box, but even though the configure of php runs fine, I get this when I try to build php make: *** No rule to make target `files/php-4.3.5/sapi/apache/sapi_apache.c', needed by `sapi/apache/sapi_apache.lo'. Stop. This is the only thing it

Re: [PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Justin Patrin
Jason Barnett wrote: Kenn Murrah wrote: Jason: Yes, I am aware of the problem. However, for the very simple XML files that I'm being asked to process, it's not an issue -- each file has, for example, one and only one occurrence of fullname So, while I realize that any solution I

Re: [PHP] Build on Mac OS X

2004-03-31 Thread John Nichel
John Nichel wrote: I'm trying to get php running on a Mac OS X box, but even though the configure of php runs fine, I get this when I try to build php make: *** No rule to make target `files/php-4.3.5/sapi/apache/sapi_apache.c', needed by `sapi/apache/sapi_apache.lo'. Stop. This is the

Re: [PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Jason Barnett
Hmmm, that looks interesting. On another note, I've made a simple parse based on PEAR's XML_Parser that parses an entire XML tree into associative arrays. Feel free to use it. http://www.reversefold.com/~papercrane/XML_Parser_Assoc/Assoc.phps I haven't used that class before, or else I

Re: [PHP] re:[PHP] determining number of rows in a mysql table

2004-03-31 Thread Richard Davey
Hello Andy, Wednesday, March 31, 2004, 7:21:44 PM, you wrote: AB i know what you mean... if you highlighted the part you were talking about AB with color then would explain why i didnt get what part you were talking AB about... my screen reader doesnt pay much attention to color highlights so AB

[PHP] Help w/Bug

2004-03-31 Thread Joey
While running the below code, a form passes the image name to this code, the values when executed are as follows: Step1: upload_file_type: Step1: upload_file: C:\\Documents and Settings\\jack.IISG\\Desktop\\BVP.jpg Step1: extention: Step2: upload_file_type: Step2: upload_file: C:\\Documents

RE: [PHP] Help w/Bug

2004-03-31 Thread Chris W. Parker
Joey mailto:[EMAIL PROTECTED] on Wednesday, March 31, 2004 2:54 PM said: Step1: upload_file_type: Step1: upload_file: C:\\Documents and Settings\\jack.IISG\\Desktop\\BVP.jpg Step1: extention: Step2: upload_file_type: Step2: upload_file: C:\\Documents and

[PHP] re:[PHP] determining number of rows in a mysql table

2004-03-31 Thread Andy B
I don't use colour in emails to this (or any) list, sorry. I would have hoped the screen reader said asterisk asterisk highlighted all i heard it say was *** on the line that said something like ***highlighted... but thats whas only when you referrenced to you highlighted the stuff... anyways

[PHP] file super global and functions

2004-03-31 Thread Bruno Santos
hello all i've a problem, serious one. how can i pass the name of a file upload to a function ? i need to do the upload of 1 file, but want to use a function, so that the main file stays small the problem is, when passing the file name, throw the $_FILES super global , is not recognized in

Re: [PHP] PHP charset encoding

2004-03-31 Thread Ma Siva Kumar
On Tuesday 30 March 2004 19:31, Rob Ellis wrote: On Tue, Mar 30, 2004 at 11:23:03AM +0300, nabil wrote: When submitting a data from an HTML page and inserting them in MySQL: what encoding they will be ? is it the page encoding? the field size like VARCHAR 15 won't fit the same in

[PHP] [Newbie Guide] For the benefit of new members

2004-03-31 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

Re: [PHP] *FIXED* PHP Seg Faults, How to Trackdown?

2004-03-31 Thread Tim Schaab
Ok, so it took some tracking, but I believe I have found the problem. The problem was with the putenvs conflicting with mod_perl. The full rundown is from an old php-install post. See it at http://www.phpbuilder.com/lists/php-install/2003092/0018.php The summary is mod_perl and PHP on my

[PHP] re:[PHP] [Newbie Guide] For the benefit of new members

2004-03-31 Thread Andy B
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first.

RE: [PHP] [SOLVED]File Download link not working in PHP 4.3.4

2004-03-31 Thread Andy Hauger
I was using an offline copy of the PHP manual without the discussion included on the online page pointed to by the link in John's response. The discussion on the online page provided the information I needed to understand the full extent of the caching issue. The application is now working

[PHP] PHP and HTTPS POSTs

2004-03-31 Thread Chris Streeter
Has anyone had any problems with the $_POST super global not working in a HTTPS environment? My code works perfectly fine through a unsecured HTTP POST but when I do an HTTPS POST it only handles a few variable (I think 15 or 16). Any more than that and it looses all the $_POSTed variables. Has

Re: [PHP] Help w/Bug

2004-03-31 Thread Curt Zirzow
* Thus wrote Joey ([EMAIL PROTECTED]): ... if($upload_file !=) { //image size esle will ignore ... $img_max_width=750; $img_max_height=750; $extention= $file_type1 = image/pjpeg; Here is your bug as you described. $extention is assigned the value of $file_type1 after it is assigned

RE: [PHP] Regex

2004-03-31 Thread Daevid Vincent
Just thought I'd throw this amazing tool out there as I just discovered it too: http://www.weitz.de/regex-coach/ Windows and linux versions for free! -Original Message- From: Brent Clark [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 7:29 AM To: [EMAIL PROTECTED]

[PHP] I think this is a bug...cant use exec commands.

2004-03-31 Thread Brian Duke
I can't seem to use the shell_exec() command. Here is the program: ?php $data = shell_exec(free -b); $data = str_replace(' ',' ',$data); $data = str_replace(' ',' ',$data); $data = str_replace(' ',' ',$data); $data = str_replace(' ',' ',$data); $dataArray = explode(' ',$data);

[PHP] Checkdnsrr ?

2004-03-31 Thread Dave Carrera
Hi List, Is using checkdnsrr a good way to tell if a domain name is available ? If I ask checkdnsrr to look for 'NS' records and the result comes back as false then dose that mean a domain name is available to use ? Also what dose checkdnsrr use to lookup records. Is it the internal DNS server

RE: [PHP] Re: [PHP-WIN] ASP.NET web control in PHP?

2004-03-31 Thread Ralph Guzman
You might also want to look at opensource frameworks like Ampoliros or Ez publish -Original Message- From: Ignatius Reilly [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 9:21 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Bill Subject: [PHP] Re: [PHP-WIN] ASP.NET web control in