Re: [PHP] strtoupper and HTML entities

2001-12-23 Thread mweb
It works! thanks a lot, Michael!! mweb On Sunday 23 December 2001 00:41, Michael Sims wrote: At 11:32 PM 12/22/2001 +0100, mweb wrote: Hello, I know I can convert a string to all uppercases with the strtoupper() function. However, what if the original string contains HTML

[PHP] How to parse an XML document

2001-12-23 Thread PHP Rules
Hi fellas. I would like to know the way to parse an XML document. I come from Java world, and you can handle an XML document, and then show it as an HTML page. I suppose that it's also possible by using PHP, isn't it? I would like also to know if it's available in the 'standard installation'

[PHP] Re: PHP called recursively?

2001-12-23 Thread Thomas Karcher
Hi Chris, if he wants to burn a cd why dont you just copy the php dir onto a cd? why do you have to parse everything? as an admin I would rather the entire dir then the content of the executed script. plus on your side parseing every url recursivly and getting all the images etc, what a

[PHP] Accessing a php file in a frame

2001-12-23 Thread artfakt
I have a file.html with a frame which target file.php I can access to file.php : localhost/file.php : ok I can access to file.html but the frame which target file.php display forbidden ... ? thanks [EMAIL PROTECTED] _

[PHP] Build questions

2001-12-23 Thread Andrey Hristov
Hi, I've some questions about building PHP on Win platform. I use VC++6.0 and load workspace from the win32 directory. After loading I looked at the configurations and found that there many. Which one to choose? I want to make some experiments on win32 platform using Apache as a webserver(so

RE: [PHP] How to parse an XML document

2001-12-23 Thread James Cox
http://www.php.net/manual/en/ref.xml.php HTH. James Cox -Original Message- From: PHP Rules [mailto:[EMAIL PROTECTED]] Sent: 23 December 2001 10:15 AM To: [EMAIL PROTECTED] Subject: [PHP] How to parse an XML document Hi fellas. I would like to know the way to parse an XML

[PHP] How to compile Apache/PHP

2001-12-23 Thread Todd Cary
I am quite new to the Linux environment and do not have experience with make files. The platform is RH Linux 7.2 with the included Apache and the PHP rpm, php-devel-4.0.4pl1-9.i386.rpm. I need someone to give me the step by step process of creating a version of Apache that will process PHP

[PHP] Prev ... Next

2001-12-23 Thread Rambo Amadeus
Hi, I have about 100 names in mysql. How can i display them in groups of 10, and have next and previous links. Thanks -- 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

php-general Digest 23 Dec 2001 16:04:34 -0000 Issue 1069

2001-12-23 Thread php-general-digest-help
php-general Digest 23 Dec 2001 16:04:34 - Issue 1069 Topics (messages 78607 through 78616): Help with permissions/ownership 78607 by: Gaylen Fraley mail function not support in php 4.1.0 with compiled with IMAP ??? 78608 by: Martin Fienkeng Re: strtoupper and HTML

Re: [PHP] Prev ... Next

2001-12-23 Thread Andrey Hristov
The sql is select name from members limit offset,10; you have to generate offet which _must_ be an integer. Regards, Andrey Hristov - Original Message - From: Rambo Amadeus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 6:06 PM Subject: [PHP] Prev ... Next

[PHP] Re: How to parse an XML document

2001-12-23 Thread Manuel Lemos
Hello, Php Rules wrote: Hi fellas. I would like to know the way to parse an XML document. I come from Java world, and you can handle an XML document, and then show it as an HTML page. I suppose that it's also possible by using PHP, isn't it? I would like also to know if it's

Re: [PHP] PHP software tool

2001-12-23 Thread Dasmeet Singh Arora
Check ConTEXT at http://www.fixedsys.com/context It not only supports PHP but many other.Got good Syntax Highlighting and other features. On Sun, 2001-12-23 at 00:16, LaserJetter wrote: Does anybody know of or can recommend any freeware text editing tools for editing PHP code in Win32? I can

