[PHP] Re: Help understanding code...

2003-09-26 Thread Baroiller Pierre-Emmanuel
Hi, It's a C Like Syntax (condition)?true:false; is like : if (condition) true else false regards. P.E. Baroiller Jeff McKeon [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] I've just picked up a more advanced book on PHP and it has a lot of example code in it. I

php-general Digest 26 Sep 2003 08:49:58 -0000 Issue 2319

2003-09-26 Thread php-general-digest-help
php-general Digest 26 Sep 2003 08:49:58 - Issue 2319 Topics (messages 163988 through 164018): Re: Understanding code.. again 163988 by: Jeff McKeon 163989 by: R'twick Niceorgaw 163990 by: Chris Sherwood 163991 by: Brad Pauly 163993 by: Jeff McKeon

[PHP] HTML mailing list

2003-09-26 Thread Angelo Zanetti
anyone know of a good HTML mailing list? sorry for the OT post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to accept file through http from curl c program??

2003-09-26 Thread Brian Moynihan
Hi there, Hopefully someone can shed some light for us on this. We have a client who is sending us a file through a C program which uses Curl. At our end we have a php script to accept the file passed through the form. This php script works fine using a browser however, it does not pick up

RE: [PHP] How to accept file through http from curl c program??

2003-09-26 Thread chris . neale
At a first glance: $fp=fopen(brianLog1, w+); brianlog1 should either be in quotes if that's the name of the file and the file doesn't have an extension. Or maybe it's a variable in which case you'll need to put the $ in front of it.. Hope that helps Regards Chris -Original

Re: [PHP] How to accept file through http from curl c program??

