[PHP] Re: connect

2002-01-02 Thread George Nicolae
look at http://www.phpbuilder.com/columns/siddarth2228.php3 for a good tutorial. -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com Gendeng [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Select box won't display in Netscape 4.xx

2002-01-02 Thread Martin Schichl
Dear Edwin! Yes, I have had this problem before ... My problem was, that I a line in my style sheets, which could not be solved by NS. (I think it was border?) Yours, Martin I'm developing a website for multiple browsers. In Netscape 4.xx (both Win98 and Linux versions), the php-scripts

RE: [PHP] Select box won't display in Netscape 4.xx

2002-01-02 Thread Jerry Verhoef (UGBI)
Did you forget the FORM /FORM tags? Jerry -Original Message- From: Martin Schichl [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:57 AM To: Edwin Boersma; [EMAIL PROTECTED] Subject: Re: [PHP] Select box won't display in Netscape 4.xx Dear Edwin! Yes, I have had this

[PHP] New Indian PHP User Group Mailing List

2002-01-02 Thread Tarique Sani [EMAIL PROTECTED]
Hello Kind folks First apologies for a slightly off topic posting Second - There is now an active Indian PHP User Group. The mailing list is hosted at YahooGroups: http://groups.yahoo.com/group/in-phpug To subscribe, please send a blank message to [EMAIL PROTECTED] The list aims to cater to

Re: [PHP] connect MS Access

2002-01-02 Thread Paul Roberts
yes you can connect via ODBC. - Original Message - From: Matt Friedman [EMAIL PROTECTED] To: 'gendeng' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 3:32 AM Subject: RE: [PHP] connect MS Access Please do not send html emails to this list. Send only plain text

[PHP] php newbie

2002-01-02 Thread Fady Fouad Shehata
hi i am new in php ,i just wanted to ask before i begin learning php ,well can i design php on my personal computer or i need a server to design php ,and the second question is do i need a specific program to design php or i can use my html editor for that -- PHP General Mailing List

RE: [PHP] php newbie

2002-01-02 Thread Niklas Lampén
To test your PHP scripts you do need a server with PHP. It's very easy to setup one on to you local machine + there is many completely free ones. Niklas -Original Message- From: Fady Fouad Shehata [mailto:[EMAIL PROTECTED]] Sent: 31. joulukuuta 2001 4:34 To: [EMAIL PROTECTED]

RE: [PHP] php newbie

2002-01-02 Thread Martin Schichl
To design, you just need a text editor (or html editor) Martin At 13:24 02.01.02 +0200, Niklas Lampén wrote: To test your PHP scripts you do need a server with PHP. It's very easy to setup one on to you local machine + there is many completely free ones. Niklas -Original

RE: [PHP] php newbie

2002-01-02 Thread Niklas Lampén
Yep, but you can't do much without testing your scripts. Niklas -Original Message- From: Martin Schichl [mailto:[EMAIL PROTECTED]] Sent: 2. tammikuuta 2002 13:37 To: [EMAIL PROTECTED]; Php-General Subject: RE: [PHP] php newbie To design, you just need a text editor (or html editor)

[PHP] Extract a string from a string

2002-01-02 Thread qartis
I've got a search script, where you can search for a string and it will return links to the HTML files that contain the string. I've also written a function, where it will highlight each instance of the searched string by using: $asdf = fopen($logfile, r); $contents =

php-general Digest 2 Jan 2002 11:55:50 -0000 Issue 1087

2002-01-02 Thread php-general-digest-help
php-general Digest 2 Jan 2002 11:55:50 - Issue 1087 Topics (messages 79189 through 79214): Re: Oracle 79189 by: Martin Towell Hosting provider... 79190 by: Matt Moreton 79191 by: Kurt Lieber 79193 by: steph.philedom2k.com 79203 by: Boaz Yahav Mysql

Re: [PHP] Re: Generate Alphabet

2002-01-02 Thread Daniel Grace
Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 2. print $letter++ -- why doesn't this evaluate to b at the first loop when it's already 'a'? Ok, this I may be able to explain because it's neither print ++$letter nor print ($letter++), but I

[PHP] Connect to IBM DB2

2002-01-02 Thread Jerry
To connect to Microsoft SQL 7 I'm using the following script which works fine: ?php $query=SELECT * FROM DB1; $queryupd=UPDATE DB1 SET dateval='20010101' where dateval='2101'; $hostname = dbserver; $username = username; $password = pwd; $dbName = DB;

[PHP] Internal working of function()

2002-01-02 Thread Emile Bosch
If you have lots (let's say 100 or 200) of functions() in PHP does this slow everything down a lot? How is the interal working of a function? Warm regards, Emile Bosch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] XSLT in PHP

2002-01-02 Thread Emile Bosch
Hi List, XSLT seems to be such an hot topic these days now i tried it out and i find it cool too. But is there anyway how i can make XSLT less strict? When i make a stylesheet XSLT is too picky..I can't make an XSLT stylesheet very fast because you have to close everything correct etc.. When i

[PHP] Boolean SQL query builder

2002-01-02 Thread Rosser, Chris
I'm in the process of coding a db search engine, and am spending excessive amounts of time putting together a SQL 'query builder' function which will turn this: mon* NOT monkey [AND/OR queries also] ...into this: SELECT * FROM table WHERE field LIKE 'monk%' AND NOT field = 'monkey' Basically,

RE: [PHP] Session troubles

2002-01-02 Thread Jaime Bozza
I agree. Perhaps make a feature request that disallows session starting if save_handler=user and you haven't defined a session handler?Then it could spit out a more correct error message. Jaime Bozza -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

[PHP] array_multisort?

2002-01-02 Thread Sebastiaan Timmers - Bean IT
Hi List, I'm having a problem sorting the following array: $product = array($id, $title, $price); $shop[] = $product; I want the array 'shop' to be sorted by the 'title' in array 'product'. I tried the function 'array_multisort()', but that did not do the trick. Does anyone know how to fix

[PHP] test

2002-01-02 Thread David Jackson
Let see does my PERSONEL unsubscribe information appear at the bottom of this email? For the second time in 48hrs. someone submitted an unsubscribe request using for me? Yet I still get the list postings? How strange. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Including files variables ...

2002-01-02 Thread Emile Bosch
what everyone is trying to say is that it goes automatically.. ie . test.php -- $blah=10; include whatever.php; whatever.php - echo The value of blah is: {$blah}; It just keeps the variable since it's global.. When ur using a function. It

[PHP] PHP Forms

2002-01-02 Thread Matt Obstgarten
Hello, I am new to PHP. I have PHP (cgi version) configured on my machine running XP Pro and IIS. It works fine. The first script I wanted to write was the ever-useful feedback form script where the contents of a form are e-mailed to the webmaster. I am sure that I have a working script

Re: [PHP] Connect to IBM DB2

2002-01-02 Thread David Jackson
Jerry -- I didn't see any functions listed in: http://www.php.net/manual/en/ for DB2 the ODBC maybe you only answers, heres the link: http://www.php.net/manual/en/ref.odbc.php David To connect to Microsoft SQL 7 I'm using the following script which works fine: ?php $query=SELECT * FROM

Re: [PHP] Licensing??

2002-01-02 Thread TD - Sales International Holland B.V.
On Saturday 29 December 2001 05:47, Rasmus Lerdorf stuffed this into my mailbox: No it's free hehe :-) but I think they still appreciate any donations :-). For since they are developping software they also have to do research n stuff so sometimes they have to buy books and some testing

[PHP] Re: XML Parsing Problem

2002-01-02 Thread bill
Hi Ben, Had the same problem. The solution I came up with was to populate the value repeatedly by concantenation. $thisxmlval .= (whatever is sent from the parser). Note the . in front of the = As long as the parser is still sending values from this tag, your program should concantenate

Re: [PHP] PHP Forms

2002-01-02 Thread Valentin V. Petruchek
Mail() function works fine on win32, you need enter smtp server in your php.ini and sendfrom address. example: SMTP = 10.1.25.1 ; for Win32 only sendmail_from = [EMAIL PROTECTED] Valentin Petruchek (aki Zliy Pes) *** ??? ?? *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] -

RE: [PHP] URGENT-PDF

2002-01-02 Thread Alok K. Dhir
Ps2pdf will do EPS. Make sure you have a recent version (it's part of the ghostscript package). For .doc, look at http://www.wvware.com. It does a reasonable job, but complex documents will convert poorly. I haven't yet found a non-commercial source for converting MS Office documents well.

[PHP] Downloading Oracle, crippled?

2002-01-02 Thread Dennis Gearon
Anyone downloaded the oracle 9i stuff to use on linux with PHP? What are the limitations, time crippled, table size crippled, function crippled? It seems hard to believe that Larry Ellison would give things away, even to support ways to take market share away from usoft. -- PHP General Mailing

[PHP] ora_numrows() function

2002-01-02 Thread Sam Masiello
I just wanted to verify the functionality of the ora_numrows() function. On the ora_numrows() manual page it reads that the function returns the number of rows in a result set, but in the ora_getcolumn() documentation it reads that the ora_numrows() function returns the current row number.

Re: [PHP] Session troubles

2002-01-02 Thread Sean LeBlanc
On 01-02 07:45, Jaime Bozza wrote: I agree. Perhaps make a feature request that disallows session starting if save_handler=user and you haven't defined a session handler?Then it could spit out a more correct error message. Blast. I am still unable to get my own session handler to work.

[PHP] Re: Extract a string from a string

2002-01-02 Thread Joe Webster
$find = hi; $contents = implode(null, file($logfile)); $contents = preg_replace(/($find)/i, b style=\color:black;background-color:#FFCC66\\\1/b, $contents); echo $contents; that will replace any $find with your highlighted b. Notice the i at the end preg expression, that tells it to ignore case.

[PHP] Setting PHP vars in Apache Directives

2002-01-02 Thread Joe Webster
We are deciding which language we will move in to, PHP or Perl. Once thing that Perl allows is the setting of variables from an Apache directive (Vhost, Directory, Location, etc). I've been looking thru the mod_php module, but I havn't see this ability of PHP. It's looking like it's possible to

[PHP] Re: Regular Expression

2002-01-02 Thread Joe Webster
preg_match(/body\s([^]*)/i, $html, $args); $body_props = $args[1]; preg is much faster/better than ereg. note the /i at the end of the preg, that makes it case insative, drop the i if you want it to be case sensative on the match. -Joe John Monfort [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Test

2002-01-02 Thread Joe Webster
dork John Monfort [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Test: cannot send mail, but can read. Please ignore. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] easy quickie..

2002-01-02 Thread Kelly Meeks
Happy New Year, Does php set a variable that tells you the url of the page that a user has just come from? So if I wanted to create my own 'Back' button in a pop up window, for instance? Thanks in advance, Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] easy quickie..

2002-01-02 Thread Andrey Hristov
I think it is $HTTP_SERVER_VARS['HTTP_REFERER'] Regards, Andrey Hristov - Original Message - From: Kelly Meeks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 8:15 PM Subject: [PHP] easy quickie.. Happy New Year, Does php set a variable that tells you the

RE: [PHP] easy quickie..

2002-01-02 Thread Boget, Chris
I think it is $HTTP_SERVER_VARS['HTTP_REFERER'] Except that the value for this variable isn't always set and can be spoofed. This value should not be relied upon. Oftentimes (though, you'd have to be creative to make this work in a seperate window), what I use to send the user back to where

[PHP] Re: [PHP-DB] Connect to IBM DB2

2002-01-02 Thread Frank M. Kromann
Hi, IBM DB/2 uses Call Level Interface (CLI) for communication between clients and server. The ODBC driver from IBM is a simple one to one wrapper arround CLI, as CLI and ODBC share the same specifications. Using ODBC will give you an extra layer though. On *nix platforms you can compile usen

Re: [PHP] Licensing??

2002-01-02 Thread Michael A. Peters
I would like to note that you may need to purchase licensing for certain uses. For instance, I use ClibPDF on OS X. If I ever use it for commercial purposes (which I am planning to do, btw) I will need to purchase a license from FastIO for use of the ClibPDF library. On Wed, 2 Jan 2002 23:00:23

Re: [PHP] easy quickie..

2002-01-02 Thread Kevin Stone
Seb, I tend to agree that some webmasters would do better if they did less and tried not to be so helpful to the user. But custom back buttons can be very useful when used in presentations such as page by page instructions and slideshows without having to hardcode the HTML which (if you forgive

Re: [PHP] array_multisort?

2002-01-02 Thread Kevin Stone
Unless your problem is more extensive than what you're explaining here, there's no reason to do any kind of sort. Simply reorder the list yourself so that whatever ends up in $title is reordered to the first index of your $shop list... $product = array ($id, $title, $price); $shop = array

RE: [PHP] easy quickie..

2002-01-02 Thread Seb Frost
I've never understood why people do this? My browser has a back button. I know how to use it. It's only a centimetre of mouse travel away from the page I'm looking at, why do I need a duplicate? - seb -Original Message- From: Kelly Meeks [mailto:[EMAIL PROTECTED]] Happy New Year,

Re: [PHP] Including files variables ...

2002-01-02 Thread Jason G.
What you need to do is simply set the variables before you include the script. When you include a script with include() or require(), they fall into the same namespace as the include() or require() function that called them. Best Regards, Jason Garber IonZoft.com At 06:54 PM 1/28/2002 -0800,

[PHP] ref IRC

2002-01-02 Thread Marc
Hi all, I have a few problems. I'm trying to write a PHP script that will function as a webchat. Currently I have soms problems. How can I get each line of the in/output ? This is what a part of what I currently have: ? function con($hport,$Something,$who){ $fp = fsockopen($who,

RE: [PHP] easy quickie..

2002-01-02 Thread Matthew Clark
_Your_ browser has a back button.. great.. There are many situations in which the back button may not be visible/available/appropriate. You may also not want to go back in your _history_, just back to the previous page - and possibly set some variables in the page request. It is far more than a

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
Hi there, This is not a bug.. this is expected behaviour. The string would be chopped up into 3 parts because you have : 1. a string: Follow-up To Critique of BeOS 2. a predefined entity : amp; 3. a string: amp; Mac OS X There are not actually two ampersands.. you have amp; followed by amp;

[PHP] surepay without curl?

2002-01-02 Thread Jeff Rossi
Hi list, I haven't been reading the list for a while but ran into a problem that I don't know if I can solve on my own. I'm working on a server running PHP 3.0.13 without curl support. Am I out of luck? -- Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 Phone : (386)

[PHP] INI file parsing

2002-01-02 Thread charlesk
Does PHP parse the ini file every time a file is requested? I am trying to track down a problem on various pages where the timelimit will expire. These are not complex pages and when I go to them they work fine. I have used the same browser that the user eses when the timeout occurs.

RE: [PHP] Session troubles

2002-01-02 Thread Jaime Bozza
What do you have for the return values for your session_read function? (Specifically, what do you return when there's no data available?) Jaime Bozza -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 11:20 AM To: [EMAIL PROTECTED]

[PHP] Re: Hosting provider...

2002-01-02 Thread R. Elsenaar
www.tedoc.nl 100% Microsoft Free Matt Moreton [EMAIL PROTECTED] wrote in message 001401c19323$18d44ef0$38bc7ad5@summy">news:001401c19323$18d44ef0$38bc7ad5@summy... Im looking to change my hosting provider. ...something that isnt going to break the bank, is feature full, supports mysql, php etc

[PHP] Get Page Title

2002-01-02 Thread R. Elsenaar
Hi, To get the title of an external page to put into a link, has somebody did that already and can give me some hints for this trick Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] INI file parsing

2002-01-02 Thread charlesk
I am running IIS 5.0 Windows 2000 Server. Changes made to the ini take effect immediately. So it seems that php in Windows and IIS reloads the ini every time a page is requested? Charles Killmer -- Original Message -- From: Joe Webster [EMAIL

Re: [PHP] INI file parsing

2002-01-02 Thread Joe Webster
If so that would be totally shitty (in the respects of effecienty) Charlesk [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am running IIS 5.0 Windows 2000 Server. Changes made to the ini take effect immediately. So it seems that php in Windows and IIS

[PHP] Cookies In Images...

2002-01-02 Thread Matthew Walker
Can anyone give me a pointer on where to go to find out how to send cookies through images, preferably in PHP? Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.310 /

[PHP] Forking in PHP

2002-01-02 Thread charlesk
This works almost. Instead of having echo hello; you have a huge process that takes a while, the browser wont redirect until the script is finished. This seems to be a feature of IIS. Has anyone found a way to do something similar in PHP 4.1.0, IIS 5.0, Windows 2000 Server? I basically

Re: [PHP] Cookies In Images...

2002-01-02 Thread Bas van Rooijen
On Wed, 2 Jan 2002 14:11:39 -0700, Matthew Walker wrote: Can anyone give me a pointer on where to go to find out how to send cookies through images, preferably in PHP? To do this you will have to point the HREF in your IMG tag to a PHP script. From that script you should do this: - Pass the

RE: [PHP] Cookies In Images...

2002-01-02 Thread Matthew Walker
Thanks. That's what I suspected, but I needed to make sure. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Bas van Rooijen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Cookies In

[PHP] Quick question about recompiling with GD library

2002-01-02 Thread Joelmon2001
Hello, I have png/jpeg support and gd 1.8.3 I see, however, some linux ./configure examples that just use --with-gd and no --with=/usr/local/png or whatever the question is, would --with-gd be enough to create/add text to jpeg/png or *only* if they are included? Just want to double check

Re: [PHP] Forking in PHP

2002-01-02 Thread Bas van Rooijen
Hi, You could use register_shutdown_function() which should be called before the script ends (duh!). Define a function for your process and pass it's name to register_shutdown_function() . bvr. On Wed, 2 Jan 2002 15:14:59 -0600, charlesk wrote: This works almost. Instead of having echo

Re: [PHP] Forking in PHP

2002-01-02 Thread charlesk
Thanks for the reply but leave the duh's! out of comments please. -- Original Message -- From: Bas van Rooijen [EMAIL PROTECTED] Reply-To: Bas van Rooijen [EMAIL PROTECTED] Date: Wed, 02 Jan 2002 22:32:53 +0100 Hi, You could use

[PHP] PHP 4.1.1 + Apache 2.0.30 Ouput Filter....

2002-01-02 Thread Austin Gonyou
The following URL works, but then the next one doesn't. Can someone offer some advice on this? http://digitalroadkill.net:8080/ works. index.php is happy and the output filters work. http://digitalroadkill.net:8080/Galleries/ does not work. It tries to get the file as though it were not

Re: [PHP] Re: Hosting provider...

2002-01-02 Thread B. van Ouwerkerk
At 21:56 2-1-02 +0100, R. Elsenaar wrote: www.tedoc.nl 100% Microsoft Free They are expensive. But please.. this subject has been beaten till dead.. at least a zillion messages should be in the archive.. O well.. a few less :-) Bye, B. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Forking in PHP

2002-01-02 Thread Bas van Rooijen
Thanks for the reply but leave the duh's! out of comments please. I'll think about it ;) bvr. -- 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

Re: [PHP] Session troubles

2002-01-02 Thread Sean LeBlanc
On 01-02 14:31, Jaime Bozza wrote: What do you have for the return values for your session_read function? (Specifically, what do you return when there's no data available?) Well, it turns out that write *is* being called, but due to some feature of session write, echo and print don't work, as

Re: [PHP] Forking in PHP

2002-01-02 Thread charlesk
register_shutdown_function() doesnt work either. Seems to be IIS caching the output until the script finishes. Anyone else have an idea? -- Original Message -- From: Bas van Rooijen [EMAIL PROTECTED] Reply-To: Bas van Rooijen [EMAIL PROTECTED] Date:

RE: [PHP] Session troubles

2002-01-02 Thread Jaime Bozza
Returning false is invalid for the session read function, and has caused *MANY* issues with PHP and Sessions. (Check the archives as well as the bugs database. I have a couple in there myself) Change: return false; To: return ''; And things should start working as expected. Jaime Bozza

RE: [PHP] ora_numrows() function

2002-01-02 Thread Martin Towell
someone left this comment on the php site - [EMAIL PROTECTED] at 27-Dec-2000 09:37 It is important to note that this function acts more as a counter of the number of rows fetched from the cursor. If you execute this prior to processing the cursor

Re: [PHP] PHP 4.1.1 + Apache 2.0.30 Ouput Filter....

2002-01-02 Thread Austin Gonyou
Ok. I fixed it. I just had my filters jacked up. After fixing them using \.php instead of *.php, I was then calling the wrong page and getting a 404, plus the browser I was using had cached the content-type and was screwing everything up. After just shutting down my browsers, dumping cache,

Re: [PHP] XML Parsing Problem

2002-01-02 Thread Ben Gollmer
Ok, I can understand the predefined entity replacement. But why does it break the string up into 3 parts? I think it should just return Follow-up To Critique of BeOS amp; Mac OS X. Ben On Wednesday, January 2, 2002, at 02:05 PM, Matthew Clark wrote: Hi there, This is not a bug.. this is

[PHP] Re: Get Page Title

2002-01-02 Thread Daniel Grace
R. Elsenaar [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, To get the title of an external page to put into a link, has somebody did that already and can give me some hints for this trick Robert // Your question managed to spark my interest and get

[PHP] Fatal error: The script tried to execute a method or access a property of an incomplete object.

2002-01-02 Thread Sturm
I have a problem I'm getting the following error: Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition myappl of the object you are trying to operate on was loaded _before_ the session was started in

Re: [PHP] INI file parsing

2002-01-02 Thread Steve Edberg
AFAIK, it will reread the .ini file every time only if you're running PHP as a CGI, as opposed to an Apache module (or ISAPI or NSAPI module, but I don't think either of those are industrial strength yet). SO, yes, the .ini file will be reread each time PHP is called by IIS. -steve At 01:02

[PHP] Code not working in 4.1

2002-01-02 Thread Jonathan Hilgeman
I used to run PHP 4.0.3 and at the beginning of some functions that used a lot of global variables, I would add the following lines so I could access all the global variables inside the functions. foreach($GLOBALS as $GlobalVarName = $GlobalVarValue) { global $$GlobalVarName; } I upgraded

RE: [PHP] Code not working in 4.1

2002-01-02 Thread Martin Towell
use: extract($GLOBALS); http://www.php.net/manual/en/function.extract.php -Original Message- From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: [PHP] Code not working in 4.1 I used to run PHP 4.0.3 and at the

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
well thats just the way XML parsers work, according to the parser, what you have there is not a single string element, you have three child elements (the parent node being the title).. two string nodes broken up by an entity node. In other circumstances, this behaviour can be very useful. Matt.

[PHP] Holy Moly...

2002-01-02 Thread Julie Hull
Could someone please direct a total novice to the best PHP beginner news group. Just to many to choose from ~:) Thank You, Julie ~:) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] Holy Moly...

2002-01-02 Thread Martin Towell
This one's pretty good, IMO but as for the best - hmm... that would be a matter of personal opinion... :) -Original Message- From: Julie Hull [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Holy Moly... Could someone please

Re: [PHP] Holy Moly...

2002-01-02 Thread Matt Moreton
If you dont mind downloading ~50 messages a day, then I'd recommend this group :] Regards Matt. - Original Message - From: Julie Hull [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 03, 2002 2:16 AM Subject: [PHP] Holy Moly... Could someone please direct a total

Re: [PHP] Mysql Curdate problem

2002-01-02 Thread Jimmy
Hi Andras, $aresult=mysql_query(select * from orders WHERE (a3 = CURDATE()-$datec) ,$db); what's the value of $datec? integer 7 or 14? if so then try to change it to this: interval 7 days -- Jimmy Love deeply and passionately. You might get hurt but it's the only

[PHP] Date aritmetic

2002-01-02 Thread Carlos Fernando Scheidecker Antunes
Hello all, I would like to know if anyone could help me with the following issue: I have 6 variables, two holds a day, others the month and the last ones the year. They are entered through drop-down-menus where the user selects day, month and year for each date. I would like to know the

Re: [PHP] Date aritmetic

2002-01-02 Thread Bogdan Stancescu
Not mentioning that you could've taken a look at http://www.php.net/manual/en/ref.datetime.php yourself, here goes: $days_diff=(mktime(0,0,0,$month2,$day2,$year2)-mktime(0,0,0,$month2,$day2,$year2))/86400; Bogdan Carlos Fernando Scheidecker Antunes wrote: Hello all, I would like to know if

Re: [PHP] Date aritmetic

2002-01-02 Thread Bogdan Stancescu
Well, actually $days_diff=(mktime(0,0,0,$month2,$day2,$year2)-mktime(0,0,0,$month1,$day1,$year1))/86400; but you probably got that... :-) Bogdan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] Date aritmetic