[PHP] If/else conditional statement ...

2001-12-23 Thread Robert Dyke
Hello: In ASP I can write a Conditional statement like this: % If $varA == True Then % Straight HTML in here that only displays if $varA == True % Else % Straight HTML in here that only displays if $varA != True % End if % Translating this to PHP doesn't work: ? If ($varA == True) { ? //

[PHP] Why Can't I Get PHP to Work with MySQL??

2001-12-23 Thread Ben Ocean
Hi; I get this error when I try to restart Apache: Syntax error on line 236 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/libexec/libphp4.so into server: /etc/httpd/libexec/libphp4.so The above file does, of course, exist. I'm running RH71 i386 with MySQL and PHP installed from source

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Bogdan Stancescu
Make sure you close the accolade afterwords in PHP -- other than that, yes, it works just fine! For example this should work just fine: - ? for ($i=0;$i10;$i++) { if (!($i%3)) { ? Found a multiple of three! ? echo($i); ?br? } } ? -- Bogdan Robert Dyke wrote:

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Miles Thompson
What's the error, just a parse error on line xx? O tend to do a lot of echo 'ing, so this suggestion may not be much help. How about adding a semicolon? ? If ($varA == True) { ; ? Miles At 01:11 PM 12/23/2001 -0700, Robert Dyke wrote: Hello: In ASP I can write a Conditional statement like

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Bogdan Stancescu
Took a better look at your code -- you've capitalized true -- that may be it. Bogdan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Why Can't I Get PHP to Work with MySQL??

2001-12-23 Thread Michael Sims
At 12:16 PM 12/23/2001 -0800, Ben Ocean wrote: Hi; I get this error when I try to restart Apache: Syntax error on line 236 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/libexec/libphp4.so into server: /etc/httpd/libexec/libphp4.so The above file does, of course, exist. I'm running RH71

[PHP] Table Problem

2001-12-23 Thread Phillip B. Bruce
Hi, Look at the code below first: ?php 2 3 include include_fns.php; 4 include header_news.php; 5 6 $conn = db_connect(); 7 8 $pages_sql = select * from pages order by code; 9 $pages_result = mysql_query($pages_sql, $conn); 10 11 while

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Michael Sims
At 01:11 PM 12/23/2001 -0700, Robert Dyke wrote: Hello: In ASP I can write a Conditional statement like this: % If $varA == True Then % Straight HTML in here that only displays if $varA == True % Else % Straight HTML in here that only displays if $varA != True % End if % Translating this to

Re: [PHP] If/else conditional statement ... in an include file ...

2001-12-23 Thread Robert Dyke
I apologize for not including all of the information. I did this as an include file, which explains why it isn't working: !--- beginning of myinclude.php ? If ($varA == True) { ? ! --- end of myinclude.php --- ! beginning of testfile.php --- ? Include('myinclude.php'); ?

Re: [PHP] Why Can't I Get PHP to Work with MySQL??

2001-12-23 Thread Ben Ocean
At 02:32 PM 12/23/01 -0600, you wrote: At 12:16 PM 12/23/2001 -0800, Ben Ocean wrote: Hi; I get this error when I try to restart Apache: Syntax error on line 236 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/libexec/libphp4.so into server: /etc/httpd/libexec/libphp4.so The above file

[PHP] 4.0.6 Vs. 4.1.0 ?

2001-12-23 Thread Robert Dyke
Hi ... I'm getting ready to do a custom install of PHP on a Pair Networks server, and I'm wondering which version I should go with. It seems like version 4.1.0 has some major changes and new features, which can sometimes create bugs in the world of software. What are your thoughts? Pros and

[PHP] Merry christmas!

2001-12-23 Thread Emile Bosch
Yeah i know it's offtopic =) Anyway, i wish you all the best! Cu in the next year! Warm regards, Emile -- 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:

[PHP] $GLOBALS array

2001-12-23 Thread Philip MacIver
Does anyone know if it is possible to use the 'global $varName' function with the '$GLOBALS' array itself. I have been having some trouble with this. I have decieded to switch of register_globals in the php.ini file (seeing as it is now deprecated in version 4.1.0) I know that

Re: [PHP] How to compile Apache/PHP

2001-12-23 Thread Brian Clark
* Todd Cary ([EMAIL PROTECTED]) [Dec 23. 2001 10:42]: I am quite new to the Linux environment and do not have experience with make files. The platform is RH Linux 7.2 with the included Apache and the PHP rpm, php-devel-4.0.4pl1-9.i386.rpm. I need someone to give me the step by step process

[PHP] Re: $GLOBALS array

2001-12-23 Thread Gaylen Fraley
Why aren't you using the $_POST or $HTTP_POST_VARS array? -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite/ Philip Maciver [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does

Re: [PHP] Why Can't I Get PHP to Work with MySQL??

2001-12-23 Thread Brian Clark
* Ben Ocean ([EMAIL PROTECTED]) [Dec 23. 2001 16:45]: ./configure --with-apxs=/etc/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-kerberos=/usr/kerberos --with-ldap=/usr/local/openldap So, what gives? I've googled this one and it appears there's a lot of folks with this question

[PHP] is_dir and cache problem ...

2001-12-23 Thread Daniel Urstöger
Hiya ! I am working on a download script right now, and I have a question about a part of my code: do { $random_ID = rand(10,99); $download_dir = $today $random_ID; if (!@is_dir($download_dir)) mkdir($download_dir,0777); }while(@!is_dir($download_dir)); So, I do this loop

Re: [PHP] is_dir and cache problem ...

2001-12-23 Thread Bogdan Stancescu
I do the same with is_file() in several scripts and it works just fine without clearing the cache. Don't know about dirs but I can't see why it may be different - should use the exact same functions internally. On a side note, I'd rather recommend using a loop like ? global $mytmpdir; //

Re: [PHP] is_dir and cache problem ...

2001-12-23 Thread Bogdan Stancescu
Forgot a couple of double quotes and the mode for mkdir. Perfectionist, you see... :-) Bogdan ? global $mytmpdir; // usually /tmp -- you set this as you please globally $dd_prefix=$mytmpdir/temp_download_[project name here]; $i=0; while (is_dir($dd_prefix$i)) { $i++; }

