php-general Digest 18 Aug 2007 22:33:48 -0000 Issue 4969

2007-08-18 Thread php-general-digest-help
php-general Digest 18 Aug 2007 22:33:48 - Issue 4969 Topics (messages 260991 through 261004): Re: Cookies and sent headers 260991 by: Wouter van Vliet / Interpotential 260993 by: Bastien Koert 260994 by: Otto Wyss 260995 by: Bastien Koert 260996 by:

[PHP] html to jpeg conversion.

2007-08-18 Thread Bindu Walia
Hi, I am looking for a way to convert a html page to a jpeg image. The html page is a file with images and text. Could someone please suggest a method or point me to any existing work on this? Thanks, Bindu

Re: [PHP] apache/php with sybase12.5

2007-08-18 Thread Thijs Lensselink
ROUKOS Michel wrote: Hi, I installed libtool 1.5 and tried again. The libphp.so was not created as well. I tried also to run with ./configure --with-apx2=/usr/local/apache2/bin/apxs make make install same results: libphp5.so is not created under modules/ directory. Thanks and regards,

[PHP] iterating and changing value of an array using foreach and references - PHP 5.2.3

2007-08-18 Thread Yashesh Bhatia
Hi, Here's an interesting observation i noticed while using foreach to iterate on arrays using references for it's values. - PHP version $ php -v PHP 5.2.3 (cli) (built: Jun 8 2007

[PHP] Cookies and sent headers

2007-08-18 Thread Otto Wyss
If built a simple login page and store any information within $_SESSION's. Yet I'd like to move these into cookies but I always get an error about sent headers. Is there a way to circumvent this problem without changing too much in the page? The setting of the cookies happens just at the end

Re: [PHP] Cookies and sent headers

2007-08-18 Thread Kelvin Park
Kelvin Park wrote: Otto Wyss wrote: If built a simple login page and store any information within $_SESSION's. Yet I'd like to move these into cookies but I always get an error about sent headers. Is there a way to circumvent this problem without changing too much in the page? The setting

Re: [PHP] Cookies and sent headers

2007-08-18 Thread Wouter van Vliet / Interpotential
You best option would be to go through all of your include'd or require'd files and make sure there is no whitespace before and after you open your php tags. Those are often the cause for such problems. The easy way would indeed be to use output buffering. In that case, put the call to ob_start();

RE: [PHP] Cookies and sent headers

2007-08-18 Thread Bastien Koert
sessions and cookies either need to be set at the beginning of the page, or you can look into the ob_start(), ob_flush() functions to use output buffering bastien To: php-general@lists.php.net Date: Sat, 18 Aug 2007 11:25:54 +0200 From: [EMAIL

[PHP] Re: html to jpeg conversion.

2007-08-18 Thread Al
I didn't check; but seem to recall that Imagemagick will do it. If it does, then I'd suggest using the new php Imagick API for it. Works great. Don't be put off by the CVS status. Thats' most because of the lac of documentation so far. http://us3.php.net/manual/en/ref.imagick. Bindu Walia

Re: [PHP] Cookies and sent headers

2007-08-18 Thread Otto Wyss
ob_start() at the beginning and ob_end_flush() at the end of the PHP section seems to do the trick albeit I've still problems to understand why. The description in the manual is rather sparse unfortunately. Is there any more information about what's going on? O. Wyss Wouter van Vliet /

RE: [PHP] Cookies and sent headers

2007-08-18 Thread Bastien Koert
The commands start and use an output buffer, a chunk of memory that stores all the output on the server until the ob_flush, the buffer flush, function is called. You need to be aware that in high load situations this may adversly affect performance since it loads the servers memory, also be

Re: [PHP] Cookies and sent headers

2007-08-18 Thread M. Sokolewicz
On a sidenote, 99% of the world never calls ob_flush (or any such function) since PHP flushes the buffer automatically at the end of its execution. The reason why setting cookies for you doesn't work is because of the way a HTTP response is structured. It consists of 2 parts: header and body

RE: [PHP] Cookies and sent headers

2007-08-18 Thread Sanjeev N
Hi, Its not the problem of cookies. Its problem of redirection or the parent.location.replace function. I mean if you already output something on the page and tries to redirect then this problem happens. Redirect before outputting anything on the page.. like space is also an output. Warm

RE: [PHP] About Session And Cookies

2007-08-18 Thread Sanjeev N
Hi Kelvin, You can use the session for your ecommerce website.. Cookies also good, but if it is disabled then it is of no use. I basically use session variable to particular member for accessing his data. Warm Regards, Sanjeev http://www.sanchanworld.com/ http://webdirectory.sanchanworld.com -

Re: [PHP] html to jpeg conversion.

2007-08-18 Thread brian
Bindu Walia wrote: Hi, I am looking for a way to convert a html page to a jpeg image. The html page is a file with images and text. Could someone please suggest a method or point me to any existing work on this? Keep in mind that any server-side application that can create screenshots

[PHP] Photo upload framework/library for PHP

2007-08-18 Thread Steve Finkelstein
Hi all, Can anyone suggest a photo upload/framework type library I can incorporate seamlessly into a PHP project I'm working on? I'd like for users to have an elegant UI to upload photos of their vehicles into my application. Mutli-file and progress bars would be a plus. I'm looking to integrate

[PHP] Capturing shell command output.

2007-08-18 Thread shiplu
HI, I am working on a PHP project that interacts with command line utilities. My php is running by apache. Means I am not running any php CLI. here is the function that I am using for capturing command output. function run_command($comamnd){ $ret=`$command 1 COMMAND.OUT 21`;

Re: [PHP] Capturing shell command output.

2007-08-18 Thread Wouter van Vliet / Interpotential
You may want to look into shell_exec, which executes a command and returns the output. If you're accepting arguments from user input, don't forget proper use of escapeshellcmd and escapeshellarg ;-). Something else that might cause your commands from failing, is that the utilities are not inside

Re: [PHP] Photo upload framework/library for PHP

2007-08-18 Thread Wouter van Vliet / Interpotential
I often use MCImageManager, by moxiecode: http://tinymce.moxiecode.com/paypal/item_imagemanager.php. Integrates well into tinyMCE, but can be used without that as well. I'm not entirely sure it's what you are looking for, but I think it very well may be. And if it doesn't help you now, it may do

[PHP] getting from one table listing from another

2007-08-18 Thread Nate
I know this is kinda crazy but I need it :P I have one table that lists name's and I have another table that has the name's and points I want to know how to list the name's of the first table by the points of the second table -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Cookies and sent headers

2007-08-18 Thread M. Sokolewicz
bullshit, what he sees is a warning emitted by PHP, his redirect is done using JavaScript (which is clientside and has no, 0.0 effect on what PHP emits). Now, I'm not going to go into how redirecting that way won't work (or at least shouldn't), but a hint would be to do it properly using

Re: [PHP] getting from one table listing from another

2007-08-18 Thread Stephen Johnson
You might try sending this to a group that is more orientated towards data basing.. Since that seems to be what your asking about... On 8/18/07 3:53 PM, Nate [EMAIL PROTECTED] wrote: I know this is kinda crazy but I need it :P I have one table that lists name's and I have another table that

RE: [PHP] getting from one table listing from another

2007-08-18 Thread Jay Blanchard
[snip] I know this is kinda crazy but I need it :P I have one table that lists name's and I have another table that has the name's and points I want to know how to list the name's of the first table by the points of the second table [/snip] Not crazy, pretty standard from a database point of

[PHP] Delete row in a lookup table

2007-08-18 Thread nitrox .
Hi all, Is it not considered good practice to have a primary key on a lookup table for a database? I have 3 tables setup, games, memberleagues and members. The memberleagues table holds the id of the games table and members table. The problem I have is that Im not sure how to delete a row

Fwd: [PHP] Cookies and sent headers

2007-08-18 Thread Kelvin Park
-- Forwarded message -- From: Kelvin Park [EMAIL PROTECTED] Date: Aug 18, 2007 4:34 PM Subject: Re: [PHP] Cookies and sent headers To: M. Sokolewicz [EMAIL PROTECTED] the javascript code can definitely change to head(location: whatever.php) for redirection, if that's the solution,

Re: [PHP] Delete row in a lookup table

2007-08-18 Thread Larry Garfield
Whether or not it's good practice depends on who you ask. :-) Every table should have a primary key. Primary keys, however, may span multiple columns. That's perfectly legal. In some cases that primary key may span every column, but generally that's a sign of bad design unless you're