php-general Digest 16 Mar 2007 12:15:22 -0000 Issue 4680
php-general Digest 16 Mar 2007 12:15:22 - Issue 4680 Topics (messages 250696 through 250704): Re: DOMXPath-Query, quotes and apostrophes 250696 by: Adam Randall php - web service (ajax/jscript) 250697 by: bruce 250700 by: Haydar Tuna php bar/graph scripts/library 250698 by: Ron Croonenberg 250701 by: Tijnema ! 250702 by: Shafiq Rehman 250703 by: Mikey Re: LAMP Opportunity 250699 by: Nobody Special References challenge with PHP4 250704 by: Lluis Pamies 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: php-general@lists.php.net -- ---BeginMessage--- I seem to be hitting a wall here. I have the need to run an XPath query on strings that may contain quotes, apostrophes or both. Going through google turned up some interesting information, but nothing that solved my issue. An example of what I am trying to do is as follows: $query = '\'foobar'; $xpath-query('/[EMAIL PROTECTED]'.$query.']')-item(0); This produces these warnings and errors: Warning: DOMXPath::query() [function.DOMXPath-query]: Invalid predicate Warning: DOMXPath::query() [function.DOMXPath-query]: Invalid expression Fatal error: Call to a member function item() on a non-object I've tried to escape the characters in the query, but that seems to be illegal for XPath from what I've read. I've tried turning the quotes into quot; and apostrophes into apos; but it appears that XPath requires that the data be unencoded to work. I've seen reference to using XSLT to set XPath variables instead, but I don't understand how to do implement this. I would really appreciate any examples on what people have done to get around this issue, if any one has at all. Regards, Adam. -- Adam Randall [EMAIL PROTECTED] (206) 285-8080 100 West Harrison North Tower, Suite 300 Seattle, WA 98119 Engineers like to solve problems. If there are no problems handily available, they will create their own problems. - Dilbert ---End Message--- ---BeginMessage--- Hi I'm trying to find information with regards to how to create/implement a test web services app. I'm trying to find pointers to anyone who's actually created this kind of functionality, or pointers to web sites where I can find the information I'm looking for. For my test, App1 has the web service, and provides the jscript/ajax code to the 3rd Party, for use on the Test App. I'm trying to find php code for the apps on the web servers as well as test php code for the api on the Master Server. I'm also trying to get/find a test situation that provides test client code (jscript/ajax) to be implemented on the test server/app. Assume: Master Server3rd Party Server (separate domain) App1 Test App API File (aa.js) (from Master Server) JScript (aa.js) ---^ The aa.js file allows the 3rd party client site to be able to interface with the Master Server API via the API/services defined in the API File. I'm envisioning the following actions for the user 3rd Party Site Master Server -User Enters Name api checks/verifies name -gets response Master Server returns response -user answers question based on response, sends response to master server via api api checks user input -gets response Master Server returns response -jscript then gives reply/response to the 3rd Party site, allowing the site/app to continue processing In this case, the jscript/ajax app is really only communicating with the Master Server, which if I understand it correctly would be in the same domain as the ajax/jscript code. In other words, if the master server supplies the jscript file(s) for the jscript that's to be run on the 3rd party server, then any communication that's initiated from the jscript is going back to the master server. There shouldn't be a cross domain issue? Yes/No??? So, anyone who's actually implemented a real live web service, that's willing to talk to me would be helpful, or if you can point me to sample docs/code... Thanks -bruce ---End Message--- ---BeginMessage--- Hello, Have you ever use nuSOAP libarary? You can connect any web service or create your own service. If you connect to MS Web Service with digest authentication, you will face to problems. I think MS add extra header information them web services. But you can connect java web services easily. You can find any information about nuSOAP in the http://sourceforge.net/projects/nusoap/ web site:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department
[PHP] Re: php - web service (ajax/jscript)
Hello, Have you ever use nuSOAP libarary? You can connect any web service or create your own service. If you connect to MS Web Service with digest authentication, you will face to problems. I think MS add extra header information them web services. But you can connect java web services easily. You can find any information about nuSOAP in the http://sourceforge.net/projects/nusoap/ web site:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net bruce [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I'm trying to find information with regards to how to create/implement a test web services app. I'm trying to find pointers to anyone who's actually created this kind of functionality, or pointers to web sites where I can find the information I'm looking for. For my test, App1 has the web service, and provides the jscript/ajax code to the 3rd Party, for use on the Test App. I'm trying to find php code for the apps on the web servers as well as test php code for the api on the Master Server. I'm also trying to get/find a test situation that provides test client code (jscript/ajax) to be implemented on the test server/app. Assume: Master Server3rd Party Server (separate domain) App1 Test App API File (aa.js) (from Master Server) JScript (aa.js) ---^ The aa.js file allows the 3rd party client site to be able to interface with the Master Server API via the API/services defined in the API File. I'm envisioning the following actions for the user 3rd Party Site Master Server -User Enters Name api checks/verifies name -gets response Master Server returns response -user answers question based on response, sends response to master server via api api checks user input -gets response Master Server returns response -jscript then gives reply/response to the 3rd Party site, allowing the site/app to continue processing In this case, the jscript/ajax app is really only communicating with the Master Server, which if I understand it correctly would be in the same domain as the ajax/jscript code. In other words, if the master server supplies the jscript file(s) for the jscript that's to be run on the 3rd party server, then any communication that's initiated from the jscript is going back to the master server. There shouldn't be a cross domain issue? Yes/No??? So, anyone who's actually implemented a real live web service, that's willing to talk to me would be helpful, or if you can point me to sample docs/code... Thanks -bruce -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php bar/graph scripts/library
On 3/16/07, Ron Croonenberg [EMAIL PROTECTED] wrote: hello all, I am looking for some scripts/libraries etc to produce some bar graphs etc. Does anyone know of something nice (that works on Linux) thanks, Ron If i understand you correctly you want to have a moving progress bar? If so, it is NOT possible with PHP, because PHP is server side, and making that thing move should be done on client side (Javascript). If you don't want to let it move, it is nothing more then just displaying a picture of a bar :) Tijnema -- 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] php bar/graph scripts/library
Hello, You can create graphs with Flash. Here is the link http://www.maani.us/charts/index.php Alternately you can also use JPGraph: http://www.aditus.nu/jpgraph/ -- Shafiq Rehman (ZCE) http://phpgurru.com | http://shafiq.pk On 3/16/07, Tijnema ! [EMAIL PROTECTED] wrote: On 3/16/07, Ron Croonenberg [EMAIL PROTECTED] wrote: hello all, I am looking for some scripts/libraries etc to produce some bar graphs etc. Does anyone know of something nice (that works on Linux) thanks, Ron If i understand you correctly you want to have a moving progress bar? If so, it is NOT possible with PHP, because PHP is server side, and making that thing move should be done on client side (Javascript). If you don't want to let it move, it is nothing more then just displaying a picture of a bar :) Tijnema -- 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: php bar/graph scripts/library
Ron Croonenberg wrote: hello all, I am looking for some scripts/libraries etc to produce some bar graphs etc. Does anyone know of something nice (that works on Linux) thanks, Ron You really should try STFW first: http://www.google.co.uk/search?hl=enq=php+graphsmeta= A lot of what you are looking for on the first page... Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] References challenge with PHP4
I've the following code: 1 ?php 2 3 class B { 4 function B($a) { 5 $this-a = $a; 6 } 7 8 function run() { 9 print {$this-a-msg}\n; 10 } 11 } 12 13 class A { 14 function A() { 15 $this-b = new B($this); 16 } 17 18 function getInstance() { 19 static $inst; 20 if(!isset($inst)) $inst = new A(); 21 return $inst; 22 } 23 24 function run() { 25 $this-b-run(); 26 } 27 } 28 29 $a = A::getInstance(); 30 $a-msg = Hello world !; 31 32 // Some tasks, flow control, scope changes, ... 33 34 $a = A::getInstance(); 35 print {$a-msg}\n; // This should print Hello world ! 36 $a-run(); // This should print Hello world ! 37 38 ? My problem is that I don't know what I need to do in order to print the same value in lines 35 and 36. Line 35 prints Hello world !, but in the 36 nothing appears. What I'm doing wrong ? Thanks for all ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php bar/graph scripts/library
Ron Croonenberg escreveu: hello all, I am looking for some scripts/libraries etc to produce some bar graphs etc. Does anyone know of something nice (that works on Linux) thanks, Ron -- The origins, http://www.aditus.nu/jpgraph/jpdownload.php -- zerof http://www.educar.pro.br/ Apache - PHP - MySQL - Boolean Logics - Project Management -- Você deve, sempre, consultar uma segunda opinião! -- Deixe todos saberem se esta informação foi-lhe útil. -- You must hear, always, one second opinion! In all cases. -- Let the people know if this info was useful for you! -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php bar/graph scripts/library
On Mar 15, 2007, at 10:07 PM, Ron Croonenberg wrote: hello all, I am looking for some scripts/libraries etc to produce some bar graphs etc. Does anyone know of something nice (that works on Linux) There is a graphing library in PEAR called Image Graph that you could check out. erik jones [EMAIL PROTECTED] sofware developer 615-296-0838 emma(r)
[PHP] CONTENT-type for sending HTML attachments
Hi guys. Im using the HTML Mime Mail http://www.phpguru.org/static/mime.mail.html class from phpguru.org. Anyway I've written a few scripts that use the class to attach files to it. These files are HTML reports but Im not sure what MIME content-type to use. The content type I use to for the attachments is text/html. But Im not sure that the content type for the email itself should be plain/text as this just displays the HTML attachment as garbage in the body text. Please could anyone advise, what the content type should be. Thanks, Kind regards Angelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cannot load mysql extension - PHP Installation on Vista/Apache
Ok, this didn't work for me. I replaced the libmySQL.dll in my php installation with the one in my mySQL Server installation. Still getting the same : cannot load mysql extension, please check PHP Configuration I can't figure for the life of me why mySQL extension won't work with PHP just because I'm running Vista. Never had this problem ever before. Anyone?!? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/14/07 9:54 AM, Richard Davey [EMAIL PROTECTED] wrote: Rahul Sitaram Johari wrote: 'cannot load mysql extension, please check PHP Configuration'. I¹ve installed PHP on XP computers hundreds of times, so I¹m not exactly a newbie to this, but I¹m not sure if it¹s Vista causing the problem or I¹m doing something wrong. Which MySQL extension are you using? The native mysql or mysqli? I had to copy the libMySQL.dll file that is installed when you install MySQL 5 over the top of the one in the PHP 5 installation directory before it would work for me on Vista Home Premium. I.e. I copied this: C:\Program Files\MySQL\MySQL Server 5.0\bin\libmySQL.dll to here: C:\PHP\php-5.2.1-Win32 replacing the one that existed already. Cheers, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CONTENT-type for sending HTML attachments
On 3/16/07, Angelo Zanetti [EMAIL PROTECTED] wrote: Hi guys. Im using the HTML Mime Mail http://www.phpguru.org/static/mime.mail.html class from phpguru.org. Anyway I've written a few scripts that use the class to attach files to it. These files are HTML reports but Im not sure what MIME content-type to use. The content type I use to for the attachments is text/html. But Im not sure that the content type for the email itself should be plain/text as this just displays the HTML attachment as garbage in the body text. Please could anyone advise, what the content type should be. Thanks, Kind regards Angelo AFAIK html has the text/html mime-type. Tijnema -- 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] Job Opportunity
I pay also $500 for referrals. Thanks :) Title: Lamp Developer Skills: Linux, Apache, MySQL, php/perl/python, unix Date: 3-15-2007 Location: New York, NY Area code: 212 Tax term: FULLTIME CON_IND CON_W2 CON_HIRE_IND CON_HIRE_W2 Pay rate: $70 Length: 6-12 months Position ID:lamp Job description: Prestigious Online NY Based News Paper is seeking a solid *LAMP (see definition of LAMP below) developer to work as part of A team to architect and build the software that helps the online newspaper function as a site with an unparalleled combination of scale and complexity. The successful candidate is enthusiastic about building out the content offerings and dynamic features of the site and has done significant web programming in the Unix environment. Responsibilities: * * Writing application and related database objects to enable users* * dynamic interaction with the web site * Integrating a diverse set of data sources including related databases, search engines, and XML data * Integrating feeds from 3rd parties into the nytimes.com content management system The ideal candidate must have high standards with regard to the finished product and must be concerned about the quality and maintainability of the underlying software. In addition, the ideal candidate possess the ability to design systems, communicate and work effectively with others, write scalable and high quality code, and deliver work on schedule. Necessary skills: * B.S./B.A. in Computer Science or a degree in a related field plus Computer Science coursework * 3-6 years web development work experience * Unix proficiency * Experience with one or more scripting languages such as Perl, PHP and Python * Strong working knowledge of RDBMS, SQL and basic database optimization concepts * Experience working with XML, XSL, XPath * Comfort with Regular Expressions * Ability to communicate effectively with business side clients to gather and translate functional specs * Working knowledge of HTML, Javascript * Experience working as part of a team * Strong verbal and written communication skills Desired skills: * Formal software development methodology * Experience writing shared and reusable components of code * Experience designing and tuning applications that can scale * Some background in a structured programming language, such as Java or C/C++ * Oracle-specific SQL, PL/SQL * Use of source control *Short for Linux, Apache, MySQL and PHP, an open-source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the RDBMS and PHP as the object-oriented scripting language. Perl or Python is often substituted for PHP. LAMP has become a de facto development standard. _ Efrain Sarmiento Technical Recruiter MISI company p: 212.355.5585 x332 f: 212.751.5964 c: 917.365.5656 [EMAIL PROTECTED] Informed Usability | Innovative Solutions | Reliable Sourcing www.misicompany.com http://www.misicompany.com/ _ The information contained in this message is sent in the strictest confidence for the addressee only. It is intended only for the use of the addressee and may contain legally privileged/confidential/proprietary information. If you have received this email in error you are requested to preserve its confidentiality and advise the sender. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] a php stats package
Can someone recommend one please? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Job Opportunity
Efrain Sarmiento wrote: I pay also $500 for referrals. out of interest do you also arrange finance greencards, relocation, etc? given that this list is not specific to NY or even the US. Thanks :) Title:Lamp Developer Skills: Linux, Apache, MySQL, php/perl/python, unix Date: 3-15-2007 Location: New York, NY Area code:212 Tax term: FULLTIME CON_IND CON_W2 CON_HIRE_IND CON_HIRE_W2 Pay rate: $70 Length: 6-12 months Position ID: lamp Job description: Prestigious Online NY Based News Paper is seeking a solid *LAMP (see definition of LAMP below) developer to work as part of A team to architect and build the software that helps the online newspaper function as a site with an unparalleled combination of scale and complexity. The successful candidate is enthusiastic about building out the content offerings and dynamic features of the site and has done significant web programming in the Unix environment. Responsibilities: * * Writing application and related database objects to enable users* * dynamic interaction with the web site * Integrating a diverse set of data sources including related databases, search engines, and XML data * Integrating feeds from 3rd parties into the nytimes.com content management system The ideal candidate must have high standards with regard to the finished product and must be concerned about the quality and maintainability of the underlying software. In addition, the ideal candidate possess the ability to design systems, communicate and work effectively with others, write scalable and high quality code, and deliver work on schedule. Necessary skills: * B.S./B.A. in Computer Science or a degree in a related field plus Computer Science coursework * 3-6 years web development work experience * Unix proficiency * Experience with one or more scripting languages such as Perl, PHP and Python * Strong working knowledge of RDBMS, SQL and basic database optimization concepts * Experience working with XML, XSL, XPath * Comfort with Regular Expressions * Ability to communicate effectively with business side clients to gather and translate functional specs * Working knowledge of HTML, Javascript * Experience working as part of a team * Strong verbal and written communication skills Desired skills: * Formal software development methodology * Experience writing shared and reusable components of code * Experience designing and tuning applications that can scale * Some background in a structured programming language, such as Java or C/C++ * Oracle-specific SQL, PL/SQL * Use of source control *Short for Linux, Apache, MySQL and PHP, an open-source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the RDBMS and PHP as the object-oriented scripting language. Perl or Python is often substituted for PHP. LAMP has become a de facto development standard. _ Efrain Sarmiento Technical Recruiter MISI company p: 212.355.5585 x332 f: 212.751.5964 c: 917.365.5656 [EMAIL PROTECTED] Informed Usability | Innovative Solutions | Reliable Sourcing www.misicompany.com http://www.misicompany.com/ _ The information contained in this message is sent in the strictest confidence for the addressee only. It is intended only for the use of the addressee and may contain legally privileged/confidential/proprietary information. If you have received this email in error you are requested to preserve its confidentiality and advise the sender. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Job Opportunity
For the right candidate yes. _ Efrain Sarmiento Technical Recruiter MISI company p: 212.355.5585 x332 f: 212.751.5964 c: 917.365.5656 [EMAIL PROTECTED] Informed Usability | Innovative Solutions | Reliable Sourcing www.misicompany.com _ The information contained in this message is sent in the strictest confidence for the addressee only. It is intended only for the use of the addressee and may contain legally privileged/confidential/proprietary information. If you have received this email in error you are requested to preserve its confidentiality and advise the sender. -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Friday, March 16, 2007 12:02 PM To: Efrain Sarmiento Cc: php-general@lists.php.net Subject: Re: [PHP] Job Opportunity Efrain Sarmiento wrote: I pay also $500 for referrals. out of interest do you also arrange finance greencards, relocation, etc? given that this list is not specific to NY or even the US. Thanks :) Title:Lamp Developer Skills: Linux, Apache, MySQL, php/perl/python, unix Date: 3-15-2007 Location: New York, NY Area code:212 Tax term: FULLTIME CON_IND CON_W2 CON_HIRE_IND CON_HIRE_W2 Pay rate: $70 Length: 6-12 months Position ID: lamp Job description: Prestigious Online NY Based News Paper is seeking a solid *LAMP (see definition of LAMP below) developer to work as part of A team to architect and build the software that helps the online newspaper function as a site with an unparalleled combination of scale and complexity. The successful candidate is enthusiastic about building out the content offerings and dynamic features of the site and has done significant web programming in the Unix environment. Responsibilities: * * Writing application and related database objects to enable users* * dynamic interaction with the web site * Integrating a diverse set of data sources including related databases, search engines, and XML data * Integrating feeds from 3rd parties into the nytimes.com content management system The ideal candidate must have high standards with regard to the finished product and must be concerned about the quality and maintainability of the underlying software. In addition, the ideal candidate possess the ability to design systems, communicate and work effectively with others, write scalable and high quality code, and deliver work on schedule. Necessary skills: * B.S./B.A. in Computer Science or a degree in a related field plus Computer Science coursework * 3-6 years web development work experience * Unix proficiency * Experience with one or more scripting languages such as Perl, PHP and Python * Strong working knowledge of RDBMS, SQL and basic database optimization concepts * Experience working with XML, XSL, XPath * Comfort with Regular Expressions * Ability to communicate effectively with business side clients to gather and translate functional specs * Working knowledge of HTML, Javascript * Experience working as part of a team * Strong verbal and written communication skills Desired skills: * Formal software development methodology * Experience writing shared and reusable components of code * Experience designing and tuning applications that can scale * Some background in a structured programming language, such as Java or C/C++ * Oracle-specific SQL, PL/SQL * Use of source control *Short for Linux, Apache, MySQL and PHP, an open-source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the RDBMS and PHP as the object-oriented scripting language. Perl or Python is often substituted for PHP. LAMP has become a de facto development standard. _ Efrain Sarmiento Technical Recruiter MISI company p: 212.355.5585 x332 f: 212.751.5964 c: 917.365.5656 [EMAIL PROTECTED] Informed Usability | Innovative Solutions | Reliable Sourcing www.misicompany.com http://www.misicompany.com/ _ The information contained in this message is sent in the strictest confidence for the addressee only. It is intended only for the use of the addressee and may contain legally privileged/confidential/proprietary information. If you have received this email in error you are requested to preserve its confidentiality and advise the sender. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] a php stats package
What kind of stats are you looking for? On Mar 16, 2007, at 10:57 AM, Ross wrote: Can someone recommend one please? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php erik jones [EMAIL PROTECTED] software developer 615-296-0838 emma(r)
Re: [PHP] a php stats package
Check out Mint @ http://www.haveamint.com/, sounds like it's exactly what you're looking for. It does cost 30USD, but it'll be worth it. Otherwise, if you want to roll your own, check out Cacti @ http:// cacti.net/ which is free but would require a bit more work on your part which should hopefully make the 30USD pricetag on Mint seem pretty attractive. p.s. It's a good idea to make sure you cc the list when replying to people's posts (just use your email client's 'Reply All' feature) so that others can see the answers and discussions. On Mar 16, 2007, at 11:11 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Sorry web stats, unique hits, referers all that kind of info. R. - Original Message - From: Erik Jones To: Ross Cc: php-general@lists.php.net Sent: Friday, March 16, 2007 4:10 PM Subject: Re: [PHP] a php stats package What kind of stats are you looking for? On Mar 16, 2007, at 10:57 AM, Ross wrote: Can someone recommend one please? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php erik jones [EMAIL PROTECTED] software developer 615-296-0838 emma(r) erik jones [EMAIL PROTECTED] software developer 615-296-0838 emma(r)
Re: [PHP] My help with adding captcha
In news: [EMAIL PROTECTED], Chris said: Joker7 wrote: Hi- as you know I have been working on adding a captcha image to my guestbook. Well I have managed to get a very basic one working ;) but !I have been trying to get one that would make it more easy to use ,I have it working until I add it to my form. My form use's print see below and I need to add this to it: img style=vertical-align: middle src=?php echo captchaImgUrl()?nbsp;nbsp;input name=captcha size=8/ a href=?php echo captchaWavUrl()?Listen To This/a And what happens when you try? There's nothing in that snippet that shows an error (missing a semi-colon won't stop it printing as Tijnema suggested). -- Postgresql php tutorials http://www.designmagick.com/ When it prints it will print http://site.com/?php echocaptchaImgUrl()? a href=site.com/?php echo captchaWavUrl()? and not the link formate as below. img style=vertical-align: middle src=?captchaimg=1captchasalt=1769934 a href=?captchawav=1captchasalt=1769934 I hope I have made my self clear. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] form not submitting inofrmation
I have a form on my website, that used to work, but I just realized that now it doesn't. You don't get any errors, but I am not receiving an email with the information after the submittal. The form is located at http://www.inspired-evolution.com/Contact.php and the PHP is: [php] ?php include(emailval.php); $site_name = Inspired-Evolution.com; $site_owner_email = [EMAIL PROTECTED]; $your_domain = www.inspired-evolution.com; $current_url = $_SERVER['REQUEST_URI']; $submit = $_REQUEST['submit']; if(isset($submit)){ $name = $_REQUEST['name']; $flizzum_flazzum = $_REQUEST['flizzum_flazzum']; $subject = $_REQUEST['subject']; $msg = $_REQUEST['msg']; if(strlen($name) 2){ $name_warn = true; } if (MailVal($flizzum_flazzum, 2)){ $email_warn = true; } if(strlen($msg) 2){ $msg_warn = true; } if (preg_match(/$your_domain/i, $flizzum_flazzum)) { $bogus_warn = true; } if((!isset($name_warn)) (!isset($email_warn)) (!isset($bogus_warn)) (!isset($msg_warn))){ // headers for the email listed below $headers .= From: $name $flizzum_flazzum\n; // your email client will show the person's email address like normal $headers .= Content-Type: text/plain; charset=iso-8859-1\n; // sets the mime type $recipient = [EMAIL PROTECTED]; $subject = Contact From $site_name - $subject; // this is the subject of the email $msg = wordwrap( $msg, 1024 ); mail($recipient, $subject, stripslashes($msg), $headers); // the mail() function sends the message to you // if everything is OK, print a thanks message print(h3 class='thanks' Hola $name, Thanks for getting in touch!/h3 pWe have received your e-mail and will respond at em$flizzum_flazzum/em/p/div); exit; } } ? [/php] emailval.php is [php] ?php // hardcore e-mail validation function MailVal($Addr, $Level, $Timeout = 15000) { // Valid Top-Level Domains $gTLDs = com:net:org:edu:gov:mil:int:arpa:; $CCs = ad:ae:af:ag:ai:al:am:an:ao:aq:ar:as:at:au:aw:az:ba:bb:bd:be:bf:. bg:bh:bi:bj:bm:bn:bo:br:bs:bt:bv:bw:by:bz:ca:cc:cf:cd:cg:ch:ci:. ck:cl:cm:cn:co:cr:cs:cu:cv:cx:cy:cz:de:dj:dk:dm:do:dz:ec:ee:eg:. eh:er:es:et:fi:fj:fk:fm:fo:fr:fx:ga:gb:gd:ge:gf:gh:gi:gl:gm:gn:. gp:gq:gr:gs:gt:gu:gw:gy:hk:hm:hn:hr:ht:hu:id:ie:il:in:io:iq:ir:. is:it:jm:jo:jp:ke:kg:kh:ki:km:kn:kp:kr:kw:ky:kz:la:lb:lc:li:lk:. lr:ls:lt:lu:lv:ly:ma:mc:md:mg:mh:mk:ml:mm:mn:mo:mp:mq:mr:ms:mt:. mu:mv:mw:mx:my:mz:na:nc:ne:nf:ng:ni:nl:no:np:nr:nt:nu:nz:om:pa:. pe:pf:pg:ph:pk:pl:pm:pn:pr:pt:pw:py:qa:re:ro:ru:rw:sa:sb:sc:sd:. se:sg:sh:si:sj:sk:sl:sm:sn:so:sr:st:su:sv:sy:sz:tc:td:tf:tg:th:. tj:tk:tm:tn:to:tp:tr:tt:tv:tw:tz:ua:ug:uk:um:us:uy:uz:va:vc:ve:. vg:vi:vn:vu:wf:ws:ye:yt:yu:za:zm:zr:zw:; // The countries can have their own 'TLDs', e.g. mydomain.com.au $cTLDs = com:net:org:edu:gov:mil:co:ne:or:ed:go:mi:; $fail = 0; // Shift the address to lowercase to simplify checking $Addr = strtolower($Addr); // Split the Address into user and domain parts $UD = explode(@, $Addr); if (sizeof($UD) != 2 || !$UD[0]) $fail = 1; // Split the domain part into its Levels $Levels = explode(., $UD[1]); $sLevels = sizeof($Levels); if ($sLevels 2) $fail = 1; // Get the TLD, strip off trailing ] } ) and check the length $tld = $Levels[$sLevels-1]; $tld = ereg_replace([)}]$|]$, , $tld); if (strlen($tld) 2 || strlen($tld) 3 $tld != arpa) $fail = 1; $Level--; // If the string after the last dot isn't in the generic TLDs or country codes, it's invalid. if ($Level !$fail) { $Level--; if (!ereg($tld.:, $gTLDs) !ereg($tld.:, $CCs)) $fail = 2; } // If it's a country code, check for a country TLD; add on the domain name. if ($Level !$fail) { $cd = $sLevels - 2; $domain = $Levels[$cd]...$tld; if (ereg($Levels[$cd].:, $cTLDs)) { $cd--; $domain = $Levels[$cd]...$domain; } } // See if there's an MX record for the domain if ($Level !$fail) { $Level--; if (!getmxrr($domain, $mxhosts, $weight)) $fail = 3; } // Attempt to connect to port 25 on an MX host if ($Level !$fail) { $Level--; while (!$sh list($nul, $mxhost) = each($mxhosts)) $sh = fsockopen($mxhost, 25); if (!$sh) $fail = 4; } // See if anyone answers if ($Level !$fail) { $Level--; set_socket_blocking($sh, false); $out = ; $t = 0; while ($t++ $Timeout !$out) $out = fgets($sh, 256); if (!ereg(^220, $out)) $fail = 5; } if ($sh) fclose($sh); return $fail; } // End E-Mail Validation Function ? [/php] anyone see what might be causing the problem? -- ::Bruce::
[PHP] Re: CONTENT-type for sending HTML attachments
Hello, on 03/16/2007 12:16 PM Angelo Zanetti said the following: Hi guys. Im using the HTML Mime Mail http://www.phpguru.org/static/mime.mail.html class from phpguru.org. Anyway I've written a few scripts that use the class to attach files to it. These files are HTML reports but Im not sure what MIME content-type to use. The content type I use to for the attachments is text/html. But Im not sure that the content type for the email itself should be plain/text as this just displays the HTML attachment as garbage in the body text. You should never send HTML only messages, as most spam filters will discard your message. Usually you need to have an alternative text part like the messages composed by normal mail clients. -- Regards, Manuel Lemos Metastorage - Data object relational mapping layer generator http://www.metastorage.net/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can't get PHP errors to display or log consistently
Hello, Using CentOS 4 and I can't get errors to display on the page AT ALL or log errors consistently. Some errors get logged (forgetting to us $this- in a class for example) but most don't. I've tried: * using .htaccess to set the error reporting. * checking and double checking my php.ini file for the correct setting. * using error_reporting(E_ALL) at the top of my page. Nothing works. When a page has an error it's goes blank. Nothing is sent to the client. There must be a setting somewhere that is overriding all of this. Any ideas? Thanks, Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't get PHP errors to display or log consistently
On Fri, 2007-03-16 at 12:30 -0700, Chris W. Parker wrote: Hello, Using CentOS 4 and I can't get errors to display on the page AT ALL or log errors consistently. Some errors get logged (forgetting to us $this- in a class for example) but most don't. I've tried: * using .htaccess to set the error reporting. * checking and double checking my php.ini file for the correct setting. * using error_reporting(E_ALL) at the top of my page. Nothing works. When a page has an error it's goes blank. Nothing is sent to the client. There must be a setting somewhere that is overriding all of this. Any ideas? Is there a custom error handler in place? Try grepping for set_error_handler. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] APC errors - realpath failed to canonicalize
I've been trying to smoke out some problems with APC under high load. We're using PHP 4.4.6 and APC 3.0.13. We are finding loads of this in our error log: realpath failed to canonicalize PEAR.php - bailing I know APC prefers you to use absolute paths but lots of PEAR modules just do require_once('PEAR.php') Why does this realpath error occur? Why is realpath being used? According to the manpage, it says Do not use this function. -jsd- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can't get PHP errors to display or log consistently
On Friday, March 16, 2007 12:37 PM Robert Cummings mailto:[EMAIL PROTECTED] said: Is there a custom error handler in place? Try grepping for set_error_handler. Not in this project. Being used in another project wouldn't count towards this one would it? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can't get PHP errors to display or log consistently
On Fri, 2007-03-16 at 12:45 -0700, Chris W. Parker wrote: On Friday, March 16, 2007 12:37 PM Robert Cummings mailto:[EMAIL PROTECTED] said: Is there a custom error handler in place? Try grepping for set_error_handler. Not in this project. Being used in another project wouldn't count towards this one would it? If either project overrides the error handler than a custom error handler is in place. All depends on whether the code that sets it gets run. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can't get PHP errors to display or log consistently
On Friday, March 16, 2007 12:49 PM Robert Cummings mailto:[EMAIL PROTECTED] said: If either project overrides the error handler than a custom error handler is in place. All depends on whether the code that sets it gets run. (Was at lunch.) I see. In that case how do I override it in this project? Can the two projects coexist without causing trouble for one another? Thanks, Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't get PHP errors to display or log consistently
Chris W. Parker wrote: Hello, Using CentOS 4 and I can't get errors to display on the page AT ALL or log errors consistently. Some errors get logged (forgetting to us $this- in a class for example) but most don't. I've tried: * using .htaccess to set the error reporting. * checking and double checking my php.ini file for the correct setting. * using error_reporting(E_ALL) at the top of my page. Nothing works. When a page has an error it's goes blank. Nothing is sent to the client. There must be a setting somewhere that is overriding all of this. Any ideas? Thanks, Chris. try this in a error_test.php file on your web server [error_test.php] ?php error_reporting(E_ALL); ini_set('display_errors','On'); echo 'Trying...'; # Call undefined function my_undefined_function(); echo ' to fail!!!'; ? This should display an error. Could be that the buffer isn't being dumped to the browser before a fatal error. Now do this ?php phpinfo(); ? Look at the output_buffering, see if it is turned on and what size it is set to. Default is either 'On' or 4096 on most systems, I would suggest turning it off. Set it to '0' in your php.ini file. Hope this helps. -- Enjoy, Jim Lucas Different eyes see different things. Different hearts beat on different strings. But there are times for you and me when all such things agree. - Rush -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can't get PHP errors to display or log consistently
On Fri, 2007-03-16 at 14:50 -0700, Chris W. Parker wrote: On Friday, March 16, 2007 12:49 PM Robert Cummings mailto:[EMAIL PROTECTED] said: If either project overrides the error handler than a custom error handler is in place. All depends on whether the code that sets it gets run. (Was at lunch.) I see. In that case how do I override it in this project? Can the two projects coexist without causing trouble for one another? Are you sure yet it's even being overriden in the first place? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can't get PHP errors to display or log consistently
On Fri, 2007-03-16 at 18:58 -0400, Robert Cummings wrote: On Fri, 2007-03-16 at 14:50 -0700, Chris W. Parker wrote: On Friday, March 16, 2007 12:49 PM Robert Cummings mailto:[EMAIL PROTECTED] said: If either project overrides the error handler than a custom error handler is in place. All depends on whether the code that sets it gets run. (Was at lunch.) I see. In that case how do I override it in this project? Can the two projects coexist without causing trouble for one another? Are you sure yet it's even being overriden in the first place? You can read here to see how the error handler is overriden. If it is you can override it yourself. On another note, it may be that some goon has prepended a function call with @ and so all nested functions are also having their errors choked. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't get PHP errors to display or log consistently
On Fri, 2007-03-16 at 15:56 -0700, Jim Lucas wrote: Chris W. Parker wrote: Hello, Using CentOS 4 and I can't get errors to display on the page AT ALL or log errors consistently. Some errors get logged (forgetting to us $this- in a class for example) but most don't. I've tried: * using .htaccess to set the error reporting. * checking and double checking my php.ini file for the correct setting. * using error_reporting(E_ALL) at the top of my page. Nothing works. When a page has an error it's goes blank. Nothing is sent to the client. There must be a setting somewhere that is overriding all of this. Any ideas? Thanks, Chris. try this in a error_test.php file on your web server [error_test.php] ?php error_reporting(E_ALL); ini_set('display_errors','On'); echo 'Trying...'; # Call undefined function my_undefined_function(); echo ' to fail!!!'; ? This should display an error. Could be that the buffer isn't being dumped to the browser before a fatal error. Only time I've ever seen that happen is when the process segfaults. I almost always work with output buffering on, and have never seen a fatal error disappear while it's enabled. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Limited text fields on phpMyAdmin?
Hey all, I have a client that uses phpMyAdmin quite a bit as sort of an end user type app, but that's another story altogether (they actually get a lot of use out of it when they're PHP app won't give them the data the way they want.) But anyway, they've created a table with 9 fields type 'TEXT' and put about a paragraph or two into each field, but seemed to have run up against a limit there. I'm pretty surprised that phpMyAdmin would have that kind of a limit there, and have checked out the data for any funkiness that might prevent it from displaying, but when they select that table to edit a record it displays only the top like describing the table and then stops. Has anyone experienced anything like this with phpMyAdmin? They are running 2.5.7. I know they should upgrade and I keep telling them that, but they are one these if it ain't broke don't fix it outfits and have been using the same install for a couple of years, and are pretty set in their ways. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Limited text fields on phpMyAdmin?
On 3/17/07, Skip Evans [EMAIL PROTECTED] wrote: Hey all, I have a client that uses phpMyAdmin quite a bit as sort of an end user type app, but that's another story altogether (they actually get a lot of use out of it when they're PHP app won't give them the data the way they want.) But anyway, they've created a table with 9 fields type 'TEXT' and put about a paragraph or two into each field, but seemed to have run up against a limit there. I'm pretty surprised that phpMyAdmin would have that kind of a limit there, and have checked out the data for any funkiness that might prevent it from displaying, but when they select that table to edit a record it displays only the top like describing the table and then stops. Has anyone experienced anything like this with phpMyAdmin? They are running 2.5.7. I know they should upgrade and I keep telling them that, but they are one these if it ain't broke don't fix it It is broke, so they should fix :) outfits and have been using the same install for a couple of years, and are pretty set in their ways. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.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
Re: [PHP] Limited text fields on phpMyAdmin?
Hey all, I have a client that uses phpMyAdmin quite a bit as sort of an end user type app, but that's another story altogether (they actually get a lot of use out of it when they're PHP app won't give them the data the way they want.) But anyway, they've created a table with 9 fields type 'TEXT' and put about a paragraph or two into each field, but seemed to have run up against a limit there. I'm pretty surprised that phpMyAdmin would have that kind of a limit there, and have checked out the data for any funkiness that might prevent it from displaying, but when they select that table to edit a record it displays only the top like describing the table and then stops. Has anyone experienced anything like this with phpMyAdmin? They are running 2.5.7. I know they should upgrade and I keep telling them that, but they are one these if it ain't broke don't fix it outfits and have been using the same install for a couple of years, and are pretty set in their ways. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ MySQL TEXT fields have a limit of 65,000 bytes. If you insert anything larger than that in to a normal TEXT field mySQL will silently truncate your data without telling you (meaning software checks are probably a good idea). MEDIUMTEXT will store 16 million characters and LONGTEXT can handle over 4 trillion. Check the mysql docs for exact info, but this should help in general. The user should be able to change the field type without loosing their data. Jake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Limited text fields on phpMyAdmin?
On 3/17/07, Skip Evans [EMAIL PROTECTED] wrote: Hey all, I have a client that uses phpMyAdmin quite a bit as sort of an end user type app, but that's another story altogether (they actually get a lot of use out of it when they're PHP app won't give them the data the way they want.) But anyway, they've created a table with 9 fields type 'TEXT' and put about a paragraph or two into each field, but seemed to have run up against a limit there. I'm pretty surprised that phpMyAdmin would have that kind of a limit there, and have checked out the data for any funkiness that might prevent it from displaying, but when they select that table to edit a record it displays only the top like describing the table and then stops. Has anyone experienced anything like this with phpMyAdmin? They are running 2.5.7. I know they should upgrade and I keep telling them that, but they are one these if it ain't broke don't fix it It is broke, so they should fix :) I still have a copy of phpMyAdmin 2.2.0, works great, but if the text field value is over 65k, it will truncate the data. define a paragraph or two. outfits and have been using the same install for a couple of years, and are pretty set in their ways. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Limited text fields on phpMyAdmin?
Hey all, I have a client that uses phpMyAdmin quite a bit as sort of an end user type app, but that's another story altogether (they actually get a lot of use out of it when they're PHP app won't give them the data the way they want.) But anyway, they've created a table with 9 fields type 'TEXT' and put about a paragraph or two into each field, but seemed to have run up against a limit there. I'm pretty surprised that phpMyAdmin would have that kind of a limit there, and have checked out the data for any funkiness that might prevent it from displaying, but when they select that table to edit a record it displays only the top like describing the table and then stops. I did miss this on my first glance, can you edit other records? Has anyone experienced anything like this with phpMyAdmin? They are running 2.5.7. I know they should upgrade and I keep telling them that, but they are one these if it ain't broke don't fix it outfits and have been using the same install for a couple of years, and are pretty set in their ways. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.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] Payflow Pro
Hey is anyone using the pfpro extension, or is their XMLPay the newer and groovier option? Any opinions appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] logging erros and user access to logs
Jason Joines-3 wrote: My users want to be able to debug their scripts, see mysql errors, and such. Using mysql_error(), and display_errors, problems such as non-existent databases, or variable and such seem to get printed to the screen. However, syntax errors do not. They get written to the global php log, for example, PHP Parse error: parse error, unexpected T_ECHO, expecting ',' or ';' when a semi-colon is missing. I can't just give all system users access to the global log. I saw an example at http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors that seemed to suggest including the script to debug in something like this demodebug.php script would do the trick: ?php error_reporting(E_PARSE); ini_set('display_errors','On'); ini_set('display_startup_errors','On'); include('demo.php'); ? When I remove a semi-colon from demo.php and load demodebug.php in the browser, nothing is displayed on the screen. The error still goes to the global log. I'm running PHP 4.3 on Apache 2. I have these settings in my php.ini: error_reporting = E_ALL ~E_NOTICE display_errors = Off display_startup_errors = Off I thought the above debugdemo.php script was basically supposed to do a local override so that script could display the errors. Is there any good way to let users see all the errors from their scripts. Jason Joines = -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php let your users put #... php_value error_reporting 6143 #E_ALL #php_value error_reporting 6135 # ~E_NOTICE php_flag display_errors On php_flag log_errors On php_value error_log myPhpErr.log # into there .htaccess file or - if you don't want to allow that - # ini_set('error_log', 'myPhpErr.log'); into there scripts -- View this message in context: http://www.nabble.com/logging-erros-and-user-access-to-logs-tf3403238.html#a9524926 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Limited text fields on phpMyAdmin?
Jake McHenry wrote: I still have a copy of phpMyAdmin 2.2.0, works great, but if the text field value is over 65k, it will truncate the data. define a paragraph or two. Anywhere from 10 to 50 English words. Far, far less than 65K. Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Limited text fields on phpMyAdmin?
Hey Jake, Yeah, everything else works fine. And in fact I even found that if I delete one of the text fields, for a total of eight, it starts working again. I tried deleting different ones, but it seems to be stuck on only allowing 8 text fields, regardless of the content. I've never seen phpMyAdmin do anything like this. Skip Jake McHenry wrote: Hey all, I have a client that uses phpMyAdmin quite a bit as sort of an end user type app, but that's another story altogether (they actually get a lot of use out of it when they're PHP app won't give them the data the way they want.) But anyway, they've created a table with 9 fields type 'TEXT' and put about a paragraph or two into each field, but seemed to have run up against a limit there. I'm pretty surprised that phpMyAdmin would have that kind of a limit there, and have checked out the data for any funkiness that might prevent it from displaying, but when they select that table to edit a record it displays only the top like describing the table and then stops. I did miss this on my first glance, can you edit other records? Has anyone experienced anything like this with phpMyAdmin? They are running 2.5.7. I know they should upgrade and I keep telling them that, but they are one these if it ain't broke don't fix it outfits and have been using the same install for a couple of years, and are pretty set in their ways. Thanks! Skip -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 http://bigskypenguin.com =-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240 =-=-=-=-=-=-=-=-=-=-= Check out PHPenguin, a lightweight and versatile PHP/MySQL development framework. http://phpenguin.bigskypenguin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Getting last record ID created from DB
Is there a way to get the last Record # created by the DB. Example: User_ID = auto_increment f_name = varchar l_name = varchar e-mail = varchar b_date = varchar pic = varchar Since user_id is an auto_inc field I submit it as a NULL, also I haven't started the code for a picture yet either so I have it set to NULL at this moment. My code is: $query = INSERT INTO `t_users` (`user_id`, `f_name`, `l_name`, `e_mail`, `b_date`, `pic`) VALUES ('', '$f_name', '$l_name', '$e_mail', '$b_date', ''); $result = mysql_query($query); if(!$result) { die(Could not query the database: br/.mysql_error()); } echo Your Player information has been stored OK.br /; what code could I add here to make the following line work? echo REMEMBER your USER ID# you will need it when creating Characters!! It is: $user_id; - I want to show the user_id just created here. Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Getting last record ID created from DB
On Fri, 16 Mar 2007 22:28:54 -0500 Jeff [EMAIL PROTECTED] wrote: Is there a way to get the last Record # created by the DB. $query = INSERT INTO `t_users` (`user_id`, `f_name`, `l_name`, `e_mail`, `b_date`, `pic`) VALUES ('', '$f_name', '$l_name', '$e_mail', '$b_date', ''); $result = mysql_query($query); if(!$result) { die(Could not query the database: br/.mysql_error()); } echo Your Player information has been stored OK.br /; what code could I add here to make the following line work? echo REMEMBER your USER ID# you will need it when creating Characters!! It is: $user_id; - I want to show the user_id just created here. Thanks in advance! select user_id from t_users where user_id = (select max(user_id) from t_users) -- Rod - Empty your mind, be formless, shapeless like water. Now you put water into a cup and it becomes the cup. You put water in a bottle it becomes the bottle. You put it into a teapot it becomes the teapot. Now water can flow or it can crash. Be water, my friend. -- Bruce Lee signature.asc Description: PGP signature
Re: [PHP] Getting last record ID created from DB
Jeff wrote: Is there a way to get the last Record # created by the DB. ... what code could I add here to make the following line work? echo REMEMBER your USER ID# you will need it when creating Characters!! It is: $user_id; - I want to show the user_id just created here. Thanks in advance! The function mysql_insert_id will return the previous id inserted. http://us3.php.net/manual/en/function.mysql-insert-id.php Janet -- Janet Valade -- janet.valade.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Getting last record ID created from DB
On Mar 16, 2007, at 10:28 PM, Jeff wrote: Is there a way to get the last Record # created by the DB. Example: User_ID = auto_increment f_name = varchar l_name = varchar e-mail = varchar b_date = varchar pic = varchar Since user_id is an auto_inc field I submit it as a NULL, also I haven't started the code for a picture yet either so I have it set to NULL at this moment. My code is: $query = INSERT INTO `t_users` (`user_id`, `f_name`, `l_name`, `e_mail`, `b_date`, `pic`) VALUES ('', '$f_name', '$l_name', '$e_mail', '$b_date', ''); $result = mysql_query($query); if(!$result) { die(Could not query the database: br/.mysql_error()); } echo Your Player information has been stored OK.br /; what code could I add here to make the following line work? echo REMEMBER your USER ID# you will need it when creating Characters!! It is: $user_id; - I want to show the user_id just created here. Thanks in advance! For auto increment values, you don't have to specify the id. For example: INSERT INTO t_users (f_name, l_name, e_mail, b_date, pic) VALUES ('$f_name', '$l_name', '$e_mail', '$b_date', null); Then to find the latest entry: SELECT user_id FROM t_users ORDER BY user_id DESC limit 1; Hope that helps. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Getting last record ID created from DB
Janet Valade wrote: Jeff wrote: Is there a way to get the last Record # created by the DB. ... what code could I add here to make the following line work? echo REMEMBER your USER ID# you will need it when creating Characters!! It is: $user_id; - I want to show the user_id just created here. Thanks in advance! The function mysql_insert_id will return the previous id inserted. http://us3.php.net/manual/en/function.mysql-insert-id.php Janet but to use this, you need to have the user_id field name and value omitted from the insert statement. Other wise it enters a null value in the field, basically overriding the purpose of the auto_increment setting. Once you have completed the the insert, run this command http://www.php.net/mysql_insert_id This will then give you the LAST INSERT ID for your connection to the DB. Hope it helps -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php +html mail
Dear all, I want get a help from you for some php codes. How can I get it. Regards wasantha