Re: [PHP] is_dir and cache problem ...

2001-12-23 Thread Daniel Urstöger
thx for your help ! Since I am the only one who works on the whole server, it´s all my stuff :) Yeah, but the increasing of the random_ID is surely a good way .. Will check on that ! thx again ! :)) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Casey Allen Shobe
On Sunday 23 December 2001 03:11 pm, Robert Dyke wrote: % If $varA == True Then % Straight HTML in here that only displays if $varA == True % Else % Straight HTML in here that only displays if $varA != True % End if % ?php if $varA == true) { ? b$varA was true./b ?php } else { ? b$varA was

[PHP] GD: how to show different types of images?

2001-12-23 Thread Boulgakov Andrei
Hi! I have 2 types of images :PNG and Jpeg. They are w/o extension (its name generated by tempnam and it is exported from DB). How can i show the both in one script? I tryed like this, but it doesn't work(i see one type, and error on another): $im = ImageCreateFromJpeg($picname); $text=Some

php-general Digest 24 Dec 2001 07:34:02 -0000 Issue 1070

2001-12-23 Thread php-general-digest-help
php-general Digest 24 Dec 2001 07:34:02 - Issue 1070 Topics (messages 78617 through 78641): Re: Prev ... Next 78617 by: Andrey Hristov Re: How to parse an XML document 78618 by: Manuel Lemos Re: PHP software tool 78619 by: Dasmeet Singh Arora If/else conditional

Re: [PHP] Re: $GLOBALS array

2001-12-23 Thread Philip MacIver
Basically I use the MVC (Model View Controller) architecture when building my php scripts. So all of my logic is handled by a controller which calls methods on functions, that way the php scritps that are used to display forms, tables etc. have little to no business logic to them at all. Now