2002-01-02 Thread Martin Towell
convert both in dates into a time stamp using mktime() subtract the two figures you get back then divide by 86400 (60sec/min * 60min/hr * 24hr/day) -Original Message- From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 12:57 PM To:

RE: [PHP] Date aritmetic

2002-01-02 Thread Martin Towell
This isn't to pick on Carlos, but I've notice there's heaps of ppl who don't read the manual, or do a search on the manual - I've found that many of my questions have been answered by doing a search on the docs -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Can I config PHP RPM?

2002-01-02 Thread gaukia 345
I'm a PHP newbie and have a few questions. 1) The server I'm working on has PHP 4.0.5 installed using an RPM. So there's no source code. How do I include extensions (say --enable java ) without getting the PHP source code and without make? 2) I think the server's Apache web server is also

[PHP] If Statement with more than one conclusion

2002-01-02 Thread rdkurth
How can I do an if statement with more than one conclusions Something like this I know this is not correct just an example of what I what to do If($ext==comornetororgorinfo){ Then do this } If($ext==com.ukorme.ukororg.uk){ Then do this } -- Best regards, rdkurth

RE: [PHP] If Statement with more than one conclusion

2002-01-02 Thread Martin Towell
something like: If(in_array($ext, array(com, net, org, info)){ //Then do this } If(in_array($ext, com.uk, me.uk, org.uk)){ //Then do this } maybe?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:22 PM To: php-general Subject:

Re[2]: [PHP] If Statement with more than one conclusion

2002-01-02 Thread rdkurth
Hello Martin, Thanks that work perfect Wednesday, January 02, 2002, 9:31:36 PM, you wrote: MT something like: MT If(in_array($ext, array(com, net, org, info)){ MT //Then do this MT } MT If(in_array($ext, com.uk, me.uk, org.uk)){ MT //Then do this MT } MT maybe?? MT -Original Message-