[PHP] RE: London PHP salaries

2007-06-15 Thread Javier Leyba
Thanks for all replies. I want to make a last question and promise will not disturb with this topic any more. How could I calculate a month net salary ? In Spain, the offered year salary could be divided in 12 or 14 payments (in this case you´ll receive a duble payment in july and december). T

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Gary Smith
Javier Leyba wrote: How could I make same calculation for a London salary ? A very rough calculation is to take what they're offering, and then take 30% off that (tax, pension, etc) - it's usually somewhere around 30%, but it's not an exact science (depends on stuff like tax credits and stuf

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Stut
Javier Leyba wrote: How could I calculate a month net salary ? In Spain, the offered year salary could be divided in 12 or 14 payments (in this case you´ll receive a duble payment in july and december). To know how much will receive in your hands each month you need to divide year salary by the

Re: [PHP] Re: London PHP salaries

2007-06-15 Thread Jochem Maas
Daniel Brown wrote: > On 6/14/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: >> Chris wrote: >> > Hi Javier, ... > >Shit, *I* need to move to London, Spain, or Germany. As the > senior PHP/Unix geek in my company (not "a" senior, "the" senior), I > only make a salary of $31,200 with barely an

Re: [PHP] Re: London PHP salaries

2007-06-15 Thread Christian Hänsel
Hi Zoltan That is just about what I am getting here (1380 net). And I am by far not a professional. It's just enuff to make a living. And I pay 350 for my rent. And then all the other crap *g* Well, back when I was self employed, I could easily sell a site for 8000 to 1 Euros... but with

Re: [PHP] does php4 have language level classes

2007-06-15 Thread Jochem Maas
Nathan Nobbe wrote: > all, > > php5 has language-level classes that ship w/ many of the extensions. > PDO is a primary example. > recently, through a sort-of round-about way, i have been working w/ > the serialize function, which lead me to discover > It

Re: [PHP] Re: London PHP salaries

2007-06-15 Thread Zoltán Németh
2007. 06. 14, csütörtök keltezéssel 10.41-kor Javier Leyba ezt írta: > > For living in London you would need at the lower > > end 35k but why would you want to come and live > > in London from Spain ? If I had the choice I > > know where I would choose. > > I couldn't imagine why you like Spain

Re: [PHP] generating an html intro text ...

2007-06-15 Thread Jochem Maas
Daniel Brown wrote: ... Dan, I don't want to put a downer on things, especially considering the ammount of time/energy you spent writing the code you posted. ... but this is not exactly what I was looking for. I guess my feable attempt at explaining myself was rather off the mark. I'm looking

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Javier Leyba
Hi Thanks for all comments. My last question (I promise *g*). Could you please tell me how much money could I spend paying gas, electricity, phone, internet, etc... It could give an idea about how much money of my salary will fly away monthly :) Thanks in advance J

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Stut
Javier Leyba wrote: Thanks for all comments. My last question (I promise *g*). Could you please tell me how much money could I spend paying gas, electricity, phone, internet, etc... It could give an idea about how much money of my salary will fly away monthly :) Did you Google at all befo

Re: [PHP] mbstring problems

2007-06-15 Thread Martin Marques
Crayon Shin Chan wrote: On Friday 15 June 2007 04:09, Martin Marques wrote: Using PHP 5.2.0 and I get this error: Fatal error: Call to undefined function mb_list_encodings_alias_names() in /home/martin/prueba.php on line 3 But mb_list_encodings() works like a charm. What's wrong? RTFM Did

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Javier Leyba
> Did you Google at all before you posted your > initial question? > > http://www.workgateways.com/working-cost-of- > living.html > > Says it was last updated in June, but the flat > rental prices seem a bit on the low side to me. > The rest looks about right tho. Thanks Be sure I use Google.

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Sancar Saran
It seems most php developers around the world are in famine. Herding lambs and raising cucumbers far more feasable than creating php based sites... Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Christian Hänsel
On the weekends, I get to maintain my own websites, do research, satisfy the needs of my girl, learn new stuff (like JS right now *yikes*)... damned, I can't wait til September when I get TWO WEEKS OFF :oD -- - I submit my stuff @ weberdev.com "Jason Pr

