php-general Digest 28 Nov 2007 15:49:02 -0000 Issue 5152

2007-11-28 Thread php-general-digest-help
php-general Digest 28 Nov 2007 15:49:02 - Issue 5152 Topics (messages 265110 through 265142): Re: Can I create flash via php? 265110 by: Jay Blanchard 265111 by: Warren Vail 265116 by: Ronald Wiplinger 265118 by: George Pitcher Array Slice without loosing

Re: [PHP] Can I create flash via php?

2007-11-28 Thread Ronald Wiplinger
Jay Blanchard wrote: [snip] I want to create flash animations via a web page. Is it possible? What do I need. I do not want to use Windows [/snip] STFW http://www.google.com/search?hl=enq=create+flash+using+PHP Excellent link (and bet I tried that one before!!!), can you

Re: [PHP] Nested include/require not working in 5.2

2007-11-28 Thread news_yodpeirs
Did you look for files named config.php? I would try to find out which file is loaded instead of the wanted one. Maybe you could use fopen('config.php','r',TRUE); and check the contents of that file to get an idea where it comes from? If it happens only with a file of this name, I would assume

RE: [PHP] Can I create flash via php?

2007-11-28 Thread George Pitcher
Ronald, Add 'example' to the end of the search query. George -Original Message- From: Ronald Wiplinger [mailto:[EMAIL PROTECTED] Sent: 28 November 2007 8:07 am To: Jay Blanchard Cc: PHP General list Subject: Re: [PHP] Can I create flash via php? Jay Blanchard wrote: [snip]

Re: [PHP] Question about authenticating people...

2007-11-28 Thread [EMAIL PROTECTED]
Jason Pruim wrote: Set the main page, so that when you login, it accesses a master database, which has the username, password, and database name stored in it. Write the database name to a session variable, which I could then use in my mysql connect file for the database... This sounds

[PHP] partial upload no file errors

2007-11-28 Thread Olav Mørkrid
hello under what EXACT circumstances does UPLOAD_ERR_PARTIAL and UPLOAD_ERR_NO_FILE occur? ...NO_FILE, does it happen ONLY if the user submits a form without choose a file to upload, or can this one also cover corrupt file data that php could not parse? ...PARTIAL, does it happen if the user

Re: [PHP] how do i get a printout of original multipart post data

2007-11-28 Thread Olav Mørkrid
what is the thought behind php not providing access to original post data? this removes any chance of analyzing corrupt upload data, which is often the case with mobile browsers. can future versions of php please include a way of viewing raw server requests in full? On 26/11/2007, [EMAIL

[PHP] Seeking PHP developer in / near Amsterdam, Netherlands

2007-11-28 Thread T . Lensselink
If interested! Pls contact me off list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread tedd
At 12:56 AM +0100 11/28/07, Jochem Maas wrote: Colin Guthrie wrote: tedd wrote: ... Sorry Tedd, but I'm not sure where the browser sniffing stuff came in. IE and FF both offer a UI to input the user's preferred language, it's an HTTP standard thing and nothign to do with user agents

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
tedd wrote: At 12:56 AM +0100 11/28/07, Jochem Maas wrote: Colin Guthrie wrote: tedd wrote: ... Sorry Tedd, but I'm not sure where the browser sniffing stuff came in. IE and FF both offer a UI to input the user's preferred language, it's an HTTP standard thing and nothign to do

Re: [PHP] CVS TO ICAL

2007-11-28 Thread Wolf
Always make sure you reply to the list... And yes, you can export as an ical format, just look at an ical file and format your output to it. It's just like doing the CSV/CVS/TXT or any other file, you just have to put it in the right format with the right extension when exporting. Wolf Mohamed

[PHP] The PHP License

2007-11-28 Thread AmirBehzad Eslami
Hi list, Below statement is borrowed from PHP License here[1]: The name PHP must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact [EMAIL PROTECTED] Does this mean that saying this

[PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jeff Benetti
Wow! I love this group, ask and you shall receive. Thanks everyone for the comments and suggestions. The following snippet from Andrés Robinet would actually suit my current project.. define('DEFAULT_LANG_ID', 'en'); function getLanguageId() { // Allow for language id override in

Re: [PHP] The PHP License

2007-11-28 Thread Daniel Brown
On Nov 28, 2007 9:39 AM, AmirBehzad Eslami [EMAIL PROTECTED] wrote: Hi list, Below statement is borrowed from PHP License here[1]: The name PHP must not be used to endorse or promote products derived from this software without prior written permission. For written permission,

[PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Colin Guthrie
tedd wrote: At 12:56 AM +0100 11/28/07, Jochem Maas wrote: Colin Guthrie wrote: tedd wrote: ... Sorry Tedd, but I'm not sure where the browser sniffing stuff came in. IE and FF both offer a UI to input the user's preferred language, it's an HTTP standard thing and nothign to do

Re: [PHP] The PHP License

2007-11-28 Thread Jochem Maas
AmirBehzad Eslami wrote: Hi list, Below statement is borrowed from PHP License here[1]: The name PHP must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact [EMAIL PROTECTED]

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
Jeff Benetti wrote: ... Am I correct that if two people are logged on using two different languages that the session var will keep track of the different users (by IP I assume) and the server won’t mess up? yes, the contents of $_SESSION are stored per user. this is tracked by way of a

[PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Colin Guthrie
Jeff Benetti wrote: Am I correct that if two people are logged on using two different languages that the session var will keep track of the different users (by IP I assume) and the server won’t mess up? Sessions are per-user and are not global (you'd need to use something like memcache or

Re: [PHP] CVS TO ICAL

2007-11-28 Thread Jochem Maas
Wolf wrote: Always make sure you reply to the list... And yes, you can export as an ical format, just look at an ical file and format your output to it. It's just like doing the CSV/CVS/TXT or any other file, you just have to put it in the right format with the right extension when

Re: [PHP] Nested include/require not working in 5.2 (SOLVED)

2007-11-28 Thread Mike Yrabedra
on 11/27/07 3:49 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 1:53 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL PROTECTED] wrote: on 11/27/07 1:43 PM, Wolf at [EMAIL PROTECTED] wrote: Mike Yrabedra [EMAIL

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread tedd
At 3:01 PM +0100 11/28/07, Jochem Maas wrote: tedd wrote: So, sniffing the browser to determine language isn't the same as browser sniffing -- OK. there is no sniffing of the browser - merely a case of parsing the contents of the Accept-Language header if the browser sent it along with the

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jean-Michel Philippon-Nadeau
Dear Tedd, Dear List, tedd wrote: As for being hung-up -- again, I'm clueless. I mistakenly thought that anything obtained from the browser was subject to suspicion as is any outside data. But apparently you can trust (I realize within certain limits) some things provided by the browser --

Re: [PHP] The PHP License [SOLVED]

2007-11-28 Thread AmirBehzad Eslami
Thanks Jochem and Daneil. I got it.

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
tedd wrote: At 3:01 PM +0100 11/28/07, Jochem Maas wrote: ... Jochem: This just hasn't been my week -- everyone (long story) thinks I'm being sarcastic when I'm not. ouch! The Sorry, my bad means I apologize, my mistake. How can that be taken as sarcasm? guess it's down to my input

Re: [PHP] Should I put pictures into a database?

2007-11-28 Thread AmirBehzad Eslami
On Wednesday 21 November 2007 03:14:43 Ronald Wiplinger wrote: I have an application, where I use pictures. The size of the picture is about 90kB and to speed up the preview, I made a thumbnail of each picture which is about 2.5 to 5kB. I use now a directory structure of ../$a/$b/$c/pictures

Re: [PHP] Re: Newbie asks about multi-lingual website strategies

2007-11-28 Thread Jochem Maas
Jean-Michel Philippon-Nadeau wrote: Dear Tedd, Dear List, tedd wrote: As for being hung-up -- again, I'm clueless. I mistakenly thought that anything obtained from the browser was subject to suspicion as is any outside data. But apparently you can trust (I realize within certain limits)

[PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Daniel Brown
Good morning (/afternoon/evening) all; This is more or less an RFC-type email, hence the subject line. I would like to see your comments on this case, and maybe we can forge some sort of agreement or unofficial treaty or something. Oftentimes we see a user post a question to the

Re: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Nathan Nobbe
On Nov 28, 2007 10:48 AM, Daniel Brown [EMAIL PROTECTED] wrote: Good morning (/afternoon/evening) all; This is more or less an RFC-type email, hence the subject line. I would like to see your comments on this case, and maybe we can forge some sort of agreement or unofficial treaty or

Re: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Daniel Brown
On Nov 28, 2007 10:56 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Nov 28, 2007 10:48 AM, Daniel Brown [EMAIL PROTECTED] wrote: Good morning (/afternoon/evening) all; This is more or less an RFC-type email, hence the subject line. I would like to see your comments on this case,

Re: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Jason Pruim
On Nov 28, 2007, at 10:56 AM, Nathan Nobbe wrote: On Nov 28, 2007 10:48 AM, Daniel Brown [EMAIL PROTECTED] wrote: Good morning (/afternoon/evening) all; This is more or less an RFC-type email, hence the subject line. I would like to see your comments on this case, and maybe we can

[PHP] maximum available memory for PHP5.2.5

2007-11-28 Thread Damian Lubosch
Hello! I have a php application (self-written) that has to compute a huge amount of data (several GB). I am using PHP as a module of apache. The problem is that the apache process seems to use at most 2GB of memory. My two 64-Bit Debian servers have 4GB and 8GB of RAM and about 80GB Swap but

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Jason Pruim
On Nov 27, 2007, at 6:01 PM, Stut wrote: Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting them in either $_POST or $_GET each time... But that can add

Re: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Daniel Brown
On Nov 28, 2007 10:56 AM, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] So the summary of my proposal is as follows: 1.) An issue has been identified with the list whereby improper archival will likely lead to repeat questions and unnecessary traffic to the list. 2.) I

RE: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Jay Blanchard
[snip] So the summary of my proposal is as follows: 1.) An issue has been identified with the list whereby improper archival will likely lead to repeat questions and unnecessary traffic to the list. 2.) I propose that we discontinue the act of subject modification to indicate

RE: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Jay Blanchard
[snip] However, doing this defeats the purpose of a mailing list archive, and prompts unnecessary repetition of help requests for an issue that may have been discussed to death just five days prior. Again, the [SOLVED] tag is great on a forum, where you can quickly scan for that topic that

[PHP] Re: PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread news_yodpeirs
Wouldn't this be solved if the email is simply an answer to the thread instead of a new, separate email? Within the thread about nested files (http://www.nabble.com/Nested-include-require-not-working-in-5.2-tf4882937.html) there was also an email with a changed subject ((SOLVED) was added), but

Re: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Daniel Brown
On Nov 28, 2007 11:16 AM, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] However, doing this defeats the purpose of a mailing list archive, and prompts unnecessary repetition of help requests for an issue that may have been discussed to death just five days prior. Again, the [SOLVED] tag

Re: [PHP] Re: PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Daniel Brown
On Nov 28, 2007 11:13 AM, [EMAIL PROTECTED] wrote: Wouldn't this be solved if the email is simply an answer to the thread instead of a new, separate email? Within the thread about nested files (http://www.nabble.com/Nested-include-require-not-working-in-5.2-tf4882937.html) there was also an

Re: [PHP] Re: PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Stephen Johnson
From: Daniel Brown [EMAIL PROTECTED] Date: Wed, 28 Nov 2007 11:37:10 -0500 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Re: PHP RFC # 0001 --- List Etiquette Further, I think Jason Pruim's suggestion of adding to the welcome email opens up an interesting

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Stut
Jason Pruim wrote: On Nov 27, 2007, at 6:01 PM, Stut wrote: Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting them in either $_POST or $_GET each time...

Re: [PHP] Re: PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Per Jessen
[EMAIL PROTECTED] wrote: Wouldn't this be solved if the email is simply an answer to the thread instead of a new, separate email? Yes it would. Any other suggestion (to fix the same) will most likely fail when the user cannot even work out how to reply properly. IMHO. /Per Jessen, Zürich

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Stut
Jason Pruim wrote: On Nov 28, 2007, at 12:07 PM, Stut wrote: Jason Pruim wrote: One of the things I have in a session variable, is a search function through the database, and then an export to excel option. Would I be better to store that in a cookie rather then a session variable? Not

RE: RE: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Jay Blanchard
[snip] I have absolutely no objection to using it, but there's nothing de-facto standard about it. [/snip] OK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Getting IP from hostname using Curl

2007-11-28 Thread Gevorg Harutyunyan
Hi, I am using Curl extension for my project. Regulary I am fetching some pages from web using Curl. Now I must create ban system for some IPs. Is there any way to do that with Curl ? -- Best Regards, Gevorg Harutyunyan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Jason Pruim
On Nov 28, 2007, at 12:52 PM, Stut wrote: Jason Pruim wrote: The search results arn't stored in a session, just the search variable (IE: What they searched for) It was the only way I could get it to export the search results to my excel file... It may be because I have everything in

RE: [PHP] running cmd via php

2007-11-28 Thread Jay Blanchard
[snip] I'm trying a lot to find how I can run the cmd (command line of windows) and send to the cmd commands? [/snip] On the server? http://www.php.net/exec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] running cmd via php

2007-11-28 Thread adam_99
Hello! I'm trying a lot to find how I can run the cmd (command line of windows) and send to the cmd commands? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Jason Pruim
On Nov 28, 2007, at 12:07 PM, Stut wrote: Jason Pruim wrote: On Nov 27, 2007, at 6:01 PM, Stut wrote: Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting

RE: RE: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Per Jessen
Jay Blanchard wrote: [snip] I have absolutely no objection to using it, but there's nothing de-facto standard about it. [/snip] OK Jay, just out of curiosity - you also chose to start a new thread, rather than reply to the old one - why is that? If anything, that is the core issue we

RE: RE: RE: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Jay Blanchard
[snip] Jay, just out of curiosity - you also chose to start a new thread, rather than reply to the old one - why is that? If anything, that is the core issue we should be addressing. [/snip] It is my e-mail client. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] problem with url_fopen on free hosting environment

2007-11-28 Thread Samuel Vogel
I know that the same is possible using curl, but with url_fopen on it's just way easier. We also allready use the suhosin patch extension, but there is no directive to limit fopen, you can just limit include directives. We also have a limited number of requests, but that's not the point. The

RE: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Per Jessen
Jay Blanchard wrote: This has been the expected behavior (adding [SOLVED]) for a long time though it does not occur as often as it should. It has been in the NEWBIE GUIDE for a long time and has been a de-facto standard on IT or computer related mailing lists like this for years. I have been

Re: [PHP] Cookies are now driving me crazy....

2007-11-28 Thread Brady Mitchell
On Nov 28, 2007 12:08 PM, Jason Pruim [EMAIL PROTECTED] wrote: if ($res) { // now see if user's id exists in database if (mysql_num_rows($res,0) { You need another ) on that last line: if (mysql_num_rows($res,0)) { You might want to consider getting an editor/ide that will higlight

Re: [PHP] Cookies are now driving me crazy....

2007-11-28 Thread Daniel Brown
On Nov 28, 2007 3:19 PM, Brady Mitchell [EMAIL PROTECTED] wrote: On Nov 28, 2007 12:08 PM, Jason Pruim [EMAIL PROTECTED] wrote: if ($res) { // now see if user's id exists in database if (mysql_num_rows($res,0) { You need another ) on that last line: if (mysql_num_rows($res,0)) {

Re: [PHP] Can I create flash via php?

2007-11-28 Thread Jim Lucas
Ronald Wiplinger wrote: Jay Blanchard wrote: [snip] I want to create flash animations via a web page. Is it possible? What do I need. I do not want to use Windows [/snip] STFW http://www.google.com/search?hl=enq=create+flash+using+PHP Excellent link (and bet I tried that one

Re: [PHP] Cookies are now driving me crazy....

2007-11-28 Thread Jason Pruim
On Nov 28, 2007, at 3:19 PM, Brady Mitchell wrote: On Nov 28, 2007 12:08 PM, Jason Pruim [EMAIL PROTECTED] wrote: if ($res) { // now see if user's id exists in database if (mysql_num_rows($res,0) { You need another ) on that last line: if (mysql_num_rows($res,0)) { You might want to

Re: [PHP] running cmd via php

2007-11-28 Thread adam_99
[snip] On the server? http://www.php.net/exec [/snip] I don't know how to use these functions in PHP can you explaine it? And I don't need outpu from the function. Thanks you! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies are now driving me crazy....

2007-11-28 Thread Daniel Brown
On Nov 28, 2007 3:08 PM, Jason Pruim [EMAIL PROTECTED] wrote: I have some code which I'll paste at the end of the e-mail that is throwing an error and I can't seem to find where the error is... Here is the error: [Wed Nov 28 15:03:19 2007] [error] PHP Parse error: syntax error, unexpected '{'

[PHP] Cookies are now driving me crazy....

2007-11-28 Thread Jason Pruim
I have some code which I'll paste at the end of the e-mail that is throwing an error and I can't seem to find where the error is... Here is the error: [Wed Nov 28 15:03:19 2007] [error] PHP Parse error: syntax error, unexpected '{' in /Volumes/RAIDer/webserver/Documents/

Re: [PHP] running cmd via php

2007-11-28 Thread Daniel Brown
On Nov 28, 2007 3:28 PM, adam_99 [EMAIL PROTECTED] wrote: [snip] On the server? http://www.php.net/exec [/snip] I don't know how to use these functions in PHP can you explaine it? And I don't need outpu from the function. Thanks you! -- PHP General Mailing List (http://www.php.net/) To

[PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread David Giragosian
Good Afternoon All, The recent threads about images got me to finally experiment with storing into and retrieving/displaying images from a database. Uploading and retrieval is fine, I'm just a bit uncertain about creating the dynamic display part. // getting the data out of the db

[PHP] ini_set('memory_limit', '16M')

2007-11-28 Thread afan pasalic
Hi, On one script (pulling large amount of data from mysql) I'm getting error: Fatal error: Allowed memory size of 16777216 bytes exhausted... I put on the beginning of the page ini_set('memory_limit', '64M'); but I'm still getting the same error message?!? Any idea? Thanks for any help. -afan

RE: [PHP] ini_set('memory_limit', '16M')

2007-11-28 Thread George Pitcher
Hi, On one script (pulling large amount of data from mysql) I'm getting error: Fatal error: Allowed memory size of 16777216 bytes exhausted... I put on the beginning of the page ini_set('memory_limit', '64M'); but I'm still getting the same error message?!? ini_set() returns the old value,

Re: [PHP] ini_set('memory_limit', '16M')

2007-11-28 Thread Jim Lucas
afan pasalic wrote: Hi, On one script (pulling large amount of data from mysql) I'm getting error: Fatal error: Allowed memory size of 16777216 bytes exhausted... I put on the beginning of the page ini_set('memory_limit', '64M'); but I'm still getting the same error message?!? Any idea?

Re: [PHP] ini_set('memory_limit', '16M')

2007-11-28 Thread Dee Ayy
On Nov 28, 2007 4:05 PM, George Pitcher [EMAIL PROTECTED] wrote: Hi, On one script (pulling large amount of data from mysql) I'm getting error: Fatal error: Allowed memory size of 16777216 bytes exhausted... I put on the beginning of the page ini_set('memory_limit', '64M'); but I'm

Re: [PHP] Can I create flash via php?

2007-11-28 Thread Dee Ayy
Go back and read Warren's reply to you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with url_fopen on free hosting environment

2007-11-28 Thread Samuel Vogel
Thanks for the infos. I read through the very interesting post, but I did not find it to be a solution for my problem. I tried to limit connections with iptables, but it did not work out. I'm not an expert at this, I tried like it is described here:

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread Jochem Maas
you need a *seperate* script that outputs the image data only (+ relevant headers) and then you refer to that script (passing it a suitable parameter so it knows which image to output) in the src attribute of an IMG tag. you seem to be trying to output image data and html in a single request,

Re: [PHP] running cmd via php

2007-11-28 Thread Jochem Maas
Daniel Brown wrote: On Nov 28, 2007 3:28 PM, adam_99 [EMAIL PROTECTED] wrote: [snip] On the server? http://www.php.net/exec [/snip] I don't know how to use these functions in PHP can you explaine it? And I don't need outpu from the function. Thanks you! -- PHP General Mailing List

Re: [PHP] Can I create flash via php?

2007-11-28 Thread João Amaro Lagedo
I wonder if he's just pretending to be dumb like that... Or, there are --- here to reply On Nov 28, 2007 6:32 PM, Jim Lucas [EMAIL PROTECTED] wrote: Ronald Wiplinger wrote: Jay Blanchard wrote: [snip] I want to create flash animations via a web page. Is it possible? What do I

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread David Giragosian
On 11/28/07, Jochem Maas [EMAIL PROTECTED] wrote: you need a *seperate* script that outputs the image data only (+ relevant headers) and then you refer to that script (passing it a suitable parameter so it knows which image to output) in the src attribute of an IMG tag. you seem to be

RE: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Bastien Koert
Makes sense to me... Count me in bastien Date: Wed, 28 Nov 2007 10:48:57 -0500 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] PHP RFC # 0001 --- List Etiquette Good morning (/afternoon/evening) all; This is more or

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread Jochem Maas
... http://www.wellho.net/solutions/php-example-php-form-image-upload-store-in-mysql-database-retreive.html having taken a quick look at that page I can only hope that you aspire to write alot better code than that! Thanks very much for reading this long post. David Thing is, the above

Re: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Crayon Shin Chan
On Wednesday 28 November 2007, Jay Blanchard wrote: [snip] So the summary of my proposal is as follows: reached or question is asked. This will allow a step-by-step document (of sorts) to be created and made searchable on the web. [/snip] This has been the expected behavior

Re: [PHP] Getting IP from hostname using Curl

2007-11-28 Thread Chris
Gevorg Harutyunyan wrote: Hi, I am using Curl extension for my project. Regulary I am fetching some pages from web using Curl. Now I must create ban system for some IPs. What does that mean? Don't fetch the pages on some ip's? Don't allow some ip's to use curl? Something else? --

[PHP] Instantiate phpmailer in a separate class?

2007-11-28 Thread Mike Yrabedra
Hello, I want to have a class send some emails. I wanted to use the excellent phpMailer class to do this. What is the proper way to use the phpMailer class from within a method of a separate class? -- Mike B^) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Paul Scott
On Thu, 2007-11-29 at 09:24 +0800, Crayon Shin Chan wrote: This has been the expected behavior (adding [SOLVED]) for a long time though it does not occur as often as it should. It has been in the NEWBIE GUIDE for a long time and has been a de-facto standard on IT or computer related

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread tedd
At 6:12 PM -0600 11/28/07, David Giragosian wrote: Thing is, the above works just fine as long as I hard code a switch case for every image file pulled from the db. What I can't seem to do is dynamically extend it to include newly uploaded images, i.e., for an image count greater than what I've

Re: [PHP] Dynamic Display of Images Stored in DB

2007-11-28 Thread Chris
In my solution, I use two scripts. One for showing the image true size and another for generating a thumbnail -- I may be wrong, but I think it's better to generate a thumbnail as needed on the fly than it is to store both images (large and thumbnail) in the dB. Cache it on the filesystem

[PHP] Quick question on data formatting

2007-11-28 Thread Jon Westcot
Hi all: Since I'm relatively new to PHP, I'm not familiar with all of the shortcuts and efficient ways one could write a routine that handles converting data from one format into another, so I thought I'd ask here for recommendations on how to solve one particular issue I've got. I'm

Re: [PHP] Quick question on data formatting

2007-11-28 Thread Robert Cummings
On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote: Hi all: Since I'm relatively new to PHP, I'm not familiar with all of the shortcuts and efficient ways one could write a routine that handles converting data from one format into another, so I thought I'd ask here for

Re: [PHP] Quick question on data formatting [SOLVED]

2007-11-28 Thread Jon Westcot
Thanks, Rob! I can see that it's going to be important for me to get familiar with the POSIX regular expressions. Jon - Original Message - On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote: Hi all: Since I'm relatively new to PHP, I'm not familiar with all of the shortcuts

Re: [PHP] Quick question on data formatting [SOLVED]

2007-11-28 Thread Robert Cummings
On Wed, 2007-11-28 at 22:47 -0700, Jon Westcot wrote: Thanks, Rob! I can see that it's going to be important for me to get familiar with the POSIX regular expressions. You can use the perl versions too. I just got used to the posix versions a long time ago :). BTW, if you didn't notice I

Re: [PHP] Instantiate phpmailer in a separate class?

2007-11-28 Thread Jochem Maas
Mike Yrabedra wrote: Hello, I want to have a class send some emails. I wanted to use the excellent phpMailer class to do this. What is the proper way to use the phpMailer class from within a method of a separate class? the same way you would use it outside of a method of a class.