Re: [PHP] Call-time pass-by-reference ??

2005-01-26 Thread Jason Wong
On Thursday 27 January 2005 14:47, Michael Gale wrote: > I am trying to start a small php ncurses app but the documenatation is > not helping. OK, I've never used the ncurse functions before, but cursory glance at the manual results in the following observations: > What does the following mean

Re: [PHP] Linux PHP CLI and Environment variables

2005-01-26 Thread Burhan Khalid
Michael Gale wrote: Hello, I am running php 4.3.7 with ncurses support. I want to create a small app using php and ncurses but I will need to get some information from the shell environment variables. I have searched every where ...is this possible ? http://pear.php.net/package/Console_Getar

[PHP] Call-time pass-by-reference ??

2005-01-26 Thread Michael Gale
Hello, I am trying to start a small php ncurses app but the documenatation is not helping. What does the following mean: PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of ncurses_getma

[PHP] Linux PHP CLI and Environment variables

2005-01-26 Thread Michael Gale
Hello, I am running php 4.3.7 with ncurses support. I want to create a small app using php and ncurses but I will need to get some information from the shell environment variables. I have searched every where ...is this possible ? Michael. -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Linux PHP CLI and Environment variables

2005-01-26 Thread Josip Dzolonga
On Wed, 2005-01-26 at 22:38 -0700, Michael Gale wrote: > I have searched every where ...is this possible ? Well, take a look here http://www.php.net/manual/en/function.shell-exec.php . So you can exec an echo command and get the result. -- Josip Dzolonga, dzolonga at mt dot net dot mk -- PHP G

[PHP] Need to enhance functionality...

2005-01-26 Thread Rahul_Munjal
I have a Portal on PHP and I need to enhance the functionality to include Archieving, Searching and Versioning of files. Can I get the code/logic for doing so? Please send me if u have something that performs that task. I searched on sourceforge.net. I got a software KnowledgeTree but the codi

[PHP] Compiling PHP 4.3.3 with large file support

2005-01-26 Thread Jon
I'm running Fedora Core 1, all packages up to date. I want to add large file support to php. I downloaded the source rpm. Added "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" to CFLAGS in the spec file, rebuilt the rpm and installed it. Apache starts fine but I get "[notice] child pid exit si

[PHP] Web shopping cart

2005-01-26 Thread Rick Lim
Can anyone recommend a freeware shopping card app in php? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Avoiding NOTICEs on Array References

