[PHP] Whom to report a serious bug in Zend Encoder
Do anyone know who should I contact to report that bug? I've already dropped a note to forums at Zend... Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Whom to report a serious bug in Zend Encoder
you can post to the internals list.. they will respond fast. they are good that way. :) Jason "Erdener Gonenc" <[EMAIL PROTECTED]> wrote: > > Do anyone know who should I contact to report that bug? > > I've already dropped a note to forums at Zend... > > Thanks > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Whom to report a serious bug in Zend Encoder
I just did, Thank you.. > >you can post to the internals list.. they will respond fast. they are >good that way. :) >Jason > >"Erdener Gonenc" <[EMAIL PROTECTED]> wrote: > > Do anyone know who should I contact to report that bug? > > I've already dropped a note to forums at Zend... > > Thanks > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fw: remote stop/start the applications
Tell me even , is it possible to do so ?? plz reply asap - Original Message - From: CurlyBraces Technologies ( Pvt ) Ltd To: PHP Sent: Friday, March 05, 2004 6:40 PM Subject: Fw: remote stop/start the applications - Original Message - From: CurlyBraces Technologies ( Pvt ) Ltd To: PHP Sent: Friday, March 05, 2004 3:30 PM Subject: remote stop/start the applications hi , My OS = Red Hat Linux 8 webserver = apache In that machine , there is some perl , and php scrpts r running. This perl script is the application that i have to run over the web. This will effect for the whole process. Some times i want to stop/run that perl script from the other machine over the web. So can i do that over the web , because it is running on the intranet. can somebody help me to do this php scripting ...plz thanx curlys -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] preg_split - spliting string
Burhan Khalid wrote: Bambero wrote: Hi I need to split a string by the: , (comma) separator, but when the comma is beetwen "" it should be skipped. Ex: test ts sasa, assas "sasa,asaas" dasdas, da => test ts sasa => assas "sasa,asaas" dasdas => da If this is a CSV file, you can try fgetcsv. From http://www.php.net/fgetcsv "Similar to fgets() except that fgetcsv() parses the line it reads for fields in CSV format and returns an array containing the fields read. The optional third delimiter parameter defaults as a comma, and the optional enclosure defaults as a double quotation mark. Both delimiter and enclosure are limited to one character. If either is more than one character, only the first character is used. Note: The enclosure parameter was added in PHP 4.3.0." Hmmm is it the best solution ? Is there any way to do that with preg_split ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fw: remote stop/start the applications
On Sunday 07 March 2004 20:50, CurlyBraces Technologies \( Pvt \) Ltd wrote: > Tell me even , is it possible to do so ?? Yes. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The very remembrance of my former misfortune proves a new one to me. -- Miguel de Cervantes */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache Using up all memory
The RLimit* set of directive can define resource limitations in apache. There is also aSendBufferSize directive but haven't used that so can't comment. According to the situation that you describe perhaps saving the file first isn't the solution either. Juan E Suris wrote: Right now I am genereating the file offline and using a hyperlink, but that creates double the disk I/O. It reads some files (which the big file is based on), writes the big file, and reads the big file (to deliver it when the user clicks the hyperlink). If I could just create the file and deliver it as I create it, I would save the write/read to/from disk of the big file. Output buffering is off in php.ini: output_buffering = Off So that does not seem to be it. Maybe the problem should be address on Apache instead of PHP? Thanks, Juan - Original Message - From: "Raditha Dissanayake" <[EMAIL PROTECTED]> To: "Juan E Suris" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, March 06, 2004 11:44 PM Subject: Re: [PHP] PHP and Apache Using up all memory Hi Juan, What you can do is to switch off output buffering. If it is a really large file you might want to generate the file offline and deliver it using the more conventional hyperlink. all the best Juan E Suris wrote: Hi! -- Raditha Dissanayake. --- http://www.radinks.net/ftp/applet/ An applet that breaks all the rules. Reads, Writes and Deletes files on your hard disk. Uploads what's left to a third party server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 7 Mar 2004 14:15:48 -0000 Issue 2632
php-general Digest 7 Mar 2004 14:15:48 - Issue 2632 Topics (messages 179676 through 179696): Need Help in shoppin cart 179676 by: New Session 179677 by: Ryan A 179681 by: John Nichel Re: UK Bank Holidays 2 179678 by: Raditha Dissanayake Re: PHP and Apache Using up all memory 179679 by: Raditha Dissanayake 179685 by: Juan E Suris 179696 by: Raditha Dissanayake Re: domain.org/?page=pageName method 179680 by: Raditha Dissanayake Re: Mail fifth parameter 179682 by: Raditha Dissanayake 179683 by: Jason Davidson 179684 by: joel boonstra 179695 by: Raditha Dissanayake Re: preg_split - spliting string 179686 by: Burhan Khalid 179692 by: Bambero Re: extra breaks in sent out emails 179687 by: Scott Taylor Whom to report a serious bug in Zend Encoder 179688 by: Erdener Gonenc 179689 by: Jason Davidson 179690 by: Erdener Gonenc Re: remote stop/start the applications 179691 by: CurlyBraces Technologies \( Pvt \) Ltd 179693 by: Jason Wong 179694 by: CurlyBraces Technologies \( Pvt \) Ltd Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- Sir, I am a web developer, I had made many sites like shooping cart, mangement leads etc. Iam comfortable in PHP as well as in ASP & iam ready to make sites in just $500.Sites made by me are running successfully and doing great job .I can make site having following facilities. Admin Panel: Nice & easy Admin Panel able to make Superuser or subusers. Able to log the subusers activites. Order management. Newsletter management. Products management. Categories management Auto mail generation in case of stock out of order. Shipping management. Multiples photos for each products. CMT management(To dynamically add page later on, or for dynamic contents). Bulk Upload(CSV). FedEx, Freight, or UPS Shipping Sales Tax Integration. etc as per client request. Front End: Nice user friendly Front end with search facility . Secure Socket Layer enabled. Online linkpoint integration(Credit Card processing). Authorization enabled. Drop Down Floating dynamic menus Ability to register for fast checkout processing. Subscribe for newsletter. Product Purchase & Total Shopping cost on every page. Ability to track order status Auto mail generation on change in order status. etc as per client request. Below are the description of the applications I had made:- 1. The site selling vehicles. It would involve a comprehensive zip search on dealers within the locality from which a visitor submits a request. The concerned dealers would get the request on their corresponding dash boards to pursue the leads.The site has a simple backend for adding / modifying / deleting vehicle categories and descriptions. 2. The site can help you fulfill your goal of buying or selling your dream property. 3. The site is integrated with our online content management tool, thereby giving the site owner complete control over the content management. 4. Site features SSL eCommerce and an interactive JavaScript quote form. 5. The site has a front end of one page and further access is only available to their retailers. It consists of a very complex admin panel in the backend which is capable of Creating accounts for new retailers and fix a profit % for each retailer. which would mean that when a retailer logs in he'd see a price list with the profit % added to the base price. This list would appear different to each retailer, as pertaining to his profile.Administrator can set a different product list for different retailers. This means that a retailer interested in a particular category/s of product would only see that category/s and not others. This facilitates quick order placement.Administrator has a facility of being notified by email after each order placement. He can also have generated, various summary and detailed reports. 6. The site offers it's wholesale dealers a facility to register with it and place orders. There is a full fledged backend administration panel associated with the site, for managing the orders. 7. The site is a totally back-end driven site. The site admin can create new links and pages on the fly and populate them from the DB. The admin panel features an DB import and export tool which is useful to import-export a large huge amount of data at one go. 8. The site administrator can send regular preformtted HTML news letters to the registered clients through the site. The news letters can be fully customized through a web admin panel. 9. An online store for great educational products for children. The site offers a complete online shopping cart
Re: [PHP] Fw: remote stop/start the applications
You can only kill your own processes or you have to rely on a suexec mechanism. What you should be doing is SFTA because this topic has been discussed many times in the past. all the best CurlyBraces Technologies ( Pvt ) Ltd wrote: By using php web page of a certain webserver can i go into the some other local plase in the same web server ? Because for the special request i want kill some prosess which are runs in the webserver. All Telent and other remote login restricted from the firewall . thanx - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 07, 2004 7:16 PM Subject: Re: [PHP] Fw: remote stop/start the applications On Sunday 07 March 2004 20:50, CurlyBraces Technologies \( Pvt \) Ltd wrote: Tell me even , is it possible to do so ?? Yes. -- Jason Wong -> Gremlins Associab.php -- Raditha Dissanayake. --- http://www.radinks.net/ftp/applet/ An applet that breaks all the rules. Reads, Writes and Deletes files on your hard disk. Uploads what's left to a third party server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail fifth parameter
Hi, I am no expert on sendmail configuration but my little knowledge tells me sendmail shouldn't change any headers that are passed to it if it is configured properly. joel boonstra wrote: On Sun, Mar 07, 2004 at 09:51:28AM +0600, Raditha Dissanayake wrote: It's an often overlooked fact that you can pass additional headers in the fourth parameter. I do belive you should use \n and not \r\n then your code will look like mail("[EMAIL PROTECTED]", "object", $message, "From: [EMAIL PROTECTED] ". "Reply-To:[EMAIL PROTECTED]". "Return-Path: [EMAIL PROTECTED]); As mentioned in another post, the Return-Path header can and usually is overwritten by sendmail when it does the actual sending. In addition to a previous suggestion, one way to reliably set that header is to use phpmailer (http://phpmailer.sourceforge.net/) which has the option of using an smtp server rather than sendmail directly. joel -- Raditha Dissanayake. --- http://www.radinks.net/ftp/applet/ An applet that breaks all the rules. Reads, Writes and Deletes files on your hard disk. Uploads what's left to a third party server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fw: remote stop/start the applications
By using php web page of a certain webserver can i go into the some other local plase in the same web server ? Because for the special request i want kill some prosess which are runs in the webserver. All Telent and other remote login restricted from the firewall . thanx - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 07, 2004 7:16 PM Subject: Re: [PHP] Fw: remote stop/start the applications > On Sunday 07 March 2004 20:50, CurlyBraces Technologies \( Pvt \) Ltd wrote: > > Tell me even , is it possible to do so ?? > > Yes. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > -- > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > -- > /* > The very remembrance of my former misfortune proves a new one to me. > -- Miguel de Cervantes > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fw: remote stop/start the applications
sorry , u didn't get my point ..i will explain it again. 1.web server runs with some php scripts 2.It will show the out put of a certain executable file's result. 3.This file run in the /usr/local/src/./asd.pl 4.I need stop the function of that file , like ctrl+c can u hel me further ? thanx - Original Message - From: "Raditha Dissanayake" <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Sunday, March 07, 2004 8:31 PM Subject: Re: [PHP] Fw: remote stop/start the applications > You can only kill your own processes or you have to rely on a suexec > mechanism. What you should be doing is SFTA because this topic has been > discussed many times in the past. > > all the best > > CurlyBraces Technologies ( Pvt ) Ltd wrote: > > >By using php web page of a certain webserver can i go into the some other > >local plase in the same web server ? > >Because for the special request i want kill some prosess which are runs in > >the webserver. > >All Telent and other remote login restricted from the firewall . > > > >thanx > > > >- Original Message - > >From: "Jason Wong" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Sunday, March 07, 2004 7:16 PM > >Subject: Re: [PHP] Fw: remote stop/start the applications > > > > > > > > > >>On Sunday 07 March 2004 20:50, CurlyBraces Technologies \( Pvt \) Ltd > >> > >> > >wrote: > > > > > >>>Tell me even , is it possible to do so ?? > >>> > >>> > >>Yes. > >> > >>-- > >>Jason Wong -> Gremlins Associab.php > >> > >> > >> > >> > > > > > > > > > -- > Raditha Dissanayake. > --- > http://www.radinks.net/ftp/applet/ > An applet that breaks all the rules. Reads, Writes and Deletes files on > your hard disk. Uploads what's left to a third party server. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Let's start a php-advanced list!
what do you guys think of using a tag for discussion messages? This way people that don't want to weed out lengthy discussions and attachments etc can filter them out of list messages. A tag such as in the subject line? Just my two cents. Larry -Original Message- From: Marc Greenstock [mailto:[EMAIL PROTECTED] Sent: Saturday, March 06, 2004 7:57 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Let's start a php-advanced list! Interesting topic, However I don't necessarily agree that newbie's wont get their question answered. There are a lot of helpfully people out there, a lot of them are advanced in their programing but find the satisfaction of helping, or mentoring someone into advanced programming who is less advanced. I know that when i started I posted messages at phpbuilder in the newbie area. I found more often than not I would get a response from someone who cared, and would treat a newbie for what he or she is rather than a just a plain old idiot. My point is; yes advanced users would be separated from beginners, but most of the questions asked in the beginners list would be answered by advanced programmers looking for a bit of 'fuzzy wazzies' :) Two thumbs up for the idea. Marc Ryan A wrote: >>This has come up many times before and I really don't think it will work. >>Splitting advanced users from beginners means that there will be nobody to >>answer the beginner questions which means they will get posted to the >>advanced list where the people with the answers are. It is a >>self-defeating separation. Having everyone in one big lump means that >>both camps and all the camps in between learn from each other. > > >>The other question is who decides what is advanced? Chances are what you >>think is advanced may seem trivial to me, or vice-versa. > > >>-Rasmus > > > True, When I started learning PHP one of the guys who answered most of the > questions > for me and a lot of people was Capt John Holmes, now that dude knows a > load of > php (I mean that as a complement). If there was an advanced list he would > probably be > in it and very unlikely that he would also be in the "newbie" list to help > which would have > made my learning curve that much harder. Some other guys who are really > helpful and > advanced are Jason, Chris, Chris, David to name a few..take all of them out > and put them > in the advanced list...and the newbies, not-so-newbies etc will follow just > coz we have no > choice when we run into problems. If only newbies and average knowledge > dudes are in > the "not advance list" it wont work coz the blind leading the blind does not > work. > > My $0.2 > > Cheers, > -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] writing meta information into png
is there a class or a function that makes it possible to write meta information into a png or jpeg image? any suggestion? thanx in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Image creation
Dear all, Thanks Kilimajer's help and I can finally build-in the GD library. But when i use the imagecreate function for jpeg, don't know why there are some unknown wordings appears. Sth like the following: 1oACEEEO¡ÑOUUaaceeeno Don't know what's happening, I just use simple function (e.g. Imagecreate,Imagejpeg) to test it. Thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: extra breaks in sent out emails
Scott Taylor wrote: What I really don't understand is why there are any line breaks at all, because the trim is supposed to take out all \r & \n 's. Is there another type of line break? trim() actually only strips whitespace (including \r and \n) from the beginning and ending of strings. See http://www.php.net/trim for more information. If you want to completely remove line breaks from your string, use str_replace() to do something like: str_replace("\n", "", $string); and str_replace("\r", "", $string); See http://www.php.net/str-replace Finally, have you tried echoing $body just before the message is sent so that you can see exactly what is being sent to the mail() function? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP security
I know somebody who coded a PHP script that attempts to prevent post flooding and some other potential security 'flaws'. I know quite alot about PHP, some things are still beyond my knowledge. I was wondering if some people could have a look at it to see if it is a viable way of reducing secrity risks on PHP sites. You can download it from my site at http://www.streakyland.co.uk/ccisecurity.zip More info, an extract from the readme -> [What is the CCI Website Security Script?] The CCI Website Security Script is a drop-in PHP script designed to take on the burdon of dealing with certain common security problems in PHP scripts. It is made to be added to an existing script to provide immediate, transparent security of varying types. Far, far too often you hear about free scripts having some common vulnerability that has been seen a thousand times in other scripts - people just aren't careful enough when writing scripts. This script is desiged to try to compensate for some of this carelessness. Some of the things it (supposedly) attempts to prevent / do -> HTTP REQUEST FLOODS, SCRIPT DISPLAY VULNERABILITIES, GENERAL FLOOD PROTECTION, IP BANNING VIA .HTACCESS, HTML Source Viewing/Stealing Thanks for your time Streaky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP security
request floods and such are not the responsability of the programmer is it? Sounds more like a sys admin problem? i could be wrong. Jason "Martin Nicholls" <[EMAIL PROTECTED]> wrote: > > I know somebody who coded a PHP script that attempts to prevent post > flooding and some other potential security 'flaws'. > > I know quite alot about PHP, some things are still beyond my knowledge. I > was wondering if some people could have a look at it to see if it is a > viable way of reducing secrity risks on PHP sites. You can download it from > my site at http://www.streakyland.co.uk/ccisecurity.zip > > More info, an extract from the readme -> > > [What is the CCI Website Security Script?] > > The CCI Website Security Script is a drop-in PHP script designed to take on > the burdon of dealing with certain common security problems in PHP scripts. > It is made to be added to an existing script to provide immediate, > transparent security of varying types. > > Far, far too often you hear about free scripts having some common > vulnerability that has been seen a thousand times in other scripts - people > just aren't careful enough when writing scripts. This script is desiged to > try to compensate for some of this carelessness. > > Some of the things it (supposedly) attempts to prevent / do -> > > HTTP REQUEST FLOODS, SCRIPT DISPLAY VULNERABILITIES, GENERAL FLOOD > PROTECTION, IP BANNING VIA .HTACCESS, HTML Source Viewing/Stealing > > Thanks for your time > > Streaky > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: extra breaks in sent out emails
Thank you Ben. Using either str_replace("\n", "", $string); or str_replace("\r", "", $string); solves the problem. My guess is that when I submit the data there is both the \r and the \n in there (for there showed 2 white space characters in between the broken text lines). My guess is that the server converts all \r's into \n's, and for this reason when a piece of mail goes out it has two breaks instead of one. Best Regards, and thank you for the help, Scott Taylor Ben Ramsey wrote: Scott Taylor wrote: What I really don't understand is why there are any line breaks at all, because the trim is supposed to take out all \r & \n 's. Is there another type of line break? trim() actually only strips whitespace (including \r and \n) from the beginning and ending of strings. See http://www.php.net/trim for more information. If you want to completely remove line breaks from your string, use str_replace() to do something like: str_replace("\n", "", $string); and str_replace("\r", "", $string); See http://www.php.net/str-replace Finally, have you tried echoing $body just before the message is sent so that you can see exactly what is being sent to the mail() function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: extra breaks in sent out emails
I cannot believe that the server converts \r's to \n's. \n does not count as two breaks, either. \r stands for carriage return and \n stands for newline. Even if they are placed side-by-side (e.g. "\r\n"), they should only count as one line. Unless I knew more about your code or your application, I could not determine what was causing the double line break. Scott Taylor wrote: Thank you Ben. Using either str_replace("\n", "", $string); or str_replace("\r", "", $string); solves the problem. My guess is that when I submit the data there is both the \r and the \n in there (for there showed 2 white space characters in between the broken text lines). My guess is that the server converts all \r's into \n's, and for this reason when a piece of mail goes out it has two breaks instead of one. Best Regards, and thank you for the help, Scott Taylor Ben Ramsey wrote: Scott Taylor wrote: What I really don't understand is why there are any line breaks at all, because the trim is supposed to take out all \r & \n 's. Is there another type of line break? trim() actually only strips whitespace (including \r and \n) from the beginning and ending of strings. See http://www.php.net/trim for more information. If you want to completely remove line breaks from your string, use str_replace() to do something like: str_replace("\n", "", $string); and str_replace("\r", "", $string); See http://www.php.net/str-replace Finally, have you tried echoing $body just before the message is sent so that you can see exactly what is being sent to the mail() function? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] imagecreatejpeg locks php
Is there any debugger i can use too se what is hapening? I found dbg but that seems to only work if php is CGI installed, and I do have serious problem compiling dbg. I also found xdebug http://www.xdebug.org/ but it seems like it's not for php 4.3.4, just 4.3.1. Downloaded the source also so I will try to compile that too if there's a meaning. I also found 'body' http://members.ozemail.com.au/~djf01/body.html (is it a motorcykle site or about php?). So do you know of any other, I would like to use it without recompiling apache, but singe its compiled with --disable-debug I guess i'm out of luck, and have to recompile php? Would love to get some answers and no newbie or rtfm flames from you dragons ;). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] How to write this correctly?
Hi, Sunday, March 7, 2004, 11:20:18 PM, you wrote: L> Hi, thanks for a help. but your script doesn't work correctly. L> function output($action){ // this is line 64. L> $output = ''; //if no file we return an empty string L> $fname = 'data/'.$action.'.txt'; L> if(file_exists($fname)){ L> $file = file($fname); L> foreach($file as $value ) { L> $output .= "$value"; L> } L> } L> return $output; L> } L> $content = output(); // I added this line because later I have an echo.. L> if(isset($_REQUEST['action'])){ L> $out = output($_REQUEST['action']); L> } L> echo "".$content.""; // as you can see, it is important to L> put whole output of the function to this variable ($content). L> The browser debugs: L> Warning: Missing argument 1 for output() in C:\www\RKV\start.php on line L> 64 L> Sorry for my bad english, L> Roman L> - Original Message - L> From: "Tom Rogers" <[EMAIL PROTECTED]> L> To: "Labunski" <[EMAIL PROTECTED]> L> Cc: <[EMAIL PROTECTED]> L> Sent: Sunday, March 07, 2004 4:14 AM L> Subject: Re: [PHP] How to write this correctly? You only need to call output if there is an action selected so try something like this then function output($action){ $output = ''; //if no file we return an empty string $fname = 'data/'.$action.'.txt'; if(file_exists($fname){ $file = file($fname); foreach($file as $value ) { $output .= "$value"; } } return $output; } echo ''; if(isset($_REQUEST['action'])){ $content = output($_REQUEST['action']); if(!empty($content)){ echo "".$content.""; }else{ echo 'Sorry '.$_REQUEST['action'].' not found!'; }else{ ?> Factories Beautiful pictures Zoo Contact us '; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RFC: Job listings
Hi, I'm one of the volunteers working on PHPCommunity.org. There's been some talk about having a Job Listings section on the site, something along the lines of jobs.perl.org, and We're wondering how much interest there is in such a service. I'm sure all the unemployed PHP developers on the list would like it, if companies actually used it. So the biggest question is probably if companies looking to hire PHP developers would use it. I would really appreciate it if you could reply to this message, off-list, if you're interested in this or have anything to say on the topic. Please mention in what way you're interested, if you're in a position to hire people, looking for work, etc. Anything you feel is relevant. All comments are welcome, both positive and negative. I can be reached at [EMAIL PROTECTED] Looking forward to reading your comments! Thanks in advance, -- Anders Hellström PHPCommunity.org: Open Source, Open Community Dumburken.net: Reklamfria TV-tablåer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Question of Charset
I don't understand what you are asking. Please explain. Respectfully, Ligaya Turmelle PHPCommunity: Open Source, Open Community For more information or to join the movement www.phpcommunity.org <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear All, > > How to control php ( programms on Linux System ) convert the charset of > unicode from MS-SQL 2000 ? > > Very thank for your help ! > > Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getting message from file
Dear All, I have a problem on getting content from a data file (data.txt). I have many numbers in the file...all of them are about 2.XXX, and I need them to plot a graph. But I just can't read them out as a integer. I've used C++ program to read them before, but i don't know how to import C++ program into PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: RFC: Job listings
Anders, I think this really depends on how we get the word out to employers about this service. I, for one, hope to use the new Atlanta PHP (http://www.atlphp.org) group as a resource not only to educate and network PHP developers, but as a way to bring knowledge of PHP to the business world in the southeastern US. I think that local user groups worldwide will need to take part in promoting such a thing to the local business owners. -Ben Anders Hellström wrote: Hi, I'm one of the volunteers working on PHPCommunity.org. There's been some talk about having a Job Listings section on the site, something along the lines of jobs.perl.org, and We're wondering how much interest there is in such a service. I'm sure all the unemployed PHP developers on the list would like it, if companies actually used it. So the biggest question is probably if companies looking to hire PHP developers would use it. I would really appreciate it if you could reply to this message, off-list, if you're interested in this or have anything to say on the topic. Please mention in what way you're interested, if you're in a position to hire people, looking for work, etc. Anything you feel is relevant. All comments are welcome, both positive and negative. I can be reached at [EMAIL PROTECTED] Looking forward to reading your comments! Thanks in advance, -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP security
no, but i suppose you have options available to prevent them, and it may be a sysadmins problem, but there is a good chance that it may be your fault, I can see how if you are a freelance devloper, it may look bad if the client wants to hire for another job, and your code was the flaw in an otherwise well coded site, or that sort of thing... I don't know really, I was just wondering what people thought of it.. :P "Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > request floods and such are not the responsability of the programmer is > it? Sounds more like a sys admin problem? i could be wrong. > > Jason > > "Martin Nicholls" <[EMAIL PROTECTED]> wrote: > > > > I know somebody who coded a PHP script that attempts to prevent post > > flooding and some other potential security 'flaws'. > > > > I know quite alot about PHP, some things are still beyond my knowledge. I > > was wondering if some people could have a look at it to see if it is a > > viable way of reducing secrity risks on PHP sites. You can download it from > > my site at http://www.streakyland.co.uk/ccisecurity.zip > > > > More info, an extract from the readme -> > > > > [What is the CCI Website Security Script?] > > > > The CCI Website Security Script is a drop-in PHP script designed to take on > > the burdon of dealing with certain common security problems in PHP scripts. > > It is made to be added to an existing script to provide immediate, > > transparent security of varying types. > > > > Far, far too often you hear about free scripts having some common > > vulnerability that has been seen a thousand times in other scripts - people > > just aren't careful enough when writing scripts. This script is desiged to > > try to compensate for some of this carelessness. > > > > Some of the things it (supposedly) attempts to prevent / do -> > > > > HTTP REQUEST FLOODS, SCRIPT DISPLAY VULNERABILITIES, GENERAL FLOOD > > PROTECTION, IP BANNING VIA .HTACCESS, HTML Source Viewing/Stealing > > > > Thanks for your time > > > > Streaky > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: RFC: Job listings
I don't see how it could be to anyone's disadvantage. As a matter of fact, I think that it would be great to also have it available as a soap service as well. If people well versed in different open source projects were able to be listed on each projects' sites and provide soap service as well, anyone could create an all-encompassing list of open source tallent at any one place on the web and pull from all of the resources. Sounds great for the unemployed and the employers. -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Sunday, March 07, 2004 8:05 PM To: [EMAIL PROTECTED]; Anders Hellström Subject: [PHP] Re: RFC: Job listings Anders, I think this really depends on how we get the word out to employers about this service. I, for one, hope to use the new Atlanta PHP (http://www.atlphp.org) group as a resource not only to educate and network PHP developers, but as a way to bring knowledge of PHP to the business world in the southeastern US. I think that local user groups worldwide will need to take part in promoting such a thing to the local business owners. -Ben Anders Hellström wrote: > Hi, > > > I'm one of the volunteers working on PHPCommunity.org. > > There's been some talk about having a Job Listings section on the site, something along the lines of jobs.perl.org, and We're wondering how much interest there is in such a service. I'm sure all the unemployed PHP developers on the list would like it, if companies actually used it. So the biggest question is probably if companies looking to hire PHP developers would use it. > > I would really appreciate it if you could reply to this message, off-list, if you're interested in this or have anything to say on the topic. Please mention in what way you're interested, if you're in a position to hire people, looking for work, etc. Anything you feel is relevant. > > All comments are welcome, both positive and negative. > > I can be reached at [EMAIL PROTECTED] > > > Looking forward to reading your comments! > > > > Thanks in advance, > -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Do not want Undefined variable message
I have following code testinclude.php <% echo "A $color $fruit"; // A include 'vars.php'; echo "A $color $fruit"; // A green apple %> vars.php <% $color = "green"; $fruit = "Apple"; %> But when i run the testinclude program I always get "Undefined variable errro on very first line. I know it is because vars are not defined yet, but i remember last time those warnings never used to come. What setting is needed in php.ini file ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Question of Charset
Dear Ligaya Turmelle, For example After enter chinese words ( example ) though program ( Web ) to MS-SQL, then search the data from the DB... But the result of the records is not chinese words ( char ) ! Thank for your help ! Edward. Ligaya Turmelle wrote: > I don't understand what you are asking. Please explain. > > Respectfully, > Ligaya Turmelle > > PHPCommunity: Open Source, Open Community > For more information or to join the movement > www.phpcommunity.org > > <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Dear All, > > > > How to control php ( programms on Linux System ) convert the charset of > > unicode from MS-SQL 2000 ? > > > > Very thank for your help ! > > > > Edward. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: RFC: Job listings
--- Larry Brown <[EMAIL PROTECTED]> wrote: > I don't see how it could be to anyone's disadvantage. As a matter of > fact, I think that it would be great to also have it available as a soap > service as well. I was thinking the same thing after reading Ben's comment. I think people might be more interested in local job boards, but a global resource could provide an organized outlet for this by sharing this data via feeds. So, people can post job openings on this board, and local user groups can syndicate this data based on local preferences, or they can even let their users sign in and have even more personalized listings (bypassing the necessity of searching). Along the same lines, local user groups can help syndicate data back to the core PHP job resource as well. If the resource can do a better job of bringing together quality talent and employers than existing resources do (which probably isn't too hard), I think it can quickly become the dominant job board for PHP, which can only help everyone. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 8 Mar 2004 02:42:57 -0000 Issue 2633
php-general Digest 8 Mar 2004 02:42:57 - Issue 2633 Topics (messages 179697 through 179717): Re: remote stop/start the applications 179697 by: Raditha Dissanayake 179698 by: CurlyBraces Technologies \( Pvt \) Ltd Re: Let's start a php-advanced list! 179699 by: Larry Brown writing meta information into png 179700 by: p80 Image creation 179701 by: Kenneth Re: extra breaks in sent out emails 179702 by: Ben Ramsey 179705 by: Scott Taylor 179706 by: Ben Ramsey PHP security 179703 by: Martin Nicholls 179704 by: Jason Davidson 179713 by: Martin Nicholls Re: imagecreatejpeg locks php 179707 by: kringla Re: How to write this correctly? 179708 by: Tom Rogers Re: Job listings 179709 by: Anders Hellström 179712 by: Ben Ramsey 179714 by: Larry Brown 179717 by: Chris Shiflett Re: Question of Charset 179710 by: Ligaya Turmelle 179716 by: edwardspl.ita.org.mo getting message from file 179711 by: Kenneth Do not want Undefined variable message 179715 by: Manisha Sathe Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- --- Begin Message --- You can only kill your own processes or you have to rely on a suexec mechanism. What you should be doing is SFTA because this topic has been discussed many times in the past. all the best CurlyBraces Technologies ( Pvt ) Ltd wrote: By using php web page of a certain webserver can i go into the some other local plase in the same web server ? Because for the special request i want kill some prosess which are runs in the webserver. All Telent and other remote login restricted from the firewall . thanx - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 07, 2004 7:16 PM Subject: Re: [PHP] Fw: remote stop/start the applications On Sunday 07 March 2004 20:50, CurlyBraces Technologies \( Pvt \) Ltd wrote: Tell me even , is it possible to do so ?? Yes. -- Jason Wong -> Gremlins Associab.php -- Raditha Dissanayake. --- http://www.radinks.net/ftp/applet/ An applet that breaks all the rules. Reads, Writes and Deletes files on your hard disk. Uploads what's left to a third party server. --- End Message --- --- Begin Message --- sorry , u didn't get my point ..i will explain it again. 1.web server runs with some php scripts 2.It will show the out put of a certain executable file's result. 3.This file run in the /usr/local/src/./asd.pl 4.I need stop the function of that file , like ctrl+c can u hel me further ? thanx - Original Message - From: "Raditha Dissanayake" <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Sunday, March 07, 2004 8:31 PM Subject: Re: [PHP] Fw: remote stop/start the applications > You can only kill your own processes or you have to rely on a suexec > mechanism. What you should be doing is SFTA because this topic has been > discussed many times in the past. > > all the best > > CurlyBraces Technologies ( Pvt ) Ltd wrote: > > >By using php web page of a certain webserver can i go into the some other > >local plase in the same web server ? > >Because for the special request i want kill some prosess which are runs in > >the webserver. > >All Telent and other remote login restricted from the firewall . > > > >thanx > > > >- Original Message - > >From: "Jason Wong" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Sunday, March 07, 2004 7:16 PM > >Subject: Re: [PHP] Fw: remote stop/start the applications > > > > > > > > > >>On Sunday 07 March 2004 20:50, CurlyBraces Technologies \( Pvt \) Ltd > >> > >> > >wrote: > > > > > >>>Tell me even , is it possible to do so ?? > >>> > >>> > >>Yes. > >> > >>-- > >>Jason Wong -> Gremlins Associab.php > >> > >> > >> > >> > > > > > > > > > -- > Raditha Dissanayake. > --- > http://www.radinks.net/ftp/applet/ > An applet that breaks all the rules. Reads, Writes and Deletes files on > your hard disk. Uploads what's left to a third party server. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- End Message --- --- Begin Message --- what do you guys think of using a tag for discussion messages? This way people that don't want to weed out lengthy discussions and attachments etc can filter them out of list messages. A tag such as in the subject line? Just my two cents. Larry -Original Message- From: Marc Greenstock [mailto:[EMAIL PROTECTED] Sent: Saturday, March 06, 2004 7:57 PM To: [EMA
Re: [PHP] Do not want Undefined variable message
>But when i run the testinclude program I always get "Undefined variable >errro on very first line. I know it is because vars are not defined yet, >but i remember last time those warnings never used to come. What setting >is needed in php.ini file ? Check the manual for "error reporting." - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: RFC: Job listings
At 18.42 -0800 2004-03-07, Chris Shiflett wrote: >--- Larry Brown <[EMAIL PROTECTED]> wrote: >> I don't see how it could be to anyone's disadvantage. As a matter of >> fact, I think that it would be great to also have it available as a soap >> service as well. > >I was thinking the same thing after reading Ben's comment. I think people >might be more interested in local job boards, but a global resource could >provide an organized outlet for this by sharing this data via feeds. > >So, people can post job openings on this board, and local user groups can >syndicate this data based on local preferences, or they can even let their >users sign in and have even more personalized listings (bypassing the >necessity of searching). Along the same lines, local user groups can help >syndicate data back to the core PHP job resource as well. Personally I think a single global resource is the best. Since you would be able to search/browse specific locations, local job listings don't have much of an advantage, except perhaps that what companies put in their ads varies from country to country, and that's generally not a big issue. And people willing to relocate will probably appreciate having to look only in one place. That the job listings should be made available for syndication in some form or another always felt so obvious to me I may have failed to mention it. Of course both PHPCommunity.org and the local user groups would benefit from having the job listings displayed on the web sites of the local user groups, so I'm all for that. And users on PHPCommunity.org should be able to save default filters/searches for easier browsing, as well as have notification of new ads (that match their saved settings) sent to them by E-mail. -- Anders Hellström PHPCommunity.org: Open Source, Open Community Dumburken.net: Reklamfria TV-tablåer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] OTP: Programming
Hi, I have been working with PHP for a few years now, and I feel very comfortable with it. I am considering branching out into windows application development, and I was wondering what language people would recommend for someone comfortable with PHP. I have heard that PHP can be used in this capacity, would PHP work for me to create applications with a GUI? I am sorry if this really is an off topic post! Thanks Phil Dowson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help with PPP Strategies
Hi, I want to write a php script for handling the username and password of users on my website. What strategies are used for password protected pages? I don't quite know where to start! One strategy that I had in mind was to have a folder for each user and access it via the user name and password but then I though if the user has the name of the folder they don't need the password! they can just type it up and open it! I guess my question can also be what strategies are most commonly used for ppp? Best regards, -Pooya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OTP: Programming
On Mon, 2004-03-08 at 05:40, Phil Dowson wrote: > Hi, > > I have been working with PHP for a few years now, and I feel very > comfortable with it. I am considering branching out into windows > application development, and I was wondering what language people would > recommend for someone comfortable with PHP. > > I have heard that PHP can be used in this capacity, would PHP work for > me to create applications with a GUI? Take a look at php-gtk: http://gtk.php.net/ -- Cosmin <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Function
Hello All, I have a question. I installed PHP on a windows XP machine. When I try to send a form it says: "Warning: mail(): sendmail_from not set in php.ini or custom "From: header. My header are as follows: $subject = "FeedBack From Site"; $msg = "Senders Name: $_POST[name]\n"; $msg .= "Senders Email: $_POST[email]\n"; $msg .= "Message: \r$_POST[message]\n"; $mailheader .= "From: $_POST[email]\n"; $mailheader .= "A message has been sent from Domain"; mail($recipient, $subject, $msg, $mailheader); require ("tmpl/send_form.htm"); ?> The recipient is in the setup.php file, just to let you know. My sendmail_from is as follows: sendmail_from = [EMAIL PROTECTED] Please help :) ~WILL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with PPP Strategies
Pooya Eslami wrote: Hi, I want to write a php script for handling the username and password of users on my website. What strategies are used for password protected pages? I don't quite know where to start! One strategy that I had in mind was to have a folder for each user and access it via the user name and password but then I though if the user has the name of the folder they don't need the password! they can just type it up and open it! I guess my question can also be what strategies are most commonly used for ppp? http://www.zend.com/zend/tut/authentication.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MYSQL & Image functions
I am trying to use any of the image functions with image data from a mysql database. I can get these functions to work from files on the server but for some reason, not out of the database. If any one has gotten this to work, code you shoot me over some sample code, or functions on what to do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php