RE: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Jim Moseby
> I am currently trying to unsubscribe from this mailing list, > however I > am nor very successful in doing this. The mailer program will > refuse to > accept my address for removal, it will simply continue to > send mail to > my address. Why is this happening and how can I stop it? > > Mar

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Jason Pruim
You get weekends off? THAT'S IT! I'm calling my union rep!!! Oh wait.. I don't have one... My SMALL 4 person company is joining a union! :P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cannot un-subscribe from list

2007-06-15 Thread Mark Smith
I am currently trying to unsubscribe from this mailing list, however I am nor very successful in doing this. The mailer program will refuse to accept my address for removal, it will simply continue to send mail to my address. Why is this happening and how can I stop it? Mark -- PHP General Ma

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Christian Hänsel
That is oh so true. But why are we doing this? Cause we like to think and work hard, be brain-dead by the end of the day, drink coffee by the hectoliters and get no applause at all from our bosses (at least my boss doesn't ´know what the heck I am doing here all day long). God, I love programm

Re: [PHP] Re: Re: php-cli vs python

2007-06-15 Thread Jochem Maas
Crayon Shin Chan wrote: > On Saturday 09 June 2007 01:22, Daniel Brown wrote: > >> I actually haven't found a platform yet that I couldn't port PHP >> to, if it wasn't already native. We're talking Windows, Linux, BSD, >> true *nix, MacOS, SunOS, Amiga, et cetera. I doubt it would run on my

Re: [PHP] Re: Re: php-cli vs python

2007-06-15 Thread Crayon Shin Chan
On Friday 15 June 2007 21:23, Jochem Maas wrote: [etc] > IT is a joke, this list is joke, I'm a joke. no joke. Someone give this guy his meds :) -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing a url to a page

2007-06-15 Thread Zoltán Németh
2007. 06. 15, péntek keltezéssel 14.45-kor Ross ezt írta: > I have a display_image.php page > > > > > $image = imagecreatefromjpeg($img_url); where do you get $img_url from? GET request? then do something like $img_url = $_GET['img_url']; if (!file_exists($img_url)) die "bad hacker"; before

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Daniel Brown
On 6/15/07, Jim Moseby <[EMAIL PROTECTED]> wrote: > I am currently trying to unsubscribe from this mailing list, > however I > am nor very successful in doing this. The mailer program will > refuse to > accept my address for removal, it will simply continue to > send mail to > my address. Why is

[PHP] Re: Form Data Filtering

2007-06-15 Thread Chris
""kvigor"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hello, > > I 'm checking form data for profanity but it only works if the > $_POST['var'] is lowercase I was wondering if anyone knew how I could > catch the profanity no matter what case it was. No matter if it was

[PHP] Re: Form Data Filtering

2007-06-15 Thread Darren Whitlen
kvigor wrote: Hello, I 'm checking form data for profanity but it only works if the $_POST['var'] is lowercase I was wondering if anyone knew how I could catch the profanity no matter what case it was. No matter if it was BAD or bad or mixed like BaD? Instead of the long way: if ($value =

[PHP] Re: GD Library and outputing image

2007-06-15 Thread zerof
Ross escreveu: $image = imagecreatefromjpeg($img_url); $image in this case, is the Image Identifier, and returns something like , Resource id #NUMBER ( Resourse id allocation process, for the generic imagecreate... ). if ($image === false) { die ('Unable to open image'

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Daniel Brown
On 6/15/07, Chris <[EMAIL PROTECTED]> wrote: ""kvigor"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hello, > > I 'm checking form data for profanity but it only works if the > $_POST['var'] is lowercase I was wondering if anyone knew how I could > catch the profanity no

Re: [PHP] passing a url to a page

2007-06-15 Thread Stut
[EMAIL PROTECTED] wrote: Nothing happens no errors or anything I tried to debug using include('display_image.php?img_url=$image_url') I got a parse error. I would rather use buffers if this is possible? You can't parse GET parameters with include. Try this... $_GET['img_url'] = $image_url; i

Re: [PHP] passing a url to a page

2007-06-15 Thread Daniel Brown
On 6/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Nothing happens no errors or anything I tried to debug using include('display_image.php?img_url=$image_url') I got a parse error. You can't include a file with a query string attached. However, you /can/ do: http://www.pr0nsite.com/g

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Dave Goodchild
I use something like this: $_SESSION['profane'] = false; foreach ($_POST as $value) { foreach ($swearbox as $profanity) { if (preg_match("/$profanity/i", $value)) { $errors = true; $_SESSION['profane'] = true; mail(TECHEMAIL, 'profane content

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Tijnema
On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: I am currently trying to unsubscribe from this mailing list, however I am nor very successful in doing this. The mailer program will refuse to accept my address for removal, it will simply continue to send mail to my address. Why is this happening

Re: [PHP] passing a url to a page

2007-06-15 Thread Zoltán Németh
2007. 06. 15, péntek keltezéssel 15.28-kor [EMAIL PROTECTED] ezt írta: > Nothing happens no errors or anything I tried to debug using > include('display_image.php?img_url=$image_url') I got a parse error. of course. include is totally different stuff, you can not give GET parameters when includin

Re: [PHP] passing a url to a page

2007-06-15 Thread ross
Nothing happens no errors or anything I tried to debug using include('display_image.php?img_url=$image_url') I got a parse error. I would rather use buffers if this is possible? - Original Message - From: "Zoltán Németh" <[EMAIL PROTECTED]> To: "Ross" <[EMAIL PROTECTED]> Cc: Sent: Fri

Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Daniel Brown
On 6/15/07, Christian Hänsel <[EMAIL PROTECTED]> wrote: On the weekends, I get to maintain my own websites, do research, satisfy the needs of my girl, learn new stuff (like JS right now *yikes*)... damned, I can't wait til September when I get TWO WEEKS OFF :oD -- ---

Re: [PHP] Form Data Filtering

2007-06-15 Thread Richard Heyes
kvigor wrote: Hello, I 'm checking form data for profanity but it only works if the $_POST['var'] is lowercase I was wondering if anyone knew how I could catch the profanity no matter what case it was. No matter if it was BAD or bad or mixed like BaD? Use strcasecmp() or perhaps better, st

Re: [PHP] Re: Re: php-cli vs python

2007-06-15 Thread Daniel Brown
On 6/15/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: On Friday 15 June 2007 21:23, Jochem Maas wrote: [etc] > IT is a joke, this list is joke, I'm a joke. no joke. Someone give this guy his meds :) -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] passing a url to a page

2007-06-15 Thread Stut
Daniel Brown wrote: $image_url = 'http://www.pr0nsite.com/gallery/big-boobs.jpg'; Well that was just too disappointing for a Friday afternoon. Ya tease! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generating an html intro text ...

2007-06-15 Thread Daniel Brown
On 6/15/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: ... Dan, I don't want to put a downer on things, especially considering the ammount of time/energy you spent writing the code you posted. ... but this is not exactly what I was looking for. I guess my feable attempt at exp

[PHP] passing a url to a page

2007-06-15 Thread Ross
I have a display_image.php page I want to output this as an image but cannot get it working. I need to pass the image url something like this I thought would work echo ""; any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Richard Heyes
Have you tried eregi()? You don't need the regex functions, they're slow and you should be using PCRE instead (IMO). -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Zoltán Németh
2007. 06. 15, péntek keltezéssel 15.48-kor Dave Goodchild ezt írta: > I use something like this: > > $_SESSION['profane'] = false; > > foreach ($_POST as $value) { > foreach ($swearbox as $profanity) { > if (preg_match("/$profanity/i", $value)) { > $errors = tr

[PHP] Install question

2007-06-15 Thread Paul K
I have just started with a clean install on a Windows XP Pro system, Apache 2.24 and PHP 5.2.3 Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3. I can access html files just fine but I can't even run a test program Nothing displays. Where do I look to see whats wrong? Paul -- PHP Genera

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Andrei
Man you have some issues... :p Dave Goodchild wrote: > No, because extra processing is done on the other side - now > > fuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckf

Re: [PHP] Re: Form Data Filtering

2007-06-15 Thread Dave Goodchild
No, because extra processing is done on the other side - now fuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuckfuck

Re: [PHP] Install question

2007-06-15 Thread Daniel Brown
On 6/15/07, Paul K <[EMAIL PROTECTED]> wrote: I have just started with a clean install on a Windows XP Pro system, Apache 2.24 and PHP 5.2.3 Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3. I can access html files just fine but I can't even run a test program Nothing displays. Where do I

Re: [PHP] passing a url to a page

2007-06-15 Thread Jochem Maas
Zoltán Németh wrote: > 2007. 06. 15, péntek keltezéssel 14.45-kor Ross ezt írta: >> I have a display_image.php page >> >> > >> >> >> $image = imagecreatefromjpeg($img_url); > > where do you get $img_url from? GET request? > then do something like > > $img_url = $_GET['img_url']; > if (!file_exist

Re: [PHP] Install question

2007-06-15 Thread Jim Lucas
Paul K wrote: I have just started with a clean install on a Windows XP Pro system, Apache 2.24 and PHP 5.2.3 Apache Monitor reports Apache/2.24(Win32)PHP/5.2.3. I can access html files just fine but I can't even run a test program Nothing displays. Where do I look to see whats wrong? Paul

Re: [PHP] Form Data Filtering

2007-06-15 Thread Tijnema
On 6/15/07, kvigor <[EMAIL PROTECTED]> wrote: Hello, I 'm checking form data for profanity but it only works if the $_POST['var'] is lowercase I was wondering if anyone knew how I could catch the profanity no matter what case it was. No matter if it was BAD or bad or mixed like BaD? Instead of

Re: [PHP] Form Data Filtering

2007-06-15 Thread Stut
Tijnema wrote: -slut Actually it's -Stut. I hate it when people spell my name wrong! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Data Filtering

2007-06-15 Thread Tijnema
On 6/15/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: > -slut Actually it's -Stut. I hate it when people spell my name wrong! -Stut Oh, didn't knew you were on the list of inappropriate words too ;) Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Form Data Filtering

2007-06-15 Thread Daniel Brown
On 6/15/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/15/07, Stut <[EMAIL PROTECTED]> wrote: > Tijnema wrote: > > -slut > > Actually it's -Stut. I hate it when people spell my name wrong! > > -Stut > Oh, didn't knew you were on the list of inappropriate words too ;) Tijnema -- PHP General Mailing

[PHP] OK to have many files in one folder?

2007-06-15 Thread Brian Dunning
Server is running Linux, and PHP is constantly creating and modifying images in a directory. Apache is constantly serving these same images. There are about 250,000 of them in the same directory. Seems to be running OK, no problematic CPU load, but I'm wondering if anyone knows whether I'm

RE: [PHP] OK to have many files in one folder?

2007-06-15 Thread Jay Blanchard
[snip] Server is running Linux, and PHP is constantly creating and modifying images in a directory. Apache is constantly serving these same images. There are about 250,000 of them in the same directory. Seems to be running OK, no problematic CPU load, but I'm wondering if anyone knows wheth

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Daniel Brown
On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: > On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: >> I am currently trying to unsubscribe from this mailing list, >> however I >> am nor very successful in doing this. The mailer program will >> refuse to >> accept my address for removal, it

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Jason Pruim
On Jun 15, 2007, at 2:47 PM, Daniel Brown wrote: On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: > On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: >> I am currently trying to unsubscribe from this mailing list, >> however I >> am nor very successful in doing this. The mailer program wil

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Brian Dunning
On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: I am currently trying to unsubscribe from this mailing list, however I am nor very successful in doing this. The mailer program will refuse to accept my address for removal, it will simply continue to send mail to my address. Why is this hap

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Daniel Brown
6/15/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] Server is running Linux, and PHP is constantly creating and modifying images in a directory. Apache is constantly serving these same images. There are about 250,000 of them in the same directory. Seems to be running OK, no problematic CPU l

Re: [PHP] passing a url to a page

2007-06-15 Thread ross
I have manually put in the url my display_image.php page to debug as sugested and all I get is the URL of the display_image.php page output on the screen. This is what I see http://xxx.co.uk/common/display_image.php this is the display_image.php file: $img_url="http://www.xxx

Re: [PHP] Cannot un-subscribe from list

2007-06-15 Thread Daniel Brown
On 6/15/07, Jason Pruim <[EMAIL PROTECTED]> wrote: On Jun 15, 2007, at 2:47 PM, Daniel Brown wrote: > On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: >> > On 6/15/07, Mark Smith <[EMAIL PROTECTED]> wrote: >> >> I am currently trying to unsubscribe from this mailing list, >> >> however I >>

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Crayon Shin Chan
On Saturday 16 June 2007 02:51, Daniel Brown wrote: > And remember, the fact that they're all > in one directory doesn't matter at all to the system, as directories, > folders, et cetera, are just representations for human readability and > organization. In fact, those files reside on several sec

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Brian Dunning
Thanks for the replies but I'm not sure I know what to do with them. Is the problem with the number of files, or is the problem with the activity? Can you dumb down your answers at all for me? :) On Jun 15, 2007, at 11:51 AM, Daniel Brown wrote: 6/15/07, Jay Blanchard <[EMAIL PROTECTED]>

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Daniel Brown
On 6/15/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: On Saturday 16 June 2007 02:51, Daniel Brown wrote: > And remember, the fact that they're all > in one directory doesn't matter at all to the system, as directories, > folders, et cetera, are just representations for human readability and >

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Brian Dunning
I can easily break it up into 100 subdirectories, 2500 files in each, would that be good insurance against problems? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] OK to have many files in one folder?

2007-06-15 Thread Jay Blanchard
[snip] I can easily break it up into 100 subdirectories, 2500 files in each, would that be good insurance against problems? [/snip] As someone mentioned, directories are just a human convenience. Each file will have an inode and is identified by an inode number in the file system where it reside

[PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function and send the info as parameters. Is there

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Tijnema
On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: I can easily break it up into 100 subdirectories, 2500 files in each, would that be good insurance against problems? I have no clue how big the files are, but you might want to store them in a database. That can speed up things, but don't as

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Daniel Brown
On 6/15/07, Brian Dunning <[EMAIL PROTECTED]> wrote: Thanks for the replies but I'm not sure I know what to do with them. Is the problem with the number of files, or is the problem with the activity? Can you dumb down your answers at all for me? :) On Jun 15, 2007, at 11:51 AM, Daniel Brown wr

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Tijnema
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function an

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Daniel Brown
On 6/15/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] I can easily break it up into 100 subdirectories, 2500 files in each, would that be good insurance against problems? [/snip] As someone mentioned, directories are just a human convenience. Each file will have an inode and is identified

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Richard Heyes
Dan wrote: Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function and send the info as parameters

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Satyam
Since it depends on many factors, some out of your control, some others that might vary over the lifetime of the application, one thing you might do, to be on the safe side is try to put files in different directories, for example, by breaking up their filenames every three characters and making

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: Ok, so I have a PHP script, and I also have a program written in Pascal, it's compiled in the native executable for whatever OS the server is running. I want to have the user input info and then send that info to the Pascal program to call a function an

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Crayon Shin Chan
On Saturday 16 June 2007 03:47, Daniel Brown wrote: > Once again, this doesn't matter so much for per-directory (though > listing will take longer, as I think I mentioned) as it does the > filesystem mount. Several years ago, having say 3000+ files in single directory on ext2 would mean tha

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Stut
Jay Blanchard wrote: [snip] Server is running Linux, and PHP is constantly creating and modifying images in a directory. Apache is constantly serving these same images. There are about 250,000 of them in the same directory. Seems to be running OK, no problematic CPU load, but I'm wondering

RE: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread WeberSites LTD
Did someone say PHP competition ? Zend Studio? Here is one that has been around since April 2004 giving out prizes on a monthly basis : http://contest.weberdev.com/ berber -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 1:46 PM To: php-general@l

RE: [PHP] OK to have many files in one folder?

2007-06-15 Thread Jay Blanchard
[snip] > Two words. Beware the inode. ^^ ^^^ ^ 1 23 Here endeth the lesson. [/snip] Can I get an Admin brotha'!? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reoccurring task manager

2007-06-15 Thread Jason Pruim
On Jun 13, 2007, at 4:03 PM, Daniel Brown wrote: [PHP] L> File: viewall.php // Include files, connection routines, configuration, blah, blah, blah $dow = (date("N") - 1); $sql = "SELECT task_name FROM tasks WHERE completed='0'"; $sql .= " AND (day_of_week BETWEEN '0' AND '".$

[PHP] outputing image part 2

2007-06-15 Thread Ross
I have manually put in the url my display_image.php page to debug as sugested and all I get is the URL of the display_image.php page output on the screen. This is what I see http://xxx.co.uk/common/display_image.php this is the display_image.php file: $img_url="http://www.x

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread Stut
WeberSites LTD wrote: Did someone say PHP competition ? Zend Studio? Here is one that has been around since April 2004 giving out prizes on a monthly basis : http://contest.weberdev.com/ Yeah, but this one has quality judges ;) -Stut -Original Message- From: Stut [mailto:[EMAIL PR

Re: [PHP] outputing image part 2

2007-06-15 Thread Stut
Ross wrote: I have manually put in the url my display_image.php page to debug as sugested and all I get is the URL of the display_image.php page output on the screen. This is what I see http://xxx.co.uk/common/display_image.php this is the display_image.php file: $img_url="http://

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Will that script also work on Apache in Windows? OS X? Just checking because the backend and front end both need to be able to be installed on any OS. Also I looked at exec(), system(), and passthru(); they all let you execute a executable file but I don't see any way of passing parameters i

Re: [PHP] Reoccurring task manager

2007-06-15 Thread Jim Lucas
Jason Pruim wrote: On Jun 13, 2007, at 4:03 PM, Daniel Brown wrote: [PHP] L> File: viewall.php // Include files, connection routines, configuration, blah, blah, blah $dow = (date("N") - 1); $sql = "SELECT task_name FROM tasks WHERE completed='0'"; $sql .= " AND (day_of_week B

Re: [PHP] Reoccurring task manager

2007-06-15 Thread Daniel Brown
On 6/15/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > [PHP] >L> File: viewall.php > // Include files, connection routines, configuration, blah, > blah, blah > $dow = (date("N") - 1); > > $sql = "SELECT task_name FROM tasks WHERE completed='0'"; > $sql .= " AND (day_of_week BETWEEN '

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: Will that script also work on Apache in Windows? OS X? Just checking because the backend and front end both need to be able to be installed on any OS. Also I looked at exec(), system(), and passthru(); they all let you execute a executable file but I

[PHP] Creating 'Previous - Next Buttons' Logic - Novice Question

2007-06-15 Thread revDAVE
Novice Question: I would like to create a set of pages that could use some kind of logic to have "previous - next buttons "so that when the button was clicked it would automatically go to the next page - or the previous page. I know very little about PHP ... however, I am hoping that there is som

[PHP] Re: outputing image part 2

2007-06-15 Thread Ross
Thanks Stut we are getting somewhere. Removing the header gives the full binary output of the file in IE and FF. I also removes the echos and have the resized image showing in the browser. So far so good. I know it works. Now back to sending the URL. I have this $img_url="http://www.xxx

Re: [PHP] Creating 'Previous - Next Buttons' Logic - Novice Question

2007-06-15 Thread Richard Davey
Hi, Friday, June 15, 2007, 9:53:24 PM, you wrote: > I know very little about PHP ... however, I am hoping that there is some > kind of preset " open source" php code that I might be able to use. There is the Pear pagination package which can do this, although not quite in the way you want it do

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Dan
Wow, thanks for the code and the fast response! :) Although maybe I should clarify my probem a bit more, I'm trying to run a program, but I want it to stay open so that I can call functions later. When the user "opens" a file, it's uploaded to a folder where PHP can access it, then PHP would

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Richard Davey
Hi Ross, Friday, June 15, 2007, 10:00:53 PM, you wrote: > I have this > $img_url="http://www.xxx.co.uk/images/ENbb24469/room1.JPG";; > echo ">"; > and on the display image page I have: > $img_url= $_GET['img_url']; > $image = imagecreatefromjpeg($img_url); > if ($image === false) { exit;

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Stut
Ross wrote: Thanks Stut we are getting somewhere. Removing the header gives the full binary output of the file in IE and FF. I also removes the echos and have the resized image showing in the browser. So far so good. I know it works. Now back to sending the URL. I have this $img_url="htt

Re: [PHP] Creating 'Previous - Next Buttons' Logic - Novice Question

2007-06-15 Thread Daniel Brown
On 6/15/07, revDAVE <[EMAIL PROTECTED]> wrote: Novice Question: I would like to create a set of pages that could use some kind of logic to have "previous - next buttons "so that when the button was clicked it would automatically go to the next page - or the previous page. I know very little abou

Re: [PHP] Creating 'Previous - Next Buttons' Logic - Novice Question

2007-06-15 Thread Jim Lucas
revDAVE wrote: Novice Question: I would like to create a set of pages that could use some kind of logic to have "previous - next buttons "so that when the button was clicked it would automatically go to the next page - or the previous page. I know very little about PHP ... however, I am hoping

[PHP] Calling Pascal code/functions from PHP

2007-06-15 Thread Dan
I know for some languages there is a way to call code from another language. For example you can call C funcitons from Pascal, etc. Is there any way I can call Pascal functions/code from PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calling an executable for processing some data sent from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: Wow, thanks for the code and the fast response! :) Although maybe I should clarify my probem a bit more, I'm trying to run a program, but I want it to stay open so that I can call functions later. When the user "opens" a file, it's uploaded to a folder

Re: [PHP] create file permission problem (solved)

2007-06-15 Thread tedd
At 1:06 PM -0400 6/14/07, Daniel Brown wrote: For the sake of people reading the archives now (and in years to come), what was the cause of the problem, Tedd? Daniel: Ok, good point -- I would have liked to have this example to review. I'm not sure of the problems I had, because they were

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-15 Thread Tijnema
On 6/15/07, Stut <[EMAIL PROTECTED]> wrote: WeberSites LTD wrote: > Did someone say PHP competition ? Zend Studio? > > Here is one that has been around since April 2004 giving out prizes on a > monthly basis : > http://contest.weberdev.com/ Yeah, but this one has quality judges ;) -Stut Yes,

Re: [PHP] Calling Pascal code/functions from PHP

2007-06-15 Thread Tijnema
On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: I know for some languages there is a way to call code from another language. For example you can call C funcitons from Pascal, etc. Is there any way I can call Pascal functions/code from PHP? Compile the pascal code as an executable, and call it with

Re: [PHP] Re: outputing image part 2

2007-06-15 Thread Daniel Brown
On 6/15/07, Stut <[EMAIL PROTECTED]> wrote: OK, your problem here is the single quotes in the img src around $img_url. Stut's right. You should change: echo ""; to: echo ""; He's also right about the dynamic resizing of images causing a serious strain on the server

Re: [PHP] create file permission problem (solved)

2007-06-15 Thread Daniel Brown
On 6/15/07, tedd <[EMAIL PROTECTED]> wrote: At 1:06 PM -0400 6/14/07, Daniel Brown wrote: >For the sake of people reading the archives now (and in years to >come), what was the cause of the problem, Tedd? Daniel: Ok, good point -- I would have liked to have this example to review. I'm not

Re: [PHP] Calling Pascal code/functions from PHP

2007-06-15 Thread Daniel Brown
On 6/15/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/15/07, Dan <[EMAIL PROTECTED]> wrote: > I know for some languages there is a way to call code from another language. > For example you can call C funcitons from Pascal, etc. Is there any way I > can call Pascal functions/code from PHP? > Compi

[PHP] Extract specific div element from page

2007-06-15 Thread Anthony Hiscox
Hey folks, I need to pull the contents inside of a specific div out of a page, and write it to a separate file. In this instance I am taking everything inside of tags from a wordpress blog, this will give me only the content and not the menus, or other stuff. I need to do this because the final

  1   2   >