[PHP] new to classes, need help

2002-12-24 Thread Noel Akins
I'm trying to get my head around php classes. I want to write a small php file (call it genericly uniquepagesomething.php) that will call the pagemaker.class. For example Apples3.php that calls pagemaker.class. In pagemaker.class, it will look up page 3 of the topic apples from a table and

[PHP] Mail Server Setup

2002-12-24 Thread Trilochan
Hi I want to provide the mailing facility to my clients in my deomain . For that , what are the basic requirements , and how can I do that . Any suggestion is highly appreciated. Thanks Trilochan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] MySQL vs PostgreSQL

2002-12-24 Thread Sean Burlington
Youy are unlikely to egt balanced asvice on this in the MySQL or Postgress lists -after all those people have already made thier decision. I haven't used Postgress much - but basically... Mysql - available on loads of hosting packages, very large user base. PostgreSQL - better adherance to

[PHP] another preg_replace issue

2002-12-24 Thread electroteque
yet another regex question how could i change the value within the quotes with preg_replace php_value upload_max_filesize 5M i am trying to edit the value of a htaccess file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Unable to match dollar sign in preg_match

2002-12-24 Thread Ford, Mike [LSS]
-Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 24 December 2002 00:44 If you want to use some of PHP's special characters in your expression, Don't you mean preg's special characters? Or even PHP special characters which are also preg special

RE: [PHP] Unable to match dollar sign in preg_match

2002-12-24 Thread Ford, Mike [LSS]
-Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 24 December 2002 00:44 I don't know. I just got that from reading the manual. The very first user comment on the preg_match page. Sorry, misread this before and took the explanation below as John replying to

Re: [PHP] Unable to match dollar sign in preg_match

2002-12-24 Thread Sean Burlington
John W. Holmes wrote: I don't know. I just got that from reading the manual. The very first user comment on the preg_match page. to put a literal dollar sign in a regex it has to be escaped \$ to put a backslash in a double quoted string you have to escape it \\$ in order to put a literal

Re: [PHP] Mail Server Setup

2002-12-24 Thread Anthony Abby
Trilochan said: Hi I want to provide the mailing facility to my clients in my deomain . For that , what are the basic requirements , and how can I do that . Any suggestion is highly appreciated. It's pretty simple. Check out http://www.postfix.org. Postfix is extremely stable, fast, and

[PHP] Images not stored in Databases

2002-12-24 Thread Steve Vernon
Hiya, I have had help from a very useful person on storing images in databases, and basically now I don't want to do this. But I may end up storing a lot of pictures, and don't want to mess around. Is there a script or class, that is as simple as storing in a database, that will handle

RE: [PHP] Images not stored in Databases

2002-12-24 Thread Edward Peloke
How will the picture make it into the db? Will they be uploaded by users? I had to create an upload script for a sight that puts the picture in the users directory on the webserver and then stored the path to the picture in the db so when the web page is displayed, the tag is something like this

Re: [PHP] Images not stored in Databases

2002-12-24 Thread Steve Vernon
Hiya. Yeh sorry I should of mentioned, using an upload script. And then I shrink them (or grow) using GD. I understand I could give everyone a directory, but everyone would only have one picture, so a waste of time. What would make more sense, and to ignore the limit on number of

[PHP] forum?

2002-12-24 Thread Fatih stnda
do you know freeware forum in php I can easly use? thanks. fatih ustundag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forum?

