[PHP] calling stored procedures ORACLE 9i
Hi, I would like to know if it possible to run a stored procedure (Oracle 9i) and the way to get the OUT parameter of this procedure in PHP. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] undefined index -------- please help !!!!!!!!
OK, but when i use isset my request is not executed normally. I wonder if the fact i use the frames is the problem because with no changement and without using isset my request run correctly. Thanks ! - Original Message - From: John Nichel [EMAIL PROTECTED] To: Dominique ANOKRE [EMAIL PROTECTED] Cc: Php List [EMAIL PROTECTED] Sent: Saturday, March 06, 2004 12:15 PM Subject: Re: [PHP] undefined index please help Dominique ANOKRE wrote: on line 66 there is : $date=$_POST[date]; Thanks $_POST['date'] isn't set. if ( isset ( $_POST['date'] ) ) { $date = $_POST['date']; } -- By-Tor.com It's all about the Rush http://www.by-tor.com -- 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] PHP not browser independent?
Hi there, There is a strange thing with Browsers and forms. In Netscape 7.x $_POST workes quite fine, while in IE it does not. I am using a form with a graphical button: input type=Image name=submit value=submit src=button.gif width=80 height=19 alt=button alt tag Inside a file I am trying to catch the form inside a if statement: if ($_POST[submit]) {... This does work in all browsers, but not in IE. IE simply never makes the if statement true. Does anybody know why? Thanx for any hint on that, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not browser independent?
Hello Merlin, Monday, March 8, 2004, 10:53:59 AM, you wrote: M In Netscape 7.x $_POST workes quite fine, while in IE it does not. M Does anybody know why? Thanx for any hint on that, Yes it's a bug in IE created by the latest Hotfix Microsoft released to combat their stupid phishing error. There are no solutions. Have a dig around in the mailing list archives for links to various sites that give more details about it. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MYSQL Image functions
On Monday 08 March 2004 15:53, res0b8b6 wrote: 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. imagecreatefromstring() ? -- 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 -- /* We have seen the light at the end of the tunnel, and it's out. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not browser independent?
... and the solution is here (AFAIK) http://support.microsoft.com/default.aspx?kbid=831167 Richard Davey wrote: Hello Merlin, Monday, March 8, 2004, 10:53:59 AM, you wrote: M In Netscape 7.x $_POST workes quite fine, while in IE it does not. M Does anybody know why? Thanx for any hint on that, Yes it's a bug in IE created by the latest Hotfix Microsoft released to combat their stupid phishing error. There are no solutions. Have a dig around in the mailing list archives for links to various sites that give more details about it. -- Mirek Novak jabberID: [EMAIL PROTECTED] ICQ: 119499448 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] PHP not browser independent?
Hello Mirek, Monday, March 8, 2004, 11:34:26 AM, you wrote: MN ... and the solution is here (AFAIK) MN http://support.microsoft.com/default.aspx?kbid=831167 Yes true, sorry I didn't make myself clear - there is no solution from a PHP point of view, i.e. if your visitor has the problem - there is nothing you can do to fix it. You could however error trap it (i.e. check that the POST data is entirely empty) and prompt them to update IE? But that depends on your audience I guess (some people just won't know how/be able to). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fsockopen() errors.
Hi All, Can anyone tell me the best way to avoid errors using fsockopen(). I have tried wrapping the function call in a conditional statement, and have also tried calling the function and then testing the return. Example 1: $sckHandle = fsockopen($server, 25, $errNo, $errString); if ($sckHandle) { code here... } Example 2: if ($sckHandle = fsockopen($server, 25, $errNo, $errString)) { code here... } both give this error on failing to connect to a given server: fsockopen(): unable to connect to mx3.hotmail.com:25 I was under the impression that example 2 would not trigger an error if fsockopen() failed. Any help will be greatly appreciated. Phil. --- Phil Ewington - Technical Director 43 Plc - Ashdale House 35 Broad Street, Wokingham Berkshire RG40 1AU T: +44 (0)1189 789 500 F: +44 (0)1189 784 994 E: mailto:[EMAIL PROTECTED] W: www.soyouthink.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP5: __autoload() and Exceptions
Hi All, I did some tests with the exception's under PHP5. I wanted to use the __autoload()-function to use for class loading. The function should throw an exception if it was not possible to load the class. Code should be like that: - try { $x = new classname; } catch (Exception $exception) { die('class not found'); } - But I get an error, that the thrown exception is not cought... Samplecode of __autoload(): - function __autoload($name) { throw new Exception(); } - Is this an error of the PHP5-CVS-Version or is it impossible to catch exceptions thrown by the __autoload()-function? David Danier signature.asc Description: OpenPGP digital signature
Re: [PHP] fsockopen() errors.
Is it an error or a warning? If it is a warning you can try use @ before fsockopen() to avoid echoing warning messages [EMAIL PROTECTED](...)]. -- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) [EMAIL PROTECTED] TLFNO. 955036800 ext. 111 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail Headers
You can view the source from an email message with Outlook or Thunderbird, and it will show headers and all that stuff... --- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) [EMAIL PROTECTED] TLFNO. 955036800 ext. 111 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] fsockopen() errors.
Hi Miguel, I am giving it a test at the moment, thanks. -- Phil. -Original Message- From: Miguel J. Jiménez [mailto:[EMAIL PROTECTED] Sent: 08 March 2004 12:29 To: Phil Ewington - 43 Plc Cc: PHP Subject: Re: [PHP] fsockopen() errors. Is it an error or a warning? If it is a warning you can try use @ before fsockopen() to avoid echoing warning messages [EMAIL PROTECTED](...)]. -- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) [EMAIL PROTECTED] TLFNO. 955036800 ext. 111 -- 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] RSA or other private/public key signature functions?
Hello, Is there a PHP implementation of RSA or DSS or something else allowing to create and verify digital signatures using 2 keys? By PHP implementation I mean something that can be run without additional requirements on average PHP installation, i.e. bcmath requirement maybe acceptable (as it is on most installations) but openssl or external program is not. Regards, Richard. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] {OT}UK Bank Holidays 2
[snip] What come all the way from Sri Lanka to Sweden just to bite you? Good thing the authors of PHP didn't try to add support for Sri Lankan holidays they would have given up on the language. We have 30+ and there's no guarantee that if March 6 2004 is a holiday (which in fact it is) march 06 2005 will be a holiday too. (Some holidays have a 28 day cycle) [/snip] If they do Sri Lanka, then I want all of the Cajun holidays! My group has been oppressed far too long! -- 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!
[snip] My goal was to provide an area that fosters stretching PHP. Big projects, unusual projects, weird hacks... all kinds of advanced stuff. I have thought that providing an advanced area might make people more likely to post stuff like Look at this... and provide some intriguing discussion and such. Not that it's impossible with php-general, but reading 150 posts (or at least the subject) makes it easy for that type of thing to get lost. [/snip] Have you paid a visit to phpcommunity.org? You might find something there -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] OTP: Programming
[snip] 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? [/snip] To look at PHP see http://gtk.php.net/, otherwise consider starting down the path to C++ enlightenment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Compiling PHP classes/libraries to objects
Hi All Is there any way to use compiled form of libraries/classes in PHP. Comments please... Regards, Tariq -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] absolute path
I'm looking for PHP function that takes $filename as parameter and returns absolute path. I looked on php.net but cannot find such function. Any ideas if such function exist? Thanks _ Frustrated with dial-up? Lightning-fast Internet access for as low as $29.95/month. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Mail Function
Please help me with this. Can someone give me an example of their php.ini on the settings of the mail function. ~WILL~ Will wrote: 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: ? require (admin/inc/setup.php); $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] writing meta information into png
http://www.phpclasses.org/browse/package/1042.html, but I don't know if the class supports pngs. p80 wrote: 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
Re: [PHP] absolute path
Hello Mike, Monday, March 8, 2004, 1:59:43 PM, you wrote: MM I'm looking for PHP function that takes $filename as parameter and returns MM absolute path. Assuming $filename contains the full directory (path) as it will need to, you can use the following functions for a variety of results: dirname() pathinfo() realpath() -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] absolute path
On 08 March 2004 14:00, Mike Mapsnac wrote: I'm looking for PHP function that takes $filename as parameter and returns absolute path. I looked on php.net but cannot find such function. Any ideas if such function exist? How about http://www.php.net/realpath ? Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP support C++?
Hi all, Does PHP support C++ language? If yes, how can it be converted? The case is, I've use C++ to make a function (to get data from file and convert it from char type to int type), how can i import the function/variables and use it in PHP? Thanks, Kenneth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 8 Mar 2004 15:03:41 -0000 Issue 2634
php-general Digest 8 Mar 2004 15:03:41 - Issue 2634 Topics (messages 179718 through 179749): Re: Do not want Undefined variable message 179718 by: Michal Migurski Re: Job listings 179719 by: Anders Hellström Re: Programming 179720 by: Phil Dowson 179722 by: Cosmin 179742 by: Jay Blanchard Help with PPP Strategies 179721 by: Pooya Eslami 179724 by: Burhan Khalid Mail Function 179723 by: Will 179745 by: Will MYSQL Image functions 179725 by: res0b8b6 179730 by: Jason Wong Re: undefined index please help 179726 by: Dominique ANOKRE calling stored procedures ORACLE 9i 179727 by: jon PHP not browser independent? 179728 by: Merlin 179729 by: Richard Davey 179731 by: Mirek Novak 179732 by: Richard Davey fsockopen() errors. 179733 by: Phil Ewington - 43 Plc 179736 by: Miguel J. Jiménez 179738 by: Phil Ewington - 43 Plc Mail Headers 179734 by: Jarratt Ingram 179737 by: Miguel J. Jiménez Re: __autoload() and Exceptions 179735 by: David Danier RSA or other private/public key signature functions? 179739 by: Richard Äepas Re: {OT}UK Bank Holidays 2 179740 by: Jay Blanchard Re: Let's start a php-advanced list! 179741 by: Jay Blanchard Compiling PHP classes/libraries to objects 179743 by: Tariq Murtaza absolute path 179744 by: Mike Mapsnac 179747 by: Richard Davey 179748 by: Ford, Mike [LSS] Re: writing meta information into png 179746 by: Marek Kilimajer PHP support C++? 179749 by: Kenneth 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] -- ---BeginMessage--- 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 ---End Message--- ---BeginMessage--- 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 ---End Message--- ---BeginMessage--- 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 ---End Message--- ---BeginMessage--- 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.
Re: [PHP] Re: Mail Function
Hi, Tuesday, March 9, 2004, 12:05:22 AM, you wrote: W Please help me with this. Can someone give me an example of their W php.ini on the settings of the mail function. W ~WILL~ A wild guess but try it with \r\n as line endings, I don't run the server under windows so can't help with the ini settings. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] fsockopen() errors.
Hmm, added @ to fsockopen() function, still happens, can anyone shed any light on this? TIA Phil. -Original Message- From: Phil Ewington - 43 Plc [mailto:[EMAIL PROTECTED] Sent: 08 March 2004 12:57 To: Miguel J. Jiménez Cc: PHP Subject: RE: [PHP] fsockopen() errors. Hi Miguel, I am giving it a test at the moment, thanks. -- Phil. -Original Message- From: Miguel J. Jiménez [mailto:[EMAIL PROTECTED] Sent: 08 March 2004 12:29 To: Phil Ewington - 43 Plc Cc: PHP Subject: Re: [PHP] fsockopen() errors. Is it an error or a warning? If it is a warning you can try use @ before fsockopen() to avoid echoing warning messages [EMAIL PROTECTED](...)]. -- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) [EMAIL PROTECTED] TLFNO. 955036800 ext. 111 -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OTP: Programming
The easiest language to learn for Windows is Visual Basic. You can get a simple gui app up and running in minutes. On 8 Mar 2004, at 14:40, Jay Blanchard wrote: [snip] 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? [/snip] To look at PHP see http://gtk.php.net/, otherwise consider starting down the path to C++ enlightenment. -- 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] test1
test2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] test2
test2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php debug
I am getting an error in php that is causing a core dump : (gdb) core php.core Core was generated by `php'. Program terminated with signal 11, Segmentation fault. #0 0x00686264 in ?? () The program is a script and is working fine until, my assumption is that it exhausts resources and crashes, does anyone have a suggestion on how to debug a problem of this sort? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems with upload
I am running a fullt upgraded Debain testing system, and I have a smaller problem with uploading files. I use my installation to develop PHP applications, and a part of this making file upload scripts. A have a basic form, in which i can upload a file, the header information gets passed fine into PHP (name, size, mime-type, temporary placement in system), but the file is NOT placed into the temporary location which by default is /tmp. I have tried using other temporary locations, but that did not work either. I have also tried to recompile both apache and php, so I was not using the stadard packages, that did not work either. The settings within php allow fileupload, so the problem should not be there. Has anybody else had similar problems /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] (Some?) IE6 browsers submitting empty forms??
I'm having a problem with some server-side validation scripts, in a shopping cart context. I have been unable to replicate this problem reliably on my own, so most of what I know about it is really just deduction. I've googled a bit, and found one seemingly relevant tidbit on PHP.net, but I've not had much luck with actually fixing the problem. What happens: Users enter step one of the checkout process, enter all their vital stats and (I'm assuming) click the Next step button. The server validates their stuff, but finds that the only non-blank form data in $_POST is from the submit button. The server thinks this the user has failed to give it their required fields and sends the user back to the form. Begin repeating loop. I have the server set up to email me whenever validation fails (for any reason) and I've been getting an increasing number of these Everything blank on step 1 emails lately. So, I started having those emails include more env information ($_SERVER, $_SESSION, etc) and the only common thread I've seen is that all users with this problem are using IE6. (Although the specific HTTP_USER_AGENT lines are not identical in every case.) I've tested with all the IE6 browsers I can get my hands on locally, but none of them are displaying this behavior. Skimming through the comments at PHP.net (http://us3.php.net/manual/en/function.header.php) it sounded as though Cache-Control might be the solution, but I've tried that and (since I can't test locally) waited a week and I continued getting the validator-error-emails. So, I tried a more elaborate header() instruction, but after waiting, received more failure emails. Then, I thought, If it's a page-caching problem, I'll change the form action to http://server/step2.php?junk=.mktime() and see if that helps. I (foolishly) thought that would fix it: but no, after a few days, I began receiving the validator emails again. That brings me here. PHP-General, you're my only hope! :) For now, I've re-coded the validator so it sends a different response when step1 data turns up mostly blank (something like technical difficulties, please call in your order) but I'd like to figure out what's going on and get the server/browser to cooperate. Obviously, I'm still missing something. Can anybody help with this? At this point, it's just driving me nuts. (Related question: Does anyone know why this happens and/or how to trigger it? I'd like to be able to test solutions locally before throwing them onto the server.) Some technical details: Server is running Apache 1.3.27, PHP is 4.3.3, particular page is running on https (which complicates testing a bit, no telnetting to port 80). I can send code or whatever else, if that helps. Thanks for your help! -- joshua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] (Some?) IE6 browsers submitting empty forms??
Hello Joshua, Monday, March 8, 2004, 3:33:24 PM, you wrote: JW Some technical details: Server is running Apache 1.3.27, PHP is 4.3.3, JW particular page is running on https (which complicates testing a bit, JW no telnetting to port 80). I can send code or whatever else, if that JW helps. http://support.microsoft.com/default.aspx?kbid=831167 -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: fsockopen() errors.
On 8 Mar 2004 Phil Ewington - 43 Plc wrote: Can anyone tell me the best way to avoid errors using fsockopen(). I have tried wrapping the function call in a conditional statement, and have also tried calling the function and then testing the return. Here's an approach I have used to avoid any error messages at all -- presumably you could also set a flag in the error handler to indicate what happened, if you need that. . $olderr = error_reporting(0); set_error_handler(ignoreerrhandler); $fp = fsockopen(.) restore_error_handler(); error_reporting($olderr); if ($fp) { [worked] } else { [failed] } . function ignoreerrhandler($errno, $errstr, $errfile, $errline) { return; } -- Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Framework in PHP?
Hello. I'm also trying out frameworks. I'm not sure which would be best, since I didn't tried most of then, just read the specifications and functionalities. And, since I'm not very happy, I'm developing my own right now. But I know the existence of those frameworks/specifications/methodologies: http://phrame.sourceforge.net/ http://www.fusebox.org/ http://combine.tigris.org/ http://www.binarycloud.com/ http://amb.sourceforge.net/ http://www.mojavi.org/ http://www.phpmvc.net/ I guess the fusebox is widelly used, and binaryclouds seems to be very promising. I'd never heard about the seagulll. Thanks for including it in your email. I'wll check it out. If you find something interesting, could you send it to the list? I would like to hear some opnions. Thiago Silva Rodolfo Gonzalez Gonzalez wrote: Hello, which free (as in beer) framework writen in PHP (OO) would you consider the best for developing large web applications?. I was looking at Seagull (http://seagull.phpkitchen.com/)... I would appreciate your comments on this and other frameworks. Thank you, Rodolfo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with upload
On Monday 08 March 2004 23:35, Martin Hjort Eriksen wrote: I am running a fullt upgraded Debain testing system, and I have a smaller problem with uploading files. Does the example in the manual work for you? If it does, what does the php error log say when you run *your* code? Post some concise code which illustrates your problem. -- 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 -- /* Tonight's the night: Sleep in a eucalyptus tree. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting message from file
On Monday 08 March 2004 09:04, Kenneth wrote: 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. What does your data file look like? Show a few sample lines. But I just can't read them out as a integer. What code did you use? -- 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 -- /* Have you lived here all your life? Oh, twice that long. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with upload
Jason Wong wrote: On Monday 08 March 2004 23:35, Martin Hjort Eriksen wrote: I am running a fullt upgraded Debain testing system, and I have a smaller problem with uploading files. Does the example in the manual work for you? If it does, what does the php error log say when you run *your* code? Post some concise code which illustrates your problem. Here is some of the code I am using, to acces the uploaded file: if(!file_exists($_FILES['binFile']['tmp_name'])) { return Filen .$_FILES['binFile']['name']. kan ikke findes paring; serveren.br / Er fejlen vedvarende, kontakt da venligst systemadministratoren.; } $data = addslashes(fread(fopen($_FILES['binFile']['tmp_name'], r), filesize($_FILES['binFile']['tmp_name']))); PHP does not give any warnings or notices in the situation. The $_FILES array is populated with all the necessary information, but the file that is uploaded is not present in the location given by $_FILES['binFile']['tmp_name'] I have also tried to change locations and that did not help. I have also been in tha manual, and could not find anything there that could help me. I have previously run Redhat then Slackware...the I changed to Debian, and since then it did not work. I have previoulsy also asked the debian user list, but have not recieved any answer, then decided to ask this list. /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with upload
Do you have any wierd setting for upload temp dir? (can't remember the directive) in your php.ini file? Martin Hjort Eriksen wrote: Jason Wong wrote: On Monday 08 March 2004 23:35, Martin Hjort Eriksen wrote: I am running a fullt upgraded Debain testing system, and I have a smaller problem with uploading files. Does the example in the manual work for you? If it does, what does the php error log say when you run *your* code? Post some concise code which illustrates your problem. -- 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] Re: php/mssql character limit?
I posted this message the other day, and no one has responded. I'm replying to it to refresh it in the list. I guess if no one responds or helps me out this time, then I'll just forget about it and let my client go unhappy. ;-) Seriously, if anyone can help me out, I would be much appreciative. Ben Ramsey wrote: Anyone know of any kind of character limit in php or mssql (yes, Microsoft SQL Server) for entering long text into a text column (of around 4,055 characters in length--that's where it's cutting off)? -- 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] Problems with upload
The standard settings for upload: ; File Uploads ; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). upload_tmp_dir = /tmp ; Maximum allowed size for uploaded files. upload_max_filesize = 2M /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: php/mssql character limit?
are you using a 'Text' or a 'varchar' column type? I guess the max size for varchars is 4000; text should be larger vincent -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: lundi 8 mars 2004 17:30 To: [EMAIL PROTECTED] Subject: [PHP] Re: php/mssql character limit? I posted this message the other day, and no one has responded. I'm replying to it to refresh it in the list. I guess if no one responds or helps me out this time, then I'll just forget about it and let my client go unhappy. ;-) Seriously, if anyone can help me out, I would be much appreciative. Ben Ramsey wrote: Anyone know of any kind of character limit in php or mssql (yes, Microsoft SQL Server) for entering long text into a text column (of around 4,055 characters in length--that's where it's cutting off)? -- 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
Re: [PHP] Re: php/mssql character limit?
I am using a text column type. I had always though that the max size for varchars was 255. Vincent DUPONT wrote: are you using a 'Text' or a 'varchar' column type? I guess the max size for varchars is 4000; text should be larger -- 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] Problems with upload
On Tuesday 09 March 2004 00:11, Martin Hjort Eriksen wrote: Here is some of the code I am using, to acces the uploaded file: if(!file_exists($_FILES['binFile']['tmp_name'])) { return Filen .$_FILES['binFile']['name']. kan ikke findes paring; serveren.br / Er fejlen vedvarende, kontakt da venligst systemadministratoren.; } So when you say but the file that is uploaded is not present in the location given by $_FILES['binFile']['tmp_name'], that is determined by the above test? If everything else in $_FILES looks OK, then the only thing I can think of that might be the cause is if you're operating your webserver from a chroot jail. I believe a similar problem cropped up before in the archives so you may want to have a look there. -- 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 -- /* Men are always ready to respect anything that bores them. -- Marilyn Monroe */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: php/mssql character limit?
VARCHAR limit is 255 :) mysql.com has great documentation. Jason Vincent DUPONT [EMAIL PROTECTED] wrote: are you using a 'Text' or a 'varchar' column type? I guess the max size for varchars is 4000; text should be larger vincent -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: lundi 8 mars 2004 17:30 To: [EMAIL PROTECTED] Subject: [PHP] Re: php/mssql character limit? I posted this message the other day, and no one has responded. I'm replying to it to refresh it in the list. I guess if no one responds or helps me out this time, then I'll just forget about it and let my client go unhappy. ;-) Seriously, if anyone can help me out, I would be much appreciative. Ben Ramsey wrote: Anyone know of any kind of character limit in php or mssql (yes, Microsoft SQL Server) for entering long text into a text column (of around 4,055 characters in length--that's where it's cutting off)? -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: php/mssql character limit?
Is it mY SQL or MS SQL we are talking about? -Original Message- From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: lundi 8 mars 2004 17:42 To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: php/mssql character limit? VARCHAR limit is 255 :) mysql.com has great documentation. Jason Vincent DUPONT [EMAIL PROTECTED] wrote: are you using a 'Text' or a 'varchar' column type? I guess the max size for varchars is 4000; text should be larger vincent -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: lundi 8 mars 2004 17:30 To: [EMAIL PROTECTED] Subject: [PHP] Re: php/mssql character limit? I posted this message the other day, and no one has responded. I'm replying to it to refresh it in the list. I guess if no one responds or helps me out this time, then I'll just forget about it and let my client go unhappy. ;-) Seriously, if anyone can help me out, I would be much appreciative. Ben Ramsey wrote: Anyone know of any kind of character limit in php or mssql (yes, Microsoft SQL Server) for entering long text into a text column (of around 4,055 characters in length--that's where it's cutting off)? -- 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 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: php/mssql character limit?
Coarse, i see after i post that you are talking about MSSql.. and not mysql.. i may have posted a little to quickly.. sorry. Jason Jason Davidson [EMAIL PROTECTED] wrote: VARCHAR limit is 255 :) mysql.com has great documentation. Jason Vincent DUPONT [EMAIL PROTECTED] wrote: are you using a 'Text' or a 'varchar' column type? I guess the max size for varchars is 4000; text should be larger vincent -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: lundi 8 mars 2004 17:30 To: [EMAIL PROTECTED] Subject: [PHP] Re: php/mssql character limit? I posted this message the other day, and no one has responded. I'm replying to it to refresh it in the list. I guess if no one responds or helps me out this time, then I'll just forget about it and let my client go unhappy. ;-) Seriously, if anyone can help me out, I would be much appreciative. Ben Ramsey wrote: Anyone know of any kind of character limit in php or mssql (yes, Microsoft SQL Server) for entering long text into a text column (of around 4,055 characters in length--that's where it's cutting off)? -- 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 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] Linux tools for PHP
Hello All. For all of you working with PHP on a GNU/Linux machine: What development tools (editors, debuggers, modeling tools, SGBDs) do you or your team use? Thanks, Thiago Silva -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Linux tools for PHP
Hey, tools i like using are. nedit - main editor i use vi - for quick or network edits apache - webserver ive tried some of the ide's and other editors like kate, quantra and such, and i constantly fall back to Nedit, for its simplicity. My only feature request for nedit, would be tabbed documents. At one office, we wrote a online Extreme Programmnig management tool for tracking User Stories, Milestones and things like that, was handy. Jason Thiago Silva [EMAIL PROTECTED] wrote: Hello All. For all of you working with PHP on a GNU/Linux machine: What development tools (editors, debuggers, modeling tools, SGBDs) do you or your team use? Thanks, Thiago Silva -- 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] Linux tools for PHP
Interesting, this management tool. And debuggers? Do you use any? Jason Davidson wrote: Hey, tools i like using are. nedit - main editor i use vi - for quick or network edits apache - webserver ive tried some of the ide's and other editors like kate, quantra and such, and i constantly fall back to Nedit, for its simplicity. My only feature request for nedit, would be tabbed documents. At one office, we wrote a online Extreme Programmnig management tool for tracking User Stories, Milestones and things like that, was handy. Jason Thiago Silva [EMAIL PROTECTED] wrote: Hello All. For all of you working with PHP on a GNU/Linux machine: What development tools (editors, debuggers, modeling tools, SGBDs) do you or your team use? Thanks, Thiago Silva -- 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] Linux tools for PHP
Try Emacs. Takes time to learn but real stuff Or vi Cheers Reverand Raja -Original Message- From: Thiago Silva [mailto:[EMAIL PROTECTED] Sent: lunedì 8 marzo 2004 17.54 To: [EMAIL PROTECTED] Subject: Re: [PHP] Linux tools for PHP Interesting, this management tool. And debuggers? Do you use any? Jason Davidson wrote: Hey, tools i like using are. nedit - main editor i use vi - for quick or network edits apache - webserver ive tried some of the ide's and other editors like kate, quantra and such, and i constantly fall back to Nedit, for its simplicity. My only feature request for nedit, would be tabbed documents. At one office, we wrote a online Extreme Programmnig management tool for tracking User Stories, Milestones and things like that, was handy. Jason Thiago Silva [EMAIL PROTECTED] wrote: Hello All. For all of you working with PHP on a GNU/Linux machine: What development tools (editors, debuggers, modeling tools, SGBDs) do you or your team use? Thanks, Thiago Silva -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Amount of memory per user
Hi List! I was just wondering... How can I know how much memory my scrips are using per connection, thread, or user? TIA Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] varchar size mssql
I read that the varchar size for ms sql is 8000 limit. i also read that someone having a problem with it getting truncated fixed his problem by using convert(text, $value) in the sql statement.. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SESSION vs ENV variables?
Hi, My script needs to load a config file with DB connection properties, etc. At the beginning of the session, the ini file is loaded and all values are stored in $_SESSION After the loading, a flag is also set in $_SESSION so that the ini loading is no more executed. However, all ini properties are the same for all users, so I wonder if I could put them in a cross-session variable. I guess $_ENV or $_SERVER should be good. So, the question could be : If I put something in $_SERVER, will these values be available for ALL users? Any idea? I have to keep the ini file, and could not hard code those properties. Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Linux tools for PHP
Am Mo, 2004-03-08 um 17.46 schrieb Thiago Silva: Hello All. For all of you working with PHP on a GNU/Linux machine: What development tools (editors, debuggers, modeling tools, SGBDs) do you or your team use? Editor/debugger/profiler: http://www.zend.com/store/products/zend-studio.php DB-Design (with DB-syncing and reverse engineering): http://www.fabforce.net/dbdesigner4/ UML (shouold support php-code generation - never used): http://uml.sourceforge.net/index.php -- Regards Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: varchar size mssql
The problem is that I want to stick with standard SQL. I would assume that convert() is a MS SQL Server function, and, thus, not standard (will not work in other database formats). Did what you read mention why the data was being truncated? Perhaps if I knew why, then I could fix it. Jason Davidson wrote: I read that the varchar size for ms sql is 8000 limit. i also read that someone having a problem with it getting truncated fixed his problem by using convert(text, $value) in the sql statement.. Jason -- 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] Re: varchar size mssql
[snip] The problem is that I want to stick with standard SQL. I would assume that convert() is a MS SQL Server function, and, thus, not standard (will not work in other database formats). Did what you read mention why the data was being truncated? Perhaps if I knew why, then I could fix it. [/snip] Since this is not a PHP issue may I refer you to http://msdn.microsoft.com ? You will find a truckload of information there as well as tons by searching Google for 'Microsoft SQL Server column types' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] What is CLI? Something about PHP 5 that have it...
Hi! What is CLI? It is something that PHP 5 that have it. Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Php does not recognize librerias DLL.
Hello, it wanted that please somebody helped me with this problem: Aable to load dynamic library ' C:PHP/php_mssql.dll' - The specified modulates could not be found. in Unknown on line 0 php this installed php under a IIS of Windows 2000 advanced server. The variable of php.ini this written of this form: to extension_dir = C:/PHP/ If somebody knows digame please like because really I am well needs this. Thank you very much.
[PHP] What is CLI?
What is CLI that PHP 5 mentioned about? Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] What is CLI? Something about PHP 5 that have it...
[snip] What is CLI? It is something that PHP 5 that have it. [/snip] It is the PHP Command Line Interface http://www.php.net/manual/en/features.commandline.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] What is CLI?
[snip] What is CLI that PHP 5 mentioned about? [/snip] Wait just a second there ace, someone will answer your FIRST post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: varchar size mssql
That's fine. What I was specifically looking for was whether there was some sort of setting I was missing in php.ini, since I know that the database is accepting large text just fine. Thanks for the help, though. I guess I'll scrounge around elsewhere. Jay Blanchard wrote: [snip] The problem is that I want to stick with standard SQL. I would assume that convert() is a MS SQL Server function, and, thus, not standard (will not work in other database formats). Did what you read mention why the data was being truncated? Perhaps if I knew why, then I could fix it. [/snip] Since this is not a PHP issue may I refer you to http://msdn.microsoft.com ? You will find a truckload of information there as well as tons by searching Google for 'Microsoft SQL Server column types' -- 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 does not want recognizes librerias DLL.
Hello, it wanted that please somebody helped me with this problem: Aable to load dynamic library ' C:/PHP/php_mssql.dll' - The specified modulates could not be found. in Unknown on line 0 php this installed php under a IIS of Windows 2000 advanced server. The variable of php.ini this written of this form: to extension_dir = C:/PHP/ If somebody knows diganme please like because really I am well needs this. Thank you very much.
RE: [PHP] Php does not recognize librerias DLL.
Copy this Php mssql.dll from extension catalogue to your Windows-system32 catalogue (if(you are on XP || in systems if you are on NT) If you are on Linux box and trying to get connected with a MSSQL server running on a WinBoX. Cheers Reverand Raja -Original Message- From: German Arango [mailto:[EMAIL PROTECTED] Sent: lunedì 8 marzo 2004 18.18 To: [EMAIL PROTECTED] Subject: [PHP] Php does not recognize librerias DLL. Hello, it wanted that please somebody helped me with this problem: Aable to load dynamic library ' C:PHP/php_mssql.dll' - The specified modulates could not be found. in Unknown on line 0 php this installed php under a IIS of Windows 2000 advanced server. The variable of php.ini this written of this form: to extension_dir = C:/PHP/ If somebody knows digame please like because really I am well needs this. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Php does not recognize librerias DLL.
You need to have the mssql client library also installed on the same computer. German Arango wrote: Hello, it wanted that please somebody helped me with this problem: Aable to load dynamic library ' C:PHP/php_mssql.dll' - The specified modulates could not be found. in Unknown on line 0 php this installed php under a IIS of Windows 2000 advanced server. The variable of php.ini this written of this form: to extension_dir = C:/PHP/ If somebody knows digame please like because really I am well needs this. Thank you very much. -- 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] Re: php/mssql character limit?
Hi Ben, The setting in the php.ini is; mssql.textlimit = 4096 Reset that value to what you want. I have mine set to 400. Valid range 0 - 2147483647 alex hogan -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 10:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: php/mssql character limit? I posted this message the other day, and no one has responded. I'm replying to it to refresh it in the list. I guess if no one responds or helps me out this time, then I'll just forget about it and let my client go unhappy. ;-) Seriously, if anyone can help me out, I would be much appreciative. Ben Ramsey wrote: Anyone know of any kind of character limit in php or mssql (yes, Microsoft SQL Server) for entering long text into a text column (of around 4,055 characters in length--that's where it's cutting off)? -- 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 ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. **
Re: [PHP] Linux tools for PHP
What about Quanta? Anyone use it? And debuggers? APD? XDebug? DBG? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] socket extension documentation ???
Hy... @ all I'm trying to find a better documentation about socket extension in php as on php.net self. does anyone know an another source for me ??? thx regards Jointy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Linux tools for PHP
On Mon, 2004-03-08 at 12:29, Thiago Silva wrote: What about Quanta? LOVE Quanta, been using it for a couple years now -- Brian V Bonini [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Variables inside a function
I am relatively new to PHP. But something I can't seem to make work is when I call one of the functions I have made and a variable is set inside that function eg. function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; } I then echo $blah; somewhere else in the script but nothing is echo'd. How do I make it so that I can use $blah anywhere in the script? Thank you in advance for any help. Nathan Croker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] socket extension documentation ???
http://www.google.com :-) Hemp Cluster wrote: Hy... @ all I'm trying to find a better documentation about socket extension in php as on php.net self. does anyone know an another source for me ??? thx regards Jointy -- 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] Very simple forms processing question
Hi I want to set up a mailing list on a site, and I want a very simple register/deregister facility. So a text field for the email address, then an [add] button and a [remove] button. Now, what I really want is for both [add] and [remove] to be 'submit' type HTML buttons for the same form, but at the destination script I don't know how to tell which button was pressed, and I've a feeling I should only have one submit button. I can do what I want JavaScript, but can I do it just with PHP? Any clues, or am I not being clear? Cheers J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Variables inside a function
[snip] eg. function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; } [/snip] function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; return $blah; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Very simple forms processing question
if you asign a name to your submit button a corresponding element will be created on the $_REQUEST, $_GET or $_POST array whichever you are using eg you should use input type=submit name=submit1 value=click me etc all the best [EMAIL PROTECTED] wrote: Hi I want to set up a mailing list on a site, and I want a very simple register/deregister facility. So a text field for the email address, then an [add] button and a [remove] button. Now, what I really want is for both [add] and [remove] to be 'submit' type HTML buttons for the same form, but at the destination script I don't know how to tell which button was pressed, and I've a feeling I should only have one submit button. I can do what I want JavaScript, but can I do it just with PHP? Any clues, or am I not being clear? Cheers J -- 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] Variables inside a function
Don't you need to set a return? Return $blah; At the bottom of your function block. alex hogan -Original Message- From: Nathan Croker [mailto:[EMAIL PROTECTED] Sent: Sunday, March 07, 2004 6:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Variables inside a function I am relatively new to PHP. But something I can't seem to make work is when I call one of the functions I have made and a variable is set inside that function eg. function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; } I then echo $blah; somewhere else in the script but nothing is echo'd. How do I make it so that I can use $blah anywhere in the script? Thank you in advance for any help. Nathan Croker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. **
Re: [PHP] Re: php/mssql character limit?
That's precisely what I was looking for, Alex! I must have overlooked it when skimming through php.ini. Thanks! Alex Hogan wrote: Hi Ben, The setting in the php.ini is; mssql.textlimit = 4096 Reset that value to what you want. I have mine set to 400. Valid range 0 - 2147483647 alex hogan -- 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] Very simple forms processing question
[snip] I want to set up a mailing list on a site, and I want a very simple register/deregister facility. So a text field for the email address, then an [add] button and a [remove] button. Now, what I really want is for both [add] and [remove] to be 'submit' type HTML buttons for the same form, but at the destination script I don't know how to tell which button was pressed, and I've a feeling I should only have one submit button. I can do what I want JavaScript, but can I do it just with PHP? Any clues, or am I not being clear? [/snip] Use this in your form ... input type=submit value=Add action=add input type=submit value=Delete action=remove in your forms processing use the following switch ($_POST['action'] { case add: ...do add stuff break; case remove: ...do removal break; } See http://www.php.net/switch for more info. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variables inside a function
On Tuesday 09 March 2004 01:44, Alex Hogan wrote: Don't you need to set a return? Return $blah; At the bottom of your function block. That does not make the variable $blah available elsewhere in the program. The OP should take a look at manual Variables Variable scope. -- 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 -- /* Remembering is for those who have forgotten. -- Chinese proverb */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] What is CLI?
Oh I see what you're talking about now... Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Variables inside a function
If I read his post correctly he was looking to make blah() available and not $blah. In my mind that meant that he would be calling his function named blah not the variable. Then if he called the function blah he would get the value of $blah inside his function. Of course obviously being one of the OP you refer to I have read the manual Variables Variable scope. In this case I don't see how it related to his post, even though he stated that he was trying to echo $blah One of those letter of the law vs intent of the law sort of things. But thanks for the condensintion..., maybe I can return the favor sometime. alex hogan -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 11:49 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variables inside a function On Tuesday 09 March 2004 01:44, Alex Hogan wrote: Don't you need to set a return? Return $blah; At the bottom of your function block. That does not make the variable $blah available elsewhere in the program. The OP should take a look at manual Variables Variable scope. -- 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 -- /* Remembering is for those who have forgotten. -- Chinese proverb */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. **
RE: [PHP] Variables inside a function
[snip] I then echo $blah; somewhere else in the script but nothing is echo'd. How do I make it so that I can use $blah anywhere in the script? [/snip] I went back and re-read the post, and his question above is the important one First you must return something from the function, then you must assign the returned data to a variable... long-hand function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; return $blah; } $dork = blah($foo, $bar); $dork is now the value of the returned $blah and $dork may be used with the value over and over until it is re-written or over-written -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variables inside a function
On Tuesday 09 March 2004 02:03, Alex Hogan wrote: If I read his post correctly he was looking to make blah() available and not $blah. The OP says so that I can use $blah anywhere in the script?, which to me means that $blah needs to be global ... [snip] Of course obviously being one of the OP you refer to I have read the manual (OP doesn't mean you) Variables Variable scope. ... hence the referral to the manual. In this case I don't see how it related to his post, even though he stated that he was trying to echo $blah According to what he stated he was trying to do it is very relevant. One of those letter of the law vs intent of the law sort of things. Maybe. But thanks for the condensintion..., I'm sorry if you interpreted my terseness as being condescending -- note the spelling (*now* I'm being condescending!). maybe I can return the favor sometime. TIA ;) -- 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 -- /* Consultation, n.: Medical term meaning to share the wealth. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 500 Internal Server Error.
Hi all, I've this problem when I use a script. This is the error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. I've controlled all the script but I don't find the problem.For a real time test this is the url: www.automationsoft.biz/crivello.php can anyone help me about this questions? Thanks in advance Francesco [EMAIL PROTECTED]
Re: [PHP] PHP support C++?
On Monday 08 March 2004 07:03 am, Kenneth wrote: Hi all, Does PHP support C++ language? If yes, how can it be converted? you can write an extensions, which is actually rather easy to do. There's an article at http://bugs.tutorbuddy.com/phpcpp/phpcpp/ that claims to tell you how to use c++ (rather than c), but I can't vouch it- never tried it. The case is, I've use C++ to make a function (to get data from file and convert it from char type to int type), how can i import the function/variables and use it in PHP? Sounds like a really simple function. Why not just rewrite in in PHP? Thanks, Kenneth -- Evan Nemerson [EMAIL PROTECTED] http://coeusgroup.com/en -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php debug
On Monday 08 March 2004 07:31 am, Doug Dalton wrote: I am getting an error in php that is causing a core dump : (gdb) core php.core Core was generated by `php'. Program terminated with signal 11, Segmentation fault. #0 0x00686264 in ?? () The program is a script and is working fine until, my assumption is that it exhausts resources and crashes, does anyone have a suggestion on how to debug a problem of this sort? segfaults are usually because the application is trying to read or write to memory it shouldn't be. If you e-mail me reproducing code, I'll take a look at it. Try to get it down to as few lines of possible. -- Evan Nemerson [EMAIL PROTECTED] http://coeusgroup.com/en -- If you would be a real seeker after truth, you must at least once in your life doubt, as far as possible, all things. -Rene Descartes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compiling PHP classes/libraries to objects
On Monday 08 March 2004 04:44 pm, Tariq Murtaza wrote: Hi All Is there any way to use compiled form of libraries/classes in PHP. Comments please... http://turck-mmcache.sourceforge.net/ Regards, Tariq -- Evan Nemerson [EMAIL PROTECTED] http://coeusgroup.com/en -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 500 Internal Server Error.
Hello francesco, Monday, March 8, 2004, 6:26:03 PM, you wrote: fab I've controlled all the script but I don't find the fab problem.For a real time test this is the url: fab www.automationsoft.biz/crivello.php can anyone help me about this fab questions? It is impossible to help without knowing more about the nature of the problem. What version of PHP are you running? What does the script do, what OS/server is it hosted on, etc? At least give us something to help you out - a 500 Internal Server Error could be caused by any one of a probably infinite variety of things. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 500 Internal Server Error.
Hi all, I've this problem when I use a script. This is the error: Internal Server Error Tail your error_log for more information - a 500 status code could mean pretty anything. - 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
RE: [PHP] Variables inside a function
My mistake. Good one on the spelling I can't believe I missed that one alex hogan -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 12:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variables inside a function On Tuesday 09 March 2004 02:03, Alex Hogan wrote: If I read his post correctly he was looking to make blah() available and not $blah. The OP says so that I can use $blah anywhere in the script?, which to me means that $blah needs to be global ... [snip] Of course obviously being one of the OP you refer to I have read the manual (OP doesn't mean you) Variables Variable scope. ... hence the referral to the manual. In this case I don't see how it related to his post, even though he stated that he was trying to echo $blah According to what he stated he was trying to do it is very relevant. One of those letter of the law vs intent of the law sort of things. Maybe. But thanks for the condensintion..., I'm sorry if you interpreted my terseness as being condescending -- note the spelling (*now* I'm being condescending!). maybe I can return the favor sometime. TIA ;) -- 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 -- /* Consultation, n.: Medical term meaning to share the wealth. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. **
[PHP] Disowning apache processes
I am writing a control panel for a gamehost using PHP, which calls a bash script (which wraps around another) to control game servers Right now once the bash scripts are running the PHP script that called them is unavailable for any more users, and if apache is restarted the bash script is killed Is it possible to do as I want using PHP? Here's the code so far: [the php file] case start: exec('bash -c exec nohup ./run2 /dev/null 21 '); [run2 - bash] #!/bin/sh nohup /home/clanbase/cbrun echo $! /home/clanbase/script.pid [cbrun - bash] #!/bin/sh if [ -z $(pidof cbmohaa) ] then nohup /home/clanbase/MOHAA/./cbmohaa +set net_ip 82.136.18.132 +set net_port 12208 +exec server.cfg /dev/null 21 echo $! /home/clanbase/server.pid fi nohup sleep 15 exec $0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Disowning apache processes
I am writing a control panel for a gamehost using PHP, which calls a bash script (which wraps around another) to control game servers Right now once the bash scripts are running the PHP script that called them is unavailable for any more users, and if apache is restarted the bash script is killed You may want to investigate the (currently) experimental PCNTL extension in PHP - it provides support for forking, which is the usual way to handle daemons like this. Another option is to simply write a daemon, and pass commands to it via a socket or spawn new instances upon request. This should be fairly easy using Perl, and it allows you to decouple your webserver from the inner workings of your game host, and have leaner forked processes (no need to have the full overhead of an apache child process to run a game host, I assume). Here's the code so far: [the php file] case start: exec('bash -c exec nohup ./run2 /dev/null 21 '); I think the trivial fix here is to stick that last '' outside the '', so that the bash process drops into the background. - 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] Question on data loading
Hi, I'm currently designing a website with a catalogue containing lots of products (more than 1000). To reduce response time to database, I want to know if there is a solution like loading all objects in memory for all users like a servlet could do in java and after giving to each people connected to website a way of accessing this shared memory ? I'm interested in any solution, thx Marc.
[PHP] Very, very wiered problem
Hi, I have this site at http://www.dte.ua.pt/ticct I don't know why, but it has a very strange behaviour. If you visit it and make a few reloads or browse through the site you'll see that *randomly* it shows only a blank page or an error saying it cannot find file whatever_file.php although it's there. I'm running SuSE 9, with a compiled Apache 1.3.29, PHP 4.3.4, and MySQL 3.23.28 Can it be SuSE's compiler the source of the problem ? It's random character makes it so difficult to debug :-( Any ideas would be apreciated. Warm Regards, Mário Gamito smime.p7s Description: S/MIME cryptographic signature
Re: [PHP] Re: php/mssql character limit?
Ben Ramsey wrote: Anyone know of any kind of character limit in php or mssql (yes, Microsoft SQL Server) for entering long text into a text column (of around 4,055 characters in length--that's where it's cutting off)? Have a look in php.ini - IIRC there are 2 options that affect this. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Mail Function
Will wrote: My sendmail_from is as follows: sendmail_from = [EMAIL PROTECTED] Did you restart Apache (assuming you're using the module) after making this change? -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Question on data loading
I think your best bet is to only show product titles, and possibly a bit of the summary or something in the catalogue, then have the user click the product to view full information on it. this takes 2 db calls, one to load the limited info of all products, and one to load all info on one product. I think if you get into servlets and such, your going to run up other resource problems for the sake of saving very little. Jason marc serra [EMAIL PROTECTED] wrote: Hi, I'm currently designing a website with a catalogue containing lots of products (more than 1000). To reduce response time to database, I want to know if there is a solution like loading all objects in memory for all users like a servlet could do in java and after giving to each people connected to website a way of accessing this shared memory ? I'm interested in any solution, thx Marc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Very, very wiered problem
Hey, I dont really know the cause of your problem but I would put in a bunch of echo statements to pin down the area where you are getting the random char, then you could go in and debug a bit more easily. HTH. Cheers, -Ryan On 3/8/2004 10:15:47 PM, Mário Gamito ([EMAIL PROTECTED]) wrote: Hi, I have this site at http://www.dte.ua.pt/ticct I don't know why, but it has a very strange behaviour. If you visit it and make a few reloads or browse through the site you'll see that *randomly* it shows only a blank page or an error saying it cannot find file whatever_file.php although it's there. I'm running SuSE 9, with a compiled Apache 1.3.29, PHP 4.3.4, and MySQL 3.23.28 Can it be SuSE's compiler the source of the problem ? It's random character makes it so difficult to debug :-( Any ideas would be apreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Very, very wiered problem
I've run into a similar problem before and it seems like the problem was with permissions on the file. You may want to double check those. Brian - Original Message - From: Ryan A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, March 08, 2004 4:43 PM Subject: Re: [PHP] Very, very wiered problem Hey, I dont really know the cause of your problem but I would put in a bunch of echo statements to pin down the area where you are getting the random char, then you could go in and debug a bit more easily. HTH. Cheers, -Ryan On 3/8/2004 10:15:47 PM, Mário Gamito ([EMAIL PROTECTED]) wrote: Hi, I have this site at http://www.dte.ua.pt/ticct I don't know why, but it has a very strange behaviour. If you visit it and make a few reloads or browse through the site you'll see that *randomly* it shows only a blank page or an error saying it cannot find file whatever_file.php although it's there. I'm running SuSE 9, with a compiled Apache 1.3.29, PHP 4.3.4, and MySQL 3.23.28 Can it be SuSE's compiler the source of the problem ? It's random character makes it so difficult to debug :-( Any ideas would be apreciated. Warm Regards, Mário Gamito -- 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] new session in new window
Hi all, I am programming an interface using PHP and rely on sessions to keep state. What I want to be able to do is to open a new window from my application that has a new session, without disturbing the current session. I know that I can kill the current session and start a new one, but that's not what I want to do. When I launch a new window, it keeps the same session as the one that it was launched from. If I kill the session in that new window, then it kills the old sessino too... Any suggestions ??? Thanks, Tim. SimpleNet's Back ! http://www.simplenet.com/