2005-01-26 Thread Michael Sims
Jochem Maas wrote: > [EMAIL PROTECTED] wrote: >> If one must check the value and not just the existence of the >> checkbox entry, or for other uses, e.g. where a flag may or may not >> be present, one is saddled with clumsy constructs like: >> >> if (($isset($array['index']) && ($array['index'

Re: [PHP] Re: Avoiding NOTICEs on Array References

2005-01-26 Thread Jochem Maas
[EMAIL PROTECTED] wrote: On 26 Jan 2005 Jason Barnett wrote: if (isset($_POST['checkboxfieldname'])) { /** do stuff */ } Sorry, I should have mentioned that I knew about using isset -- it works OK for the checkbox example, though I'm not clear if this behavior is specified and therefore will

Re: [PHP] Re: pcntl_fork doesn't work [RESOLVED]

2005-01-26 Thread John Davin
Thanks. I had read about passthru before but missed the note about running a program in the background. I ended up working out a solution using exec: exec( "/usr/bin/php my_other_php_script.php arg1 arg2 arg3 &"). (passed some data to the other script on the commandline). thanks, -John On Wed, 26

[PHP] set-time-limit

2005-01-26 Thread Wiberg
Hi! when safe mode is one, i can't use set_time_limit. Is there any workarounds? why is it so that when I echo something to the screen then I can run the script for a longer time, than if I don't have echo? Don't get the logic... /G @varupiraten.se -- Internal Virus Database is out-of-date. Che

[PHP] getrusage() and ru_nswap

2005-01-26 Thread bertrand Gugger
Hi, be kind enough to CC me as I'm not in the list. I wonder why getrusage() skip the ru_nswap ? quoting ext/standard/microtime.c: > #if !defined( _OSD_POSIX) && !defined(__BEOS__) /* BS2000 has only a few fields in the rusage struct */ >PHP_RUSAGE_PARA(ru_oublock); >PHP_RUSAGE_PARA(ru_inb

Re: [PHP] Parsing search strings from referer urls?

2005-01-26 Thread Jason Wong
On Thursday 27 January 2005 04:16, T.J. Mahaffey wrote: > First time post, please be gentle. > > I'd like to be able to extract search strings from referer urls that come > from search engines. (via php, of course) For example, > http://www.google.com/search?q=foo+bar&ie=UTF-8&oe=UTF-8 > > Now, I r

Re: [PHP] Re: Parsing search strings from referer urls?

2005-01-26 Thread Jennifer Goodie
-- Original message -- From: Jason Barnett <[EMAIL PROTECTED]> > T.J. Mahaffey wrote: > > First time post, please be gentle. > > You will probably find parse_url() to be useful: > http://www.php.net/manual/en/function.parse-url.php > > > $url = > "http://usern

Re: [PHP] Re: Image Resolution

2005-01-26 Thread DvDmanDT
Hmm.. If PDFs are always 72dpi.. Then the OP would in other words need to resize the PDF document (and everything on it) to 200/72 times the normal size, and then the printer would print it correct? Hmm.. Isn't that pretty much exactly what Richard Lynch said? Seems like a kinda ugly solution to me

Re: [PHP] Re: Image Resolution

2005-01-26 Thread Richard Lynch
DvDmanDT wrote: > Take a quick look at imagecopyresampled.. It can change the size of an > image > pretty good.. Now I know nothing about PDFs really.. But I suppose you > could > just scale it with the GD functions then place the result in a PDF.. Maybe > the PDF functions can scale as well though

Re: [PHP] How can I convert UTF-8 strings into UTF-16

2005-01-26 Thread Josip Dzolonga
On Wed, 2005-01-26 at 16:54 -0500, v0id null wrote: > So how cna I convert UTF-8 to UTF-16? > -- > llundi0v > Have you tried with iconv ? www.php.net/iconv for further details ;-) -- Josip Dzolonga, dzolonga at mt dot net dot mk -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Re: Image Resolution

2005-01-26 Thread DvDmanDT
Take a quick look at imagecopyresampled.. It can change the size of an image pretty good.. Now I know nothing about PDFs really.. But I suppose you could just scale it with the GD functions then place the result in a PDF.. Maybe the PDF functions can scale as well though.. Although, try both, becau

Re: [PHP] UTF-16 strings, is there a simple way of using them?

2005-01-26 Thread Marek Kilimajer
v0id null wrote: So, I have to handle data that is UTF-16 encoded. No ifs ands or buts. Network messages on the service I'm communicating with sends and recieves UTF-16 encoded strings only. After taking a look at the Multibyte String functions, I don't know how much they will help me, though chara

Re: [PHP] Image Resolution

2005-01-26 Thread Richard Lynch
Martin Magnusson wrote: > Hi, > > I have written a script that takes an uploaded jpeg-image and places it in > a > PDF-file with the PDFLib functions in php. The original image file is > 560x420, 72 dpi. Later on the PDF-file will be printed, and our printshop > requires at least 200 dpi. The forma

Re: [PHP] Avoiding NOTICEs on Array References

2005-01-26 Thread Jason Barnett
[EMAIL PROTECTED] wrote: On 26 Jan 2005 Jennifer Goodie wrote: if (isset($fields['flags']['someflag']) && $fields['flags']['someflag']) if (isset($_POST['checkboxfieldname']) && $_POST['checkboxfieldname']) The && short-circuits, so the second part of the conditional only gets evaluated if the

[PHP] How can I convert UTF-8 strings into UTF-16

2005-01-26 Thread v0id null
I tried the multi byte functions but those failed. So how cna I convert UTF-8 to UTF-16? -- llundi0v -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image Resolution

2005-01-26 Thread Martin Magnusson
Hi, I have written a script that takes an uploaded jpeg-image and places it in a PDF-file with the PDFLib functions in php. The original image file is 560x420, 72 dpi. Later on the PDF-file will be printed, and our printshop requires at least 200 dpi. The format of the printed image should be A6

[PHP] Image Resolution

2005-01-26 Thread Martin Magnusson
Hi, I have written a script that takes an uploaded jpeg-image and places it in a PDF-file with the PDFLib functions in php. The original image file is 560x420, 72 dpi. Later on the PDF-file will be printed, and our printshop requires at least 200 dpi. The format of the printed image should be A

Re: [PHP] Multi by Multi level system

2005-01-26 Thread Richard Lynch
> I know I can write a recursive function for each of these stages, but > thats not the best method. FWIW, I happen to think recursion *IS* the best method, based on what you've said so far... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Image manipulation without GD library

2005-01-26 Thread Richard Lynch
Tim Burgan wrote: > Is there any way that I can do some image manipulation - resizing - > without the GD libraries? You can use ImageMagik (aka 'convert') through http://php.net/exec if ImageMagik is installed, and the PHP user can run it. I'm guessing that the same could be said for the GIMP tho

Re: [PHP] Avoiding NOTICEs on Array References

2005-01-26 Thread trlists
On 26 Jan 2005 Jennifer Goodie wrote: > if (isset($fields['flags']['someflag']) && $fields['flags']['someflag']) > if (isset($_POST['checkboxfieldname']) && $_POST['checkboxfieldname']) > > The && short-circuits, so the second part of the conditional only > gets evaluated if the first part is t

Re: [PHP] Apache: Request exceeded the limit of 10 internal redirects

2005-01-26 Thread Marek Kilimajer
Richard Lynch wrote: RewriteRule ^(.*)$ /$1.php You probably wanted more like: RewriteRule ([^\.]) /$1.php That probably ain't right, but your goal is to get only filenames with NO '.' in them, and you need \ to esacpe the . so it doesn't mean "any character" Dot has no special meaning in a charac

Re: [PHP] Magic quotes question (still driving me mad)

2005-01-26 Thread Richard Lynch
Ben Edwards wrote: > On Tue, 25 Jan 2005 17:02:21 -0800, Chris <[EMAIL PROTECTED]> > wrote: >> You should probably use get_magic_quotes_runtime() , as _gpc only >> applies to GET/POST/COOKIE, >> >> htmlspecialchars is needed so the HTML can be parsed properly: > > So this is this only done to stuf

Re: [PHP] Apache: Request exceeded the limit of 10 internal redirects

2005-01-26 Thread Richard Lynch
James Guarriman wrote: > RewriteEngine on > RewriteOptions MaxRedirects=15 > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ /$1.php > > Despite the very very very scary warnings not to, turn on the Rewrite Logging feature and tail -f the log until

Re: [PHP] Isolated Execution Environment in PHP? (a la Safe module in Perl)

2005-01-26 Thread Eric Dorland
On Wed, 2005-01-26 at 12:41 -0800, Richard Lynch wrote: > Eric Dorland wrote: > > We've created our own CMS in PHP and we'd like to allow our users to do > > more sophisticated things, like embed there own PHP code in pages. We > > already run in safe-mode with our code, but we would like to run th

Re: [PHP] LIMIT with MSSQL

2005-01-26 Thread Richard Lynch
Zouari Fourat wrote: > Is there anybody who succed in doing per/page listing from a MS SQL Server > db. Sure. > knowing that mssql doesnt support LIMIT like mysql and it uses TOP. Ain't never heard of TOP... But start reading the MS SQL manual about "cursors" to get efficient paging. -- Like

[PHP] Re: Parsing search strings from referer urls?

2005-01-26 Thread Jason Barnett
T.J. Mahaffey wrote: First time post, please be gentle. I'd like to be able to extract search strings from referer urls that come from search engines. (via php, of course) For example, http://www.google.com/search?q=foo+bar&ie=UTF-8&oe=UTF-8 Now, I realize one might employ grep to pull out this in

Re: [PHP] pcntl_fork doesn't work

2005-01-26 Thread Richard Lynch
John Davin wrote: > I'm trying to use pcntl_fork on php 4.3.10, but it says " Call to > undefined function: pcntl_fork() in test.php on line 3"". > > The manual says pcntl is present in php >= 4.1.0. I have 4.3.10, just the > standard installation included on fedora core 3. > > I've done all the

Re: [PHP] Isolated Execution Environment in PHP? (a la Safe module in Perl)

2005-01-26 Thread Richard Lynch
Eric Dorland wrote: > We've created our own CMS in PHP and we'd like to allow our users to do > more sophisticated things, like embed there own PHP code in pages. We > already run in safe-mode with our code, but we would like to run their > code in an even more restricted environment than our own c

[PHP] in need of a directory/listing script/app

2005-01-26 Thread Bruce Douglas
hi... i'm looking for a good app/function/code to allow users to select a given item(s) from a list of categories. i'd also like the user to be able to display users who have selected a given category from the list... i can't seem to find an app that has this kind of code incorporated... thank

[PHP] Parsing search strings from referer urls?

2005-01-26 Thread T.J. Mahaffey
First time post, please be gentle. I'd like to be able to extract search strings from referer urls that come from search engines. (via php, of course) For example, http://www.google.com/search?q=foo+bar&ie=UTF-8&oe=UTF-8 Now, I realize one might employ grep to pull out this information and its e

Re: [PHP] Re: Avoiding NOTICEs on Array References

2005-01-26 Thread DvDmanDT
I'm pretty sure you can rely on the fact that they are undefined if not checked.. It's somewhere in the HTML or HTTP standard.. Also, the manual page of empty() says it won't generate errors if the variable isn't set.. So empty() is probably the best way to go then.. -- // DvDmanDT MSN: dvdmandt¤

Re: [PHP] Multi-language in script

2005-01-26 Thread Torsten Rosenberger
Hello take a look a gettext in the manual BR/Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Multi-language in script

2005-01-26 Thread Zoran Lorkovic
Hi I'm interested, which is the best way to include multi-language support in scripts? By this I mean that with new version of script/program end-user don't need to translate whole site again... With flat-file and "define" function or with "mysql" ? Regards, Zoran -- PHP General Mailing List

Re: [PHP] Re: Avoiding NOTICEs on Array References

2005-01-26 Thread trlists
On 26 Jan 2005 Jason Barnett wrote: > if (isset($_POST['checkboxfieldname'])) { >/** do stuff */ > } Sorry, I should have mentioned that I knew about using isset -- it works OK for the checkbox example, though I'm not clear if this behavior is specified and therefore will not change -- i.e.

Re: [PHP] Avoiding NOTICEs on Array References

2005-01-26 Thread Jochem Maas
Tom Rawson wrote: I have many places where I use references like this: if ($fields['flags']['someflag']) ... or perhaps if ($_POST['checkboxfieldname']) ... If there is no value for 'someflag', or if the check box was not checked -- both of which are often the case -- these generat

Re: [PHP] Avoiding NOTICEs on Array References

2005-01-26 Thread Jennifer Goodie
-- Original message -- From: "Tom Rawson" <[EMAIL PROTECTED]> > I have many places where I use references like this: > > if ($fields['flags']['someflag']) ... > > or perhaps > > if ($_POST['checkboxfieldname']) ... > > If there is no value for 'somef

[PHP] Re: Avoiding NOTICEs on Array References

2005-01-26 Thread Jason Barnett
Tom Rawson wrote: I have many places where I use references like this: if ($fields['flags']['someflag']) ... or perhaps if ($_POST['checkboxfieldname']) ... if (isset($_POST['checkboxfieldname'])) { /** do stuff */ } -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/

[PHP] Avoiding NOTICEs on Array References

2005-01-26 Thread Tom Rawson
I have many places where I use references like this: if ($fields['flags']['someflag']) ... or perhaps if ($_POST['checkboxfieldname']) ... If there is no value for 'someflag', or if the check box was not checked -- both of which are often the case -- these generate errors at l

[PHP] Multi-language in script

2005-01-26 Thread Zoran Lorkovic
Hi I'm interested, which is the best way to include multi-language support in scripts? By this I mean that with new version of script/program end-user don't need to translate whole site again... With flat-file and "define" function or with "mysql" ? Regards, Zoran

[PHP] PHP based mysql search tool

2005-01-26 Thread Daniel Baughman
I am looking for a full featured search tool I can plug into a couple of databases via a php front end. I currently have some of the text indexing done and have some basic search setup, using mysql queries like "select from table where match 'search term' against column;" But am looking for s

Re: [PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Marek
> > I could run a background job which periodically does the gethostbyaddr > > on the IP's stored on disk, but that's sort of a hack, and is more > > complicated than if I could fork. > Sounds like passthru() might do what you want > . Actually forking to resolve ip b

[PHP] Re: Message Error

2005-01-26 Thread rasmus
Encrypted message is available. Attachment: No Virus found F-Secure AntiVirus - www.f-secure.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] check server status...please help

2005-01-26 Thread Marek
> I want to write a script that will check if the server is down if it is I > want to redirect the user to another site, the backup server. > > Similarly I want users who go on to the seondary site when the main server > is UP to be redirected to the main site. > > Can this be done using PHP. If no

Re: [PHP] check server status...please help

2005-01-26 Thread John Nichel
Ross Hulford wrote: I want to write a script that will check if the server is down if it is I want to redirect the user to another site, the backup server. If I go to http://www.yoursite.com and yoursite.com is down, how is it going to redirect me somewhere else? -- John C. Nichel ÜberGeek KegWo

RE: [PHP] check server status...please help

2005-01-26 Thread Jay Blanchard
[snip] I want to write a script that will check if the server is down if it is I want to redirect the user to another site, the backup server. Similarly I want users who go on to the seondary site when the main server is UP to be redirected to the main site. Can this be done using PHP. If not c

[PHP] check server status...please help

2005-01-26 Thread Ross Hulford
I want to write a script that will check if the server is down if it is I want to redirect the user to another site, the backup server. Similarly I want users who go on to the seondary site when the main server is UP to be redirected to the main site. Can this be done using PHP. If not can you

[PHP] UTF-16 strings, is there a simple way of using them?

2005-01-26 Thread v0id null
So, I have to handle data that is UTF-16 encoded. No ifs ands or buts. Network messages on the service I'm communicating with sends and recieves UTF-16 encoded strings only. After taking a look at the Multibyte String functions, I don't know how much they will help me, though character encoding is

Re: [PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
John Davin wrote: Isn't there any other way to fork a process? PHP doesn't have thread support? Why isn't pcntl enabled by default? Surely the Windows compatibility isn't an issue, because pcntl could default to enabled in linux but disabled in windows. I'll tell you what I'm trying to do, in c

Re: [PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread John Davin
That's what I was afraid of. My web host (totalchoicehosting) doesn't have pcntl compiled in either, so I'm sort of stuck. Isn't there any other way to fork a process? PHP doesn't have thread support? Why isn't pcntl enabled by default? Surely the Windows compatibility isn't an issue, because p

[PHP] Isolated Execution Environment in PHP? (a la Safe module in Perl)

2005-01-26 Thread Eric Dorland
Hi, We've created our own CMS in PHP and we'd like to allow our users to do more sophisticated things, like embed there own PHP code in pages. We already run in safe-mode with our code, but we would like to run their code in an even more restricted environment than our own code (ie, disable some m

[PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
John Davin wrote: The manual says pcntl is present in php >= 4.1.0. I have 4.3.10, just the standard installation included on fedora core 3. Why wouldn't pcntl be working? Is there any other way for me to fork a process or thread? Take a look at http://www.php.net/pcntl. If you're using the st

[PHP] pcntl_fork doesn't work

2005-01-26 Thread John Davin
I'm trying to use pcntl_fork on php 4.3.10, but it says " Call to undefined function: pcntl_fork() in test.php on line 3"". The manual says pcntl is present in php >= 4.1.0. I have 4.3.10, just the standard installation included on fedora core 3. I've done all the standard stuff - google'd, s

[PHP] LIMIT with MSSQL

2005-01-26 Thread Zouari Fourat
Hello Is there anybody who succed in doing per/page listing from a MS SQL Server db. knowing that mssql doesnt support LIMIT like mysql and it uses TOP. i didnt find an optimized way to make a per/page script. Here's what am doing know : to replace a MySQL "SELECT FROM LIMIT $x,$y" i did

Re: [PHP] Optimize code?

2005-01-26 Thread The Disguised Jedi
yes, i recommend reading the file into a buffer and saving out the part you actually need. that way the buffer can only be so big, and you only keep what you really need... On Wed, 26 Jan 2005 10:27:35 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > Wiberg wrote: > > Hi! > > > > I wonder if I ca

[PHP] mssql and paging

2005-01-26 Thread Zouari Fourat
Hello Is there anybody who succed in doing per/page listing from a MS SQL Server db. knowing that mssql doesnt support LIMIT like mysql and it uses TOP. i didnt find an optimized way to make a per/page script. Here's what am doing know : to replace a MySQL "SELECT FROM LIMIT $x,$y" i did

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-26 Thread Jochem Maas
Jay Blanchard wrote: [snip] 4. a website/subsite & related DB to store data for phParrot, tips, etc. phparrot.net is up for grabs - I'm happy to register it (can't grace the list with ace mathematical explainations :-) but I'm happy to shell out a few bucks as a way of giving back a little) - and I

Re: [PHP] Log-in script help

2005-01-26 Thread Joe Harman
Tom, That's a great tip! Joe On Wed, 26 Jan 2005 10:03:31 +, Tom <[EMAIL PROTECTED]> wrote: > Joe Harman wrote: > > >Hey Andrew... > > > >IN MY OPINION... forget the cookies... only use php sessions... but > >like I said IMO you can never rely on the end user having them > >cookies ena

RE: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-26 Thread Jay Blanchard
[snip] 4. a website/subsite & related DB to store data for phParrot, tips, etc. phparrot.net is up for grabs - I'm happy to register it (can't grace the list with ace mathematical explainations :-) but I'm happy to shell out a few bucks as a way of giving back a little) - and I'd just as happily t

Re: [PHP] Working with Multi by Multi levels menu

2005-01-26 Thread Marek
> Marek wrote: > > Hiya Marek K, > > > > Thanks for the link, however on that page the links regarding a "Modified > > Preorder Tree Traversal Algorithm" come up as 404. > > Then see: > http://www.sitepoint.com/article/hierarchical-data-database/2 This article is specifically for a database driven

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-26 Thread Jochem Maas
Jay Blanchard wrote: [snip] ...lots of really good stuff... [/snip] So, basically I saw 3 possible action items from this discussion... 1. phParrot development 2. Weekly CRON of NEWBIE GUIDE (once I get the e-mail portion figured out) 3. OT posts should contain a TIP or TRICK? If we did this we cou

Re: [PHP] Working with Multi by Multi levels menu

2005-01-26 Thread Marek Kilimajer
Marek wrote: Hiya Marek K, Thanks for the link, however on that page the links regarding a "Modified Preorder Tree Traversal Algorithm" come up as 404. Then see: http://www.sitepoint.com/article/hierarchical-data-database/2 I would prefer not to use recursion until the third stage (display of menu

Re: [PHP] Image manipulation without GD library

2005-01-26 Thread Marek Kilimajer
Tim Burgan wrote: Hello, Is there any way that I can do some image manipulation - resizing - without the GD libraries? Can you execute imagemagic's mogrify? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-26 Thread Jochem Maas
Jay Blanchard wrote: [snip] Now, perhaps, an INTERESTING project for some of us to work on would be that system: Spec: Robot subscriber to PHP-General. Reads all incoming messages. Discards anything that looks like a 'Reply:' including: Has 'Re: ' or 'Fwd: " in subject Has Message ID in-reply-t

[PHP] Re: Image manipulation without GD library

2005-01-26 Thread Jason Barnett
Tim Burgan wrote: Hello, Is there any way that I can do some image manipulation - resizing - without the GD libraries? I've always used the GD library and it's the only way that I'm aware of to do resizing. Unless of course you're willing to do all the resizing manually and just upload the new

RE: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-26 Thread Jay Blanchard
[snip] ...lots of really good stuff... [/snip] So, basically I saw 3 possible action items from this discussion... 1. phParrot development 2. Weekly CRON of NEWBIE GUIDE (once I get the e-mail portion figured out) 3. OT posts should contain a TIP or TRICK? If we did this we could harvest them onc

Re: [PHP] Working with Multi by Multi levels menu

2005-01-26 Thread Marek
Hiya Marek K, Thanks for the link, however on that page the links regarding a "Modified Preorder Tree Traversal Algorithm" come up as 404. I would prefer not to use recursion until the third stage (display of menu). In fact I know, I will not use recursion for the first or second, simply because f

RE: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-26 Thread Jay Blanchard
[snip] I'm not going to promise any of this. If someone else is willing to donate the hardware to make this happen then contact me / the list. Of course anyone else that wants to donate coding time is more than welcome to join project ParrotHeadPoster. :) I can already imagine it now... "I'

RE: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-26 Thread Jay Blanchard
[snip] Now, perhaps, an INTERESTING project for some of us to work on would be that system: Spec: Robot subscriber to PHP-General. Reads all incoming messages. Discards anything that looks like a 'Reply:' including: Has 'Re: ' or 'Fwd: " in subject Has Message ID in-reply-to header thingies Co

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-26 Thread Rolf Østvik
[EMAIL PROTECTED] (John Nichel) wrote in news:[EMAIL PROTECTED]: > Jay Blanchard wrote: >> [snip] >> CR> Just a thought, but would it be worth someone posting the list >> CR> once a week to catch new users as they sign up? >> >> Isn't it posted once a month as it is? >> [/snip] >> >> It used to

RE: [PHP] Magic quotes question (still driving me mad)

2005-01-26 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Ben Edwards [mailto:[EMAIL PROTECTED] > Sent: 26 January 2005 10:15 > > On Tue, 25 Jan 2005 17:02:21 -0800, Chris > <[EMAIL PROTECTED]> wrote:

[PHP] Re: Understanding intval() and types conversion

2005-01-26 Thread Jordi Canals
Many thanks to all for clarifiying this. Finally I could remember some things and understand why things go that way. Thanks again. Jordi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] round

2005-01-26 Thread Sergio Gorelyshev
On Wed, 26 Jan 2005 06:32:32 -0500 blackwater dev <[EMAIL PROTECTED]> wrote: > Hello, > > I have these values: > > 8.26456 > 9.7654 > 3. > 5.2689 > > and I want them rounded to two decimal places so I use the round : > round($value,2) which gives me, for example: > 8.26 You can try the spr

RE: [PHP] round

2005-01-26 Thread Gerard Petersen
You can use the number_format($number, decimal_places) function. -Original Message- From: blackwater dev [mailto:[EMAIL PROTECTED] Sent: 26 January 2005 01:33 PM To: php-general@lists.php.net Subject: [PHP] round Hello, I have these values: 8.26456 9.7654 3. 5.2689 and I want them

[PHP] Re: round

2005-01-26 Thread M. Sokolewicz
use number_format() Blackwater Dev wrote: Hello, I have these values: 8.26456 9.7654 3. 5.2689 and I want them rounded to two decimal places so I use the round : round($value,2) which gives me, for example: 8.26 But, it also gives me 3 instead of 3.00. How can I round but retain the 0's? Thank

[PHP] round

2005-01-26 Thread blackwater dev
Hello, I have these values: 8.26456 9.7654 3. 5.2689 and I want them rounded to two decimal places so I use the round : round($value,2) which gives me, for example: 8.26 But, it also gives me 3 instead of 3.00. How can I round but retain the 0's? Thanks! -- PHP General Mailing List (htt

Re: [PHP] Getting two queries into one result set

2005-01-26 Thread Jochem Maas
Marek Kilimajer wrote: Shaun wrote: Hi, I have a query where I select all table names where the table name has PID_1 in i.e. SHOW TABLES LIKE '%PID_1%'; However there may be cases where I need to search for tables where the table name is PID_1 or PID_2. In MySQL this can't be done in one query,

Re: [PHP] Getting two queries into one result set

2005-01-26 Thread Marek Kilimajer
Shaun wrote: Hi, I have a query where I select all table names where the table name has PID_1 in i.e. SHOW TABLES LIKE '%PID_1%'; However there may be cases where I need to search for tables where the table name is PID_1 or PID_2. In MySQL this can't be done in one query, so how can I do two qu

Re: [PHP] Apache: Request exceeded the limit of 10 internal redirects

2005-01-26 Thread Marek Kilimajer
James Guarriman wrote: Hi I've just installed Apache 2.0.52, with: ./configure --prefix=/usr/local/httpd --enable-so --enable-modules=all My httpd.conf includes: --- ServerAdmin [EMAIL PROTECTED] DocumentRoot "/home/mydomain" ServerName mydomain ErrorLog logs/mydoma

[PHP] Re: Getting two queries into one result set

2005-01-26 Thread M. Sokolewicz
Shaun wrote: Hi, I have a query where I select all table names where the table name has PID_1 in i.e. SHOW TABLES LIKE '%PID_1%'; However there may be cases where I need to search for tables where the table name is PID_1 or PID_2. In MySQL this can't be done in one query, so how can I do two qu

[PHP] Getting two queries into one result set

2005-01-26 Thread Shaun
Hi, I have a query where I select all table names where the table name has PID_1 in i.e. SHOW TABLES LIKE '%PID_1%'; However there may be cases where I need to search for tables where the table name is PID_1 or PID_2. In MySQL this can't be done in one query, so how can I do two queries and c

Re: [PHP] Apache: Request exceeded the limit of 10 internal redirects

2005-01-26 Thread Tom
James Guarriman wrote: Hi I've just installed Apache 2.0.52, with: ./configure --prefix=/usr/local/httpd --enable-so --enable-modules=all My httpd.conf includes: --- ServerAdmin [EMAIL PROTECTED] DocumentRoot "/home/mydomain" ServerName mydomain ErrorLog logs/mydoma

Re: [PHP] Working with Multi by Multi levels menu

2005-01-26 Thread Marek Kilimajer
Marek wrote: Hello Creating a three dimensional menu system is pretty easy with arrays, but when you want to create a menu system that is 10 or 15 levels deep using arrays the conventional method is not so simple. I'm writing an application that shows a multi level (up to 30 levels) menu which is g

[PHP] Apache: Request exceeded the limit of 10 internal redirects

2005-01-26 Thread James Guarriman
Hi I've just installed Apache 2.0.52, with: ./configure --prefix=/usr/local/httpd --enable-so --enable-modules=all My httpd.conf includes: --- ServerAdmin [EMAIL PROTECTED] DocumentRoot "/home/mydomain" ServerName mydomain ErrorLog logs/mydomain-error_log CustomL

Re: [PHP] Magic quotes question (still driving me mad)

2005-01-26 Thread Ben Edwards
On Tue, 25 Jan 2005 17:02:21 -0800, Chris <[EMAIL PROTECTED]> wrote: > You should probably use get_magic_quotes_runtime() , as _gpc only > applies to GET/POST/COOKIE, > > htmlspecialchars is needed so the HTML can be parsed properly: So this is this only done to stuff that is to be displayed on

Re: [PHP] Log-in script help

2005-01-26 Thread Tom
Joe Harman wrote: Hey Andrew... IN MY OPINION... forget the cookies... only use php sessions... but like I said IMO you can never rely on the end user having them cookies enabled... same with things like javascript... let me outline some steps for you... everyone else... feel free to state pr

Re: [PHP] Optimize code?

2005-01-26 Thread Jochem Maas
Wiberg wrote: Hi! I wonder if I can optimize following code (or do something better) below? It works fine when about 3.000 rows exists in the textfile, but when it gets to 10.000 rows then it will get a session timeout. (or internal server error) I assume the func gets called for every row in the t

Re: [PHP] PHP Application server / Expression of Interest

2005-01-26 Thread Jochem Maas
Devraj Mukherjee wrote: Yes that is the sort of stuff we are looking at. Objects will be able to live endlessly, we are planning to address issues such as DB connection pooling, etc. For those who wish to learn more about app servers, I recommend you looking at some of the Java stuff http://ja