2002-12-24 Thread John Wards
www.google.com www.hotscripts.com - Original Message - From: Fatih Üstündað [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 2:51 PM Subject: [PHP] forum? do you know freeware forum in php I can easly use? thanks. fatih ustundag -- PHP General

Re: [PHP] forum?

2002-12-24 Thread Brian V Bonini
On Tue, 2002-12-24 at 09:51, Fatih stnda wrote: do you know freeware forum in php I can easly use? Phorum http://phorum.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forum?

2002-12-24 Thread Andrew Brampton
phpBB2 www.phpbb.com Or do what another poster suggested and google for it Andrew - Original Message - From: Fatih Üstündað [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 2:51 PM Subject: [PHP] forum? do you know freeware forum in php I can easly

Re: [PHP] forum?

2002-12-24 Thread Jeff Lewis
http://www.yabbse.org - Original Message - From: Fatih Üstündað [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 9:51 AM Subject: [PHP] forum? do you know freeware forum in php I can easly use? thanks. fatih ustundag -- PHP General Mailing

Re: [PHP] Images not stored in Databases

2002-12-24 Thread Gilles Haverbeke
I think you should first research what the limit of files is in the directory where you want to place the files. Then just create some structure that you start with a directory called 1 and store the file there. If the limit of directory 1 is reached just let your script automaticly create a

Re: [PHP] forum?

2002-12-24 Thread Gilles Haverbeke
http://www.phpbb.com/ is the best free one I have seen. Greetz, Gilles - Original Message - From: Fatih Üstündað [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 3:51 PM Subject: [PHP] forum? do you know freeware forum in php I can easly use?

Re: [PHP] forum?

2002-12-24 Thread Stephen
www.invisionboard.com - Original Message - From: Fatih Üstündað [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Tuesday, December 24, 2002 9:51 AM Subject: [PHP] forum? : do you know freeware forum in php I can easly use? : : thanks. : fatih ustundag : : -- : PHP General

[PHP] Can't set time zone

2002-12-24 Thread jaime
I can't seem to set the time zone of my server in the mod_php4 binary. When I run this file: HTMLBODYPRE ?php echo GMT:. gmdate( D, j M Y H:i:s ) . BR; echo Local: . date( D, j M Y H:i:s ) . BR; echo Z: . date( Z ) . BR; echo O: . date( O ) . BR; echo T: . date( T ) .

Re: [PHP] MySQL vs PostgreSQL

2002-12-24 Thread Jason Sheets
Both databases work well for what they are intended to do. Either database will have good basic performance, however PostgreSQL has had more advanced features and stability in the past some of which MySQL has worked on gaining. Last I heard there was still issues with complex operations and

[PHP] Creating my own External Module for PHP

2002-12-24 Thread Leon Mergen
Hello, I have a little question to which I hope to find an anwser in here. Currently, I have a big script which receives approx 1.5 million hits every day. Since this script does some common calculations that underlying scripts use, I want to rewrite this into C and initially make it an external

[PHP] What happened with zend engine version 2?

2002-12-24 Thread Erik Franzén
I believed that PHP V4.3 should include the Zend engine version 2 since there was two alpha releases for PHP-4.3.0 with Zend engine version 2 -PHP-4.3.0-dev-zend2-win32-alpha1 -PHP-4.3.0-dev-zend2-win32-alpha2 I'm waiting for Zend engine version 2. Where could I read information about future

Re: [PHP] Problem with Include

2002-12-24 Thread Rick Widmer
At 08:04 AM 12/24/02 +0300, sport4ever wrote: maybe there is something wrong with php.ini notice that I faced with this problem just after I upgraded to (PHP 4.2.1), (Apache2), everything was great before! The last I heard PHP + Apache2 is pretty much experimental, and not recommended for

Re: [PHP] Problem with Include

2002-12-24 Thread Tom Woody
I have found this to be very true with RedHat 8 (includes Apache2.0.40, and php 4.2.2). While RedHat 8.0 isn't really ready for a production server, apache2 and php definitly are not. You have to bend over backwards to get some things working correctly if at all. Plus there are still some

Re: [PHP] forum?

2002-12-24 Thread Philip Olson
Another good one: fudforum: http://fud.prohost.org/ Regards, Philip On Tue, 24 Dec 2002, [windows-1254] Fatih Üstündað wrote: do you know freeware forum in php I can easly use? thanks. fatih ustundag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What happened with zend engine version 2?

2002-12-24 Thread Rasmus Lerdorf
That was never the plan. It is scheduled for PHP 5 sometime in the next 6-12 months. -Rasmus On Tue, 24 Dec 2002, Erik Franzén wrote: I believed that PHP V4.3 should include the Zend engine version 2 since there was two alpha releases for PHP-4.3.0 with Zend engine version 2

Re: [PHP] Problem with Include

2002-12-24 Thread Philip Olson
I've heard that RH8 decided to disable short tags in their default php.ini If this is true, the people at RedHat deserve a good spanking. Talk about being irresponsible! Regards, Philip On Tue, 24 Dec 2002, Tom Woody wrote: I have found this to be very true with RedHat 8 (includes

Re: [PHP] Creating my own External Module for PHP

2002-12-24 Thread Rasmus Lerdorf
Just run phpize in your directory and then do a ./configure make If your config.m4 was correct you should now have a modules/foo.so in your dir. -Rasmus On Tue, 24 Dec 2002, Leon Mergen wrote: Hello, I have a little question to which I hope to find an anwser in here. Currently, I have a

[PHP] extracting text

2002-12-24 Thread Clivus2k1
Okay guys heres the question: say i have a line of text like: [blah], [rah] PH33r Us! [moo] how can I extract all the text in the brackets and set it as a var, im totally stuck, my idea was to use strstr() but that wouldnt work as all the tags were not at the end :( - CS

[PHP] objects within arrays

2002-12-24 Thread Beth Gore
Hi, I'm really struggling with this - I'm writing a simple webmail client for myself (because they've blocked the common ones at work hehe) Anyway, as soon as I tried to access.. $header = imap_header($inbox,$msgID); $header-from['mailbox']; ... I get nothing. I did a print_r on that, and I

Re: [PHP] objects within arrays

2002-12-24 Thread Andrew Brampton
Big guess but I think maybe: $header[0]-from['mailbox']; Also I suggest you turn your PHP Error Level up to E_ALL in your php.ini file (or temporarly at the top of your scripts with error_reporting (E_ALL);, this will help debug programs like this :)) Andrew - Original Message - From:

RE: [PHP] extracting text

2002-12-24 Thread John W. Holmes
say i have a line of text like: [blah], [rah] PH33r Us! [moo] how can I extract all the text in the brackets and set it as a var, im totally stuck, my idea was to use strstr() but that wouldnt work as all the tags were not at the end :( Assuming you want to replace [foo] with the value in

[PHP] exif functions

2002-12-24 Thread Dade Register
Happy Holidays! I am having a problem using the exif_thumbnail() function. All I want to do is to view the embedded thumbnails in some jpg files taken by digital cameras. I have tried the examples in the docs, but they don't seem to work. Can someone give me some tips on using this function?

Re: [PHP] objects within arrays

2002-12-24 Thread Beth Gore
This didn't work. Apparently from[] returns an array of objects, however I have no idea how to access the object within the array. print_r gives this: Array ( [0] = stdClass Object ( [personal] = Beth Gore [mailbox] = bethanoia [host] = habitformer.co.uk ) ) I've tried this: echo

Re: [PHP] What happened with zend engine version 2?

2002-12-24 Thread Erik Franzén
After I posted the first message, I read something about PHP 5 at www.zend.com and suspected that is was about the new Zend Engine. I must have missed it totally! I was planning to code on a new website during my christmas holiday and now that chance is gone because the functionality in the new

Re: [PHP] Creating my own External Module for PHP

2002-12-24 Thread Leon Mergen
Hey! That worked! Thanks Rasmus! Grtz, Leon Mergen Rasmus Lerdorf [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Just run phpize in your directory and then do a ./configure make If your config.m4 was correct you should now have a modules/foo.so in your

[PHP] upload_max_filesize hack

2002-12-24 Thread electroteque
hi guys i've managed to edit a htaccess file which will allow to override the upload_max_filesize ini setting which cannot be edited in php itself hope this helps, shure its a hack there could be anything with M in it, i'm terrible at regex, so if anyone would like to add to it go ahead. ?

[PHP] Re: upload_max_filesize hack

2002-12-24 Thread electroteque
i just cleaned it up a bit ? function edit_max_filesize($size){ $filename = .htaccess; $size = $size.M; $fd = fopen ($filename, r+); flock($fd, LOCK_EX); while (!feof($fd)) { $fpos = ftell($fd); $c = fgetc($fd); if ($c == M){ ftruncate($fd, $fpos-2); fseek($fd, -3, SEEK_CUR);

Re: [PHP] exif functions

2002-12-24 Thread Jason Sheets
You are getting the error because the function has not been defined.. The manual contains this information: Note: This function is only available in PHP when compiled using --enable-exif. Its functionality and behaviour has changed in PHP 4.2 Try recompling PHP with --enable-exif on the

[PHP] Greetings

2002-12-24 Thread Joseph Ross Lee
Merry Christmas! Joseph Ross Lee POPS Inc (People Organization Process and Solutions) Phone: 8077232 Mobile:+639189363808 5L WestGate Tower, Madrigal Business Park, Investment Drive, Ayala Alabang, Muntinlupa City, Metro Manila, Philippines -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Greetings

2002-12-24 Thread Andy Turegano
Indeed, Merry Christmas to all! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with comma in mail form

2002-12-24 Thread Ben Edwards
I have a fairly simple mail form which gets email, subject and message and posts to itself. form method=post input type=hidden name=doit value=1 bYour Email Address:/b br input type=text name=email size=40 value=? if(isset($email)) { echo $email; } ? brbr bSubject:/b br