2003-09-26 Thread Brian Moynihan
Thanks Chris but I don't think that is the issue as the file is being created and the script is running through. It's just that $_FILES contains no data which it should?? I is confused as they say because it works perfectly using the browser ... - Original Message - From: [EMAIL

[PHP] Vpopmail

2003-09-26 Thread Haseeb
hi i have a serious problem i want to create qmail user using vpopmail but all the function are for 4.0.5 - 4.2.3 only. what should i do now any help will be highly appreciated.Haseeb IncrediMail - Email has finally evolved - Click

Re: [PHP] Vpopmail

2003-09-26 Thread Tom Rogers
Hi, Saturday, September 27, 2003, 8:25:05 AM, you wrote: H hi i have a serious problem i want to create qmail user using vpopmail H but all the function are for 4.0.5 - 4.2.3 only. what should i do now any H help will be highly appreciated. H

[PHP] str_pad

2003-09-26 Thread Chris Grigor
This should be quite an easy task for some... say for example $line-dbranch has a value of 3 I know that 3 spaces will be added on to the end of $dbranch $dbranch = str_pad($line-dbranch_no, 6); so the value of $dbranch should look like 3 Is there anyway to right justify the 3 using

[PHP] Re: str_pad

2003-09-26 Thread pete M
$dbranch = str_pad($line-dbranch_no, 6, STR_PAD_LEFT); there's a aslo $dbranch = str_pad($line-dbranch_no, 6, STR_PAD_BOTH); and that pads it in the centre pete Chris Grigor wrote: This should be quite an easy task for some... say for example $line-dbranch has a value of 3 I know that 3 spaces

[PHP] Re: HTML mailing list

2003-09-26 Thread pete M
www.hotscripts.com Angelo Zanetti wrote: anyone know of a good HTML mailing list? sorry for the OT post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_pad

2003-09-26 Thread Nitin
of course, you can specify the optional argument STR_PAD_LEFT like: $dbranch = str_pad($line-dbranch_no, 6, '', STR_PAD_LEFT); Enjoy, Nitin - Original Message - From: Chris Grigor [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Friday, September 26, 2003 4:49 PM Subject: [PHP]

[PHP] best method to resize images

2003-09-26 Thread Dave [Hawk-Systems]
have a situation where clients will be uploading images via a web interface. We need to process these images to create thumbnails. In the past we have used image but have found that the output is somewhat less than desireable and limited to jpg. We would like to be able to soften the image

RE: [PHP] How to accept file through http from curl c program??

2003-09-26 Thread Mike Brum
I don't really know much about Curl, but what it -sounds- like is that Curl isn't sending the proper headers/MIME types to the PHP script and PHP isn't putting the input into the $_FILES array. You might want to look in your $_GET or $_POST array for existance of the file to see if it's being sent

RE: [PHP] best method to resize images

2003-09-26 Thread Javier Tacon
See the image magick tools (http://www.imagemagick.org/) and their API to PHP (http://pear.php.net/package-info.php?package=imagick) -Mensaje original- De: Dave [Hawk-Systems] [mailto:[EMAIL PROTECTED] Enviado el: viernes, 26 de septiembre de 2003 14:32 Para: [EMAIL PROTECTED] Asunto:

[PHP] free php + mysql hosting ?

2003-09-26 Thread Fatih Olcer
hi , i 'm looking for a free php + mysql hosting thanks . Fatih Olcer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Urgent Help

2003-09-26 Thread ho anson
Hello, my name is anson, I am a year 2 student in Hong Kong Ive. I have decided to do a final year project by using php to make a wireless ordering system for restaurants. In my project, I decide to use php scripts to sent the order content or some information to different printers. I have 3

Re: [PHP] Form Passed Multidimension Array

2003-09-26 Thread Lowell Allen
I am trying to find out how to pass a multidimensional array within a hidden input of a form. Would it be something like this? input type='hidden' name='all_links' value='$all_links' Any advice would be forever appreciated... Here's a recycled reply from a similar question last month.

[PHP] Php, mysql hosting cheap,no ads (0-t)

2003-09-26 Thread Ryan A
Hey guys, Have picked up a large hosting package which is really great but cant afford to have it for long at its current price. So have decided to share/partition...If anyones intrested in really cheap hosting you'll get 20mb space 2 mysql dbs 350mb bandwidth php (duh) cgi-bin etc etc No ads.

Re: [PHP] best method to resize images

2003-09-26 Thread Jason Sheets
PEAR has a class for image manipluation, http://pear.php.net. Also there was an excellent class on phpclasses.org that allows you to easily crop, resize, shrink, etc, etc, I can't remember its name but I used it for a while. Dave [Hawk-Systems] wrote: have a situation where clients will be

[PHP] Session info stored on server

2003-09-26 Thread Lowell Allen
What's actually stored on the server when using sessions? I've built a content management system on a commercial host, PHP 4.3.2, Apache 1.3.28, and use session_save_path() to specify a directory. When someone logs in, I check the username and password against the database, and save username as a

Re: [PHP] Urgent Help

2003-09-26 Thread Jason Sheets
Hello Ho, If you are using a printer that is postscript enabled (like HP LaserJet's) it is easy. Simply convert whatever you want to print to a postscript file (there are several utilities on freshmeat.net they do this) and then using PHP open a socket to the JetDirect card and send the data.

Re: [PHP] How to accept file through http from curl c program??

2003-09-26 Thread Brian Moynihan
Thanks Mike, I set the content type to be text/xml in the C program. Just don't understand it at all. There appears to be no reason why it's not working. Thanks for your help so far, any more suggestions? Brian. - Original Message - From: Mike Brum [EMAIL PROTECTED] To: 'Brian

Re: [PHP] Session info stored on server

2003-09-26 Thread Marek Kilimajer
Lowell Allen wrote: What's actually stored on the server when using sessions? I've built a content management system on a commercial host, PHP 4.3.2, Apache 1.3.28, and use session_save_path() to specify a directory. When someone logs in, I check the username and password against the database,

RE: [PHP] PHP 4.3.3 Install, Errors??

2003-09-26 Thread Adam Douglas
I finally have my installation of PHP 4.3.3 to work, thanks to your help and a couple other people on IRC. For knowledge sack here's how I resolve the problem. Installed port/packages of... png-1.2.5p1 jpeg-6b gd-1.8.3 (built in library of PHP would not work for me) ImageMagick-5.2.9 zlib (build

Re: [PHP] Session info stored on server

2003-09-26 Thread Lowell Allen
What's actually stored on the server when using sessions? I've built a content management system on a commercial host, PHP 4.3.2, Apache 1.3.28, and use session_save_path() to specify a directory. When someone logs in, I check the username and password against the database, and save

[PHP] php_execute_script

2003-09-26 Thread Anonymus Crux
Hi! Is there any sample code available how to use properly this API ? zend_file_handle file_handle; file_handle.type = ZEND_HANDLE_FILENAME; file_handle.filename = c:\php\hello.php; file_handle.free_filename = 0; file_handle.opened_path = NULL; php_execute_script( file_handle TSRMLS_CC );

RE: [PHP] str_pad

2003-09-26 Thread Jeff McKeon
Just learning PHP and figuring out all the syntax and stuff. Anyway I had a question about the code example in this post... What does the - do in: $dbranch = str_pad($line-dbranch_no, 6, '', STR_PAD_LEFT); Is dbranch_no a class I don't know about? Thanks, Jeff -Original Message-

RE: [PHP] str_pad

2003-09-26 Thread Robert Cummings
On Fri, 2003-09-26 at 11:00, Jeff McKeon wrote: Just learning PHP and figuring out all the syntax and stuff. Anyway I had a question about the code example in this post... What does the - do in: $dbranch = str_pad($line-dbranch_no, 6, '', STR_PAD_LEFT); Is dbranch_no a class I don't

Re: [PHP] str_pad

2003-09-26 Thread Marek Kilimajer
No, $line is an object (class instance) and dbranch_no is a property of the object. www.php.net/oop Jeff McKeon wrote: Just learning PHP and figuring out all the syntax and stuff. Anyway I had a question about the code example in this post... What does the - do in: $dbranch =

RE: [PHP] str_pad

2003-09-26 Thread Robert Cummings
On Fri, 2003-09-26 at 11:18, Robert Cummings wrote: On Fri, 2003-09-26 at 11:00, Jeff McKeon wrote: Just learning PHP and figuring out all the syntax and stuff. Anyway I had a question about the code example in this post... What does the - do in: $dbranch =

Re: [PHP] str_pad

2003-09-26 Thread Nitin
It gives dbranch_no field in $line array $line-dbranch_no replaces the value of 'dbranch_no' field stored in '$line' array. Enjoy Nitin - Original Message - From: Jeff McKeon [EMAIL PROTECTED] To: Nitin [EMAIL PROTECTED]; Chris Grigor [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent:

RE: [PHP] str_pad

2003-09-26 Thread Jeff McKeon
Thanks all! This is definitely one of the most helpfull mailing lists I belong to. Jeff -Original Message- From: Nitin [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 11:26 AM To: Jeff McKeon; php Subject: Re: [PHP] str_pad It gives dbranch_no field in $line

[PHP] Test Links...

2003-09-26 Thread Doug Coning
Greetings All, I am creating a 'links' page and was wondering if there was a way in PHP to test the response of an outside link? I'm sure everyone here has clicked on a links page link and have a No Page Found error because no one is keeping the links uptodate. I was wondering if there was a

Re: [PHP] Test Links...

2003-09-26 Thread R'twick Niceorgaw
Doug Coning said the following on 9/26/2003 12:15 PM Greetings All, I am creating a 'links' page and was wondering if there was a way in PHP to test the response of an outside link? I'm sure everyone here has clicked on a links page link and have a No Page Found error because no one is keeping

Re: [PHP] Session info stored on server

2003-09-26 Thread Mike Migurski
Open sess_4f5d...0367 in any text editor and you will see your variable there. I can't. I'm unable to open or download or change the permissions. Is it an array? A serialized array, yes. - michal migurski- contact info and

Re: [PHP] Test Links...

2003-09-26 Thread Ray Hunter
Ive used curl to test stuff out with too...however, if on link i like to use wget to test it out. You might not have that option but I have seen others use fopen or file_get_contents. HTH, BigDog On Fri, 2003-09-26 at 10:15, Doug Coning wrote: Greetings All, I am creating a 'links' page and

[PHP] Integrating Various Languages in PHP

2003-09-26 Thread Dan Anderson
I just picked up a copy of the PHP Architect magazine this month (http://www.phparch.com) and they had an article about compiling PHP in such a way that you can call Java code from within PHP. How many other languages does PHP support like this? Can I use Perl, C++, or other languages without

[PHP] Re: Weird replacing

2003-09-26 Thread Cristian Lavaque
I figured it out already. if the array has http://example.com/bbs/index.php?board=1 http://example.com/bbs/index.php?board=1;action=display;thread=12 3 then, the str_replace of that one with the other one that has the symbols changed, will be http://example.com/bbs/index.php/board-1 but it'll

RE: [PHP] Integrating Various Languages in PHP

2003-09-26 Thread Jay Blanchard
[snip] I just picked up a copy of the PHP Architect magazine this month (http://www.phparch.com) and they had an article about compiling PHP in such a way that you can call Java code from within PHP. How many other languages does PHP support like this? Can I use Perl, C++, or other languages

Re: [PHP] Test Links...

2003-09-26 Thread Ray Hunter
lol...if on linux... On Fri, 2003-09-26 at 12:35, Ray Hunter wrote: Ive used curl to test stuff out with too...however, if on link i like to use wget to test it out. You might not have that option but I have seen others use fopen or file_get_contents. HTH, BigDog On Fri, 2003-09-26 at

Re: [PHP] Php, mysql hosting cheap,no ads (0-t)

2003-09-26 Thread Ryan A
Hey Jason, Thanks for replying. Probably a bit late but we offer well powered hosting starting at just $9.95 a month, 250 MB storage space bandwidth is 5 GB/month, 15 POP 3 accounts and 15 FTP accounts, 2 databases, PHP 4.3.3 (upgraded regularly, Turck MMCache installed, Perl, PHP MyAdmin,

[PHP] $_SESSION stuffs that come with php.ini

2003-09-26 Thread Scott Fletcher
I have been building the website for 6 months with everything and I didn't have hte php.ini on it. Just didn't realize it, so I create the php.ini that come from php.ini_dist that came with php source code. Now the $_SESSION doesn't work. I'm not able to make the php.ini to be like the one that

[PHP] Re: $_SESSION stuffs that come with php.ini

2003-09-26 Thread Scott Fletcher
Is this the one??? http://us3.php.net/session Thanks... Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have been building the website for 6 months with everything and I didn't have hte php.ini on it. Just didn't realize it, so I create the php.ini that come from

[PHP] Re: $_SESSION stuffs that come with php.ini

2003-09-26 Thread Scott Fletcher
Alright that work now Don't know why does the php.ini default is not what it should be... I found a few that aren't on the list in php.ini, but hte most important thing right now is that it is fixed... Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is this the

[PHP] mail(); and embedding pictures

2003-09-26 Thread Iggy
I am wondering if it is possible to embed pictures into email messages using this function. Thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mail(); and embedding pictures

2003-09-26 Thread Jay Blanchard
[snip] I am wondering if it is possible to embed pictures into email messages using this function. [/snip] I'm wondering if anyone ever tests this stuff. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What is the proper way to use mysql db on a multipage site?

2003-09-26 Thread Daevid Vincent
I sent this to php-db with no reply, so I'll try it here then... -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:21 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] What is the proper way to use mysql db on a multipage site? I've been

Re: [PHP] What is the proper way to use mysql db on a multipage site?

2003-09-26 Thread Robert Cummings
Mostly a matter of preference I would say. Cheers, Rob. On Fri, 2003-09-26 at 16:10, Daevid Vincent wrote: I sent this to php-db with no reply, so I'll try it here then... -Original Message- From: Daevid Vincent [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 4:21

[PHP] header ('Content-type...') does not work properly if session_start initiated...

2003-09-26 Thread Alex Shi
Hello, I have a strange problem with a download script. Here is the situation: On my development server, the php is 4.0.6 while on the application server it is 4.3.2. I created a very simple code for opening pdf in browser. the main part of it is like following: ? session_start (); ...

RE: [PHP] mail(); and embedding pictures

2003-09-26 Thread Jay Blanchard
People send HTML e-mail each day with images using PHP...there are numerous discussion on the archive. If you are using plain text e-mail you cannot see images. -Original Message- From: Igor Frankovic [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 3:30 PM To: Jay Blanchard

Re: [PHP] What is the proper way to use mysql db on a multipage site?

2003-09-26 Thread Brent Baisley
It does seem wasteful, but you have to make sure there is a connection before you query a database. What if the user goes out to lunch? Should you maintain an open database connection for an hour? No, that's a lot of overhead. What you can do is change it from mysql_connect to mysql_pconnect.

RE: [PHP] Re: $_SESSION stuffs that come with php.ini

2003-09-26 Thread Donald Tyler
Session auto start is not enabled as default because it is a performance drain. It is much more efficient to use session_start() only when you need it. The easiest way to do things is usual the worst. (Most inefficient) -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]

RE: [PHP] mail(); and embedding pictures

2003-09-26 Thread Jay Blanchard
[snip] OK, apparently you are not reading my emails. I said I already did that but that it didn't work. Putting the file name in the IMG SRC tag simply doesn't work. At least not in that format. By putting an img tag in the HTML I am not that dumb. I realize that people send HTML message

Re: [PHP] header ('Content-type...') does not work properly if session_start initiated...

2003-09-26 Thread Curt Zirzow
* Thus wrote Alex Shi ([EMAIL PROTECTED]): Hello, I have a strange problem with a download script. Here is the situation: On my development server, the php is 4.0.6 while on the application server it is 4.3.2. I created a very simple code for opening pdf in browser. the main part of it

Re: [PHP] What is the proper way to use mysql db on a multipage site?

2003-09-26 Thread Chris Shiflett
--- Daevid Vincent [EMAIL PROTECTED] wrote: But it just seems so wasteful to keep making that mysql_connect(). Isn't there a way to store the $db result so I don't have to keep connecting. http://www.php.net/mysql_pconnect Hope that helps. Chris = Become a better Web developer with

RE: [PHP] mail(); and embedding pictures

2003-09-26 Thread Jay Blanchard
[snip] No, but it wouldn't do me any good anyway. I am not trying to link to a picture residing somewhere else. I am trying to EMBED it. [/snip] And snip your replies! Found in a google search...go figure Probably the easiest way to do this is to use a mail class PHPMailer

Re: [PHP] header ('Content-type...') does not work properly if session_start initiated...

2003-09-26 Thread Marek Kilimajer
Curt Zirzow wrote: hmm.. i think i just rememberd that it might had to do with making sure that session.cache_limiter being set as 'nocache'. Search the archives, the answer is there i believe. Curt You are close, it was session_cache_limiter('private_no_expire'); -- PHP General Mailing List

Re: [PHP] header ('Content-type...') does not work properly if session_start initiated...

2003-09-26 Thread Alex Shi
Curt Zirzow wrote: hmm.. i think i just rememberd that it might had to do with making sure that session.cache_limiter being set as 'nocache'. Search the archives, the answer is there i believe. Curt You are close, it was session_cache_limiter('private_no_expire'); So, this

Re: [PHP] header ('Content-type...') does not work properly if session_start initiated...

2003-09-26 Thread Alex Shi
Curt Zirzow wrote: hmm.. i think i just rememberd that it might had to do with making sure that session.cache_limiter being set as 'nocache'. Search the archives, the answer is there i believe. Curt You are close, it was session_cache_limiter('private_no_expire'); You are

Re: [PHP] What is the proper way to use mysql db on a multipage site?

2003-09-26 Thread Jackson Miller
On Friday 26 September 2003 3:54, Chris Shiflett wrote: http://www.php.net/mysql_pconnect If you have even moderate load on your server mysql_pconnect is going to really hurt performance. The best method I have found is to just make sure the connection code is only in one file and then

[PHP] static class call..

2003-09-26 Thread jsWalter
Is there a way that a method within a Class, when called statically, can access a property of that Class? Class Foo { var $_TintBaz = 9; function getBaz() { return Foo::_TintBaz; // -- line 8 } } echo Foo::getBaz(); This returns... Parse error:

[PHP] Search Submission Tool

2003-09-26 Thread Erich Kolb
Im putting together a free web based tool available to anyone who wants to automatically submit their website to multiple search engines at the same time. I know this has been done before, but I haven't done it and its pretty much a learning experience for me. It is currently functioning, and I

[PHP] Re: static class call..

2003-09-26 Thread Greg Beaver
Hi Walter, Not until PHP 5 Class Foo { static $_TintBaz = 9; } echo Foo::$_TintBaz; in PHP 4, you can kludge this: Class Foo { function getBaz($set = null) { static $_TintBaz = 9; if (!is_null($set)) { $_TintBaz = $set; } return