Message from bugzilla Most recent post: 10/28/2007 2 authors and 4 replies. Hello. I'm developing an extension for PHP to support netCDF format (a special format for multidimensional scientific data). It is non-commercial open source project. At http://www.php.net/license/3_01.txt it is said that I cannot name my extension php-netcdf unless you permit. So, I'm asking you for this, because I want my extension (in future) to be included in standard set of extensions. P.S. Under term `extension' I mean binary .so/.dll extension (particularly, written in C) that was written using ext-skeleton output and that uses php includes/libraries and is distributed under terms of PHP license because of that. -- WBR, Andrew read more about using `php' in the name of software
Message from i.am.magoo Most recent post: 10/28/2007 2 authors and 2 replies. Hi NG! I have switched to using single quotes, and found out that newline (\n) only works in double quotes. It looks kind of stupid using 'someString'."\n"; and it`s kind of inconsistent using double quotes for some lines like "someString\n";. What`s the best way to get a consitent code? -- Kind regards, magoo read more about Newline
Message from borge Most recent post: 10/28/2007 4 authors and 5 replies. I'm currently using RecursiveDirectoryIterator and RecursiveIteratorIterato= r. I'm using fwrite to write to a file while parsing throught the file structu= re,=20 and was wondering if it is at all possible to sort alphabetical without goi= ng=20 all array. That seems to me like doing the job twice over. Atleast part of= =20 it... =2D-=20 =2D-- B=F8rge Holen http://www.arivene.net read more about SPL
Message from arash.moosavi Most recent post: 10/27/2007 3 authors and 3 replies. ------=_Part_13588_26382181.1193500923847 Content-Disposition: inline I Need an example code of using Libgmailer.php for reading mails from gmail. I can login to the gmail with this Class(libgmailer.php) but I can not find its string output of emails text. Thank all ------=_Part_13588_26382181.1193500923847-- read more about libgmailer.php
Message from balpo Most recent post: 10/27/2007 2 authors and 6 replies. Hi everybody! I'm building a small ajax app which consists of only 3 php files. index.php which contains all the app and has a couple of links. When a link is clicked an Ajax request is sent to the server (using prototype) to the url central.php with only one parameter 'id'. Depending on that parameter, central.php should look for the appropiate content, in this case link1.php. Then I return a JSON object with the "things" that should be updated on index.php So this is the pseudo-code: index.php <html>... <body> <a href="" onclick="[send the Ajax request using prototype with the id = 1]>Link #1</a> <div id="theUpdatableDIV"></div> </body>central.php <html>... <body> <?php [read the id parameter] switch(id){ case 1: //which is the only case for now!! //build the JSON object $output = array("title" => "Link #1 Title!", "content"=>file_get_contents("link1.php"));//here I read the last file which has the content to be updated asynchronously return [the JSON object based on $output]; break; } ?> </body> link1.php <div>Welcome to the content of link #1 which was updated using <a href="ajax.org">ajax</a></div> the JSON object is formed ok, now, my problem is that link1.php outputs like this: [code read more about Slashes, include, AJAX?
Message from info Most recent post: 10/27/2007 3 authors and 4 replies. Hello all, function convert( $latitude, $longitude ) { $mve_latitude = $latitude; // actually other processing within this function determines this $mve_longitude = $longitude // actually other processing within this function determines this $mve_both = $mve_latitude . ", " . $mve_longitude; // prepare return values $mve_array[0] = $mve_latitude; $mve_array[1] = $mve_longitude; $mve_array[2] = $mve_both; return $mve_array; } // function $latitude = 23.263400; $longitude = 80.110030 convert( $latitude, $longitude ); print_r( $mve_array ); .. the above doesn't return a value in the array. What do I have to change to receive an array with global scope from this function? I read several pages of docs on php.net but the light did not go on... Sincerely, Rob. read more about returning an array from a function?
Message from anu Most recent post: 10/27/2007 3 authors and 3 replies. Hi, How to attach the files in mail using php codes.. If any body have the solution plz inform me.. Thank, Anu read more about How to attach the files in mail using php codes
Message from dcastillo Most recent post: 10/27/2007 2 authors and 2 replies. The problem is I am the mail server administrator also. This is a small company of 4 .-- Diana Castillo Tsanalytics S.A. Tel: 34 913 595 436 Fax: 34 913 595 439 Mov: 34 609 954 536 dcastillo@xxxxxxxxxxx www.tsanalytics.com read more about cant send mail
Message from ronald Most recent post: 10/26/2007 2 authors and 4 replies. I tried: $a=$_SERVER["REMOTE_ADDR"]; echo "<p>REMOTE_ADDR=$a<br>"; if($a="192.168.250.108") { $a="61.64.101.101"; }$aa=system('lynx -dump http://api.hostip.info/country.php?ip=$a',$location); echo "<p>a=$a<br>aa=$aa<br>location=$location<br>"; $aa=system('lynx -dump http://api.hostip.info/country.php?ip=61.64.101.101',$location); echo "<p>a=$a<br>aa=$aa<br>location=$location<br>";I get: REMOTE_ADDR=192.168.250.108 XX a=61.64.101.101 aa=XX location=0 TW a=61.64.101.101 aa=TW location=0as you can see, if I put the IP address in, I get the right answer (TW). What am I doing wrong? bye Ronald read more about system command
Message from philthathril Most recent post: 10/26/2007 4 authors and 7 replies. ------=_Part_3670_9168658.1193344460934 Content-Disposition: inline Hi. Feel free to tell me this is a "duh" question. I do not know which PHP executable (php.exe, php-cgi.exe, php-win.exe) is being run - how can I tell? I am on a Win2k3 server running PHP5 (manual install) and IIS6. I have pointed to the php5isapi.dll in IIS. I'm assuming b/c I do this that I am using the php.exe. Thoughts? I have searched the PHP manual, but have had no luck. Thanks in advance, ~Philip ------=_Part_3670_9168658.1193344460934-- read more about Executing PHP
Message from jcxxr Most recent post: 10/26/2007 4 authors and 8 replies. Hello, I am runnign on a Centos 5.0 php 5.1.6 as Server API (application programming interface)Apache 2.0 Handler I launched a script, which contains an infinite loop, from bash typing: php script.php I'd like to end that process. when typing ps -A, I do not see it. Is it inside the Apache server? How could I reach it? I am quite lost. More surprising to me is that after I rebooted the server, the script was still running. Any idea how I could kill that "process"? Thanks read more about unable to find running php script
Message from jennifer Most recent post: 10/26/2007 4 authors and 4 replies. Hi, When using CURL to access a page with frames I get the "Your browser does not appear to support frames" error. How can get around this? Is there special header info that can be added? Also, if I were using fopen can anyone offer sample code how to login to remote site and deal with remote session info? Thanks! Jennifer -- View this message in context: http://www.nabble.com/CURL-%2B-Frames%2C-fopen-%2B-remote-sessions-tf4683978.html#a13384539 Sent from the PHP - General mailing list archive at Nabble.com. read more about [PHP] CURL + Frames, fopen + remote sessions
Message from arash.moosavi Most recent post: 10/26/2007 4 authors and 4 replies. ------=_Part_7522_8325683.1193399794092 Content-Disposition: inline I have Question In PHP Where Can I send it to Give my answer? ------=_Part_7522_8325683.1193399794092-- read more about Question
Message from contact.saschabraun Most recent post: 10/26/2007 7 authors and 7 replies. What is the cause for that error: Fatal error: Maximum function nesting level of '100' reached, aborting! in /home/Projekte/spectral/modules/xml_mm/classes/xml_mm.class.php on line 118 Thank you! Sascha read more about Maximum function nesting level of '100' reached
Message from arash.moosavi Most recent post: 10/26/2007 2 authors and 2 replies. ------=_Part_8067_6308195.1193405209143 Content-Disposition: inline First: how can I write php code that alert me when I have new mail? such as Gmail Second:Where can I find "libgmailer" sample code? for example reading new mail or sending mail and more.. Thank You ------=_Part_8067_6308195.1193405209143-- read more about e-mail code
Message from dcastillo Most recent post: 10/26/2007 2 authors and 3 replies. Using windows XP, when I try to send mail using 4 parameters, I get this : Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for dcastillo@xxxxxxxxxxx in C:\Inetpub\wwwroot\intranet\test.php on line 9 -- Diana Castillo Tsanalytics S.A. Tel: 34 913 595 436 Fax: 34 913 595 439 Mov: 34 609 954 536 dcastillo@xxxxxxxxxxx www.tsanalytics.com read more about cant send mail
Message from lawpoop Most recent post: 10/26/2007 2 authors and 2 replies. Hello all - I saw a PHP project once where the POST variables had an array. I do not know how to do this myself, and I have not been able to figure out what terms to search for to find out. This'd be immensely helpful to me. Currently I use a method like this: print_r($_POST); Array ( [amount1] => 40 [check_number1] => 1001 [date1] => 10/21/07 [amount2] => 27.50 [check_number2] => 1257 [date2] => 10/23/07 ) But it'd be helpful to have something like:print_r($_POST); Array ( [0] => array( [amount] => 40 [check_number] => 1001 [date] => 10/21/07 ), [1] => [amount] => 27.50 [check_number] => 1257 [date] => 10/23/07 ) ) Thanks! read more about POST variable as an array?
Message from demondrum Most recent post: 10/26/2007 2 authors and 2 replies. This seems to occur at random. But if I call a function that looks at $_SESSION[whatever] the info is gone. If I use my debugger it appears the $_SESSION array is gone. I have seen many posts about losing the session from page to page, but this is occurring when stepping into a function on the same page. any ideas? Let me know if more info is needed. myk read more about session lost when stepping into a function
Message from skiabox12 Most recent post: 10/26/2007 2 authors and 5 replies. Here's the list : <?php function salestax($price,$tax) { function convert_pound($dollars, $conversion=1.6) { return $dollars * $conversion; } $total = $price + ($price * $tax); echo "Total cost in dollars: $total. Cost in British pounds: " .convert_pound($total); } echo convert_pound(15); ?> I get the following error : *Fatal error*: Call to undefined function convert_pound() in ...*Untitled-1.php* on line *18 *line 18 is this one : echo convert_pound(15); read more about Fatal error when calling nested function
Message from ngroups Most recent post: 10/26/2007 4 authors and 5 replies. Hi there, I am trying to add a comment functionality to my PHP webapp that includes a reply possibility on each comment. Like on digg for example. I am new to AJAX, but'd like to take this oportunity and to jump into cold water with that task now. I am asking this question here in the PHP forum, as I was thinking to do a for loop to include a form underneath each comment, but now it sounds rediculous to me. There must be a smarter way to do this. My goal is to use JQuery to show and hide a dialog box which contains the form to reply on the comments. Basicaly I managed to do this, but now I have a general understanding problem. Let's say there are 100 comments there and I want to have reply possiblity for each of them. Do I have to integrate the same code underneath each one? I'd rather like to have a box in that is used for everyone of them. I believe this is somehow done with divs, but I do not know how. Here is my code: <html> <head> <script src="/app_global/jquery-1.2.1.pack.js" type="text/JAVAscript"></script> <script type="text/JAVAscript"> $(document).ready(function() { $('#slickbox').hide(); $('a#reply').click(function() { $('#slickbox').toggle('slow'); return false; }); }); </script> </head> <body> <a href="#" id="reply">Reply</a> <div id="slickbox"> read more about Comment / Reply function
Message from dcastillo Most recent post: 10/26/2007 4 authors and 4 replies. I dont know what I did but now I get this message Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" -- Diana Castillo Tsanalytics S.A. Tel: 34 913 595 436 Fax: 34 913 595 439 Mov: 34 609 954 536 dcastillo@xxxxxxxxxxx www.tsanalytics.com read more about SMTP
Message from dcastillo Most recent post: 10/26/2007 2 authors and 2 replies. I have tried settiing my php.ini to SMTP = localhost as well as using the SMTP of my regular mail, and I keep on getting this. Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for dcastillo@xxxxxxxxxxx in C:\Inetpub\wwwroot\intranet\test.php on line 11 -- Diana Castillo Tsanalytics S.A. Tel: 34 913 595 436 Fax: 34 913 595 439 Mov: 34 609 954 536 dcastillo@xxxxxxxxxxx www.tsanalytics.com read more about SMTP unable to relay
Message from Weston Most recent post: 10/25/2007 2 authors and 3 replies. Poking around with XPath using SimpleXML, it looks like there are at least a few reasonably common XPath operators and predicates that are not supported. I'd like to check my observations against other people's experience, and find out if I'm missing something. Here's what it looks like to me in PHP 5.2.0: * the count() predicate seems to fail quietly (no error or warning, you just receive a false value from the xpath method rather than an array) * the "|" (union) operator seems to also fail quietly by returning an empty array * the "union" operator seems to cause an error * the "intersect" operator also causes an error (and needless to say, with | and count() not working, using something like the Kaysian technique to get the intersection won't work) Does this accurately capture the current state of things? If so, are the bulk of developers simply not using these features, or are they instead writing around the missing features in PHP rather than trying to get XPath to do the work? Or is there a better option? read more about Limits to XPath implementaiton in PHP5
Message from spectre_vm Most recent post: 10/25/2007 2 authors and 2 replies. Hello, all. Thanks for your help in advance. I'm trying to figure out how to get PHP to retrieve MPEG File Properties, specifically the length of the video file in seconds. Thanks, -B read more about MPEG Properties
Message from kemot84 Most recent post: 10/25/2007 2 authors and 3 replies. Hi folks, I have such a problem - I'd like to launch SQL script using Ant. The problem is, that I do not use JDBC and JAVA and I wonder if it is possible to run such a script from Ant. I use MySQL database (and Prado framework). BTW: is this a good idea to use Ant with PHP or is there some similar tool to Ant, that works fine with PHP? Thanks in advance. -- View this message in context: http://www.nabble.com/Ant-in-php-tf4689539.html#a13403009 Sent from the PHP - General mailing list archive at Nabble.com. read more about [PHP] Ant in php
Message from wuschba Most recent post: 10/25/2007 2 authors and 2 replies. Hi. Are there any limitations of preg_replace and is there a way to change them (for example with ini_set)? I got a php 4.4.7 on a linux-webhoster which crashes without error-message on this script: <?php $txt = ""; for ($i = 0; $i < 2000; $i++) { $txt .= "<a href=\"helloworld.htm\" title=\"my title\"><img src=\"/mypic.jpg\"></a><br />\n"; } $txt = preg_replace("/<a(.*)href=\"\\index.htm\">/isU", "<a$1href=\"\\\">", $txt); print $txt; ?> If I loop only 1000 times or do not use (.*)->$1 on the regular expression, it works. It works as well on a local WAMP-Installation. Any ideas about that? __________________________________ Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. www.yahoo.de/clever read more about Limitations of preg_replace?
Message from wuschba Most recent post: 10/25/2007 2 authors and 4 replies. Hi, I got a strange problem: Using php 4.4.x, I capture the whole output fo= r a webpage into the output-buffer by using ob_start and ob_get_clean, beca= use I got to make some replacements in the html-code before sending the pag= e to the browser.=0A=0AThis worked fine with a small page, but now I got a = page for which the html-code is about 280 KB (not too big I think). But I = get an server-error 500 for this script on my linux-based webhoster.=0A=0AI= tried to run it on an local WAMP-installation - it worked without error.= =0AI temporarly deleted some of the output - it worked without error.=0AI t= urned of the output-buffering - it worked without error.=0A=0AI printed mem= ory_get_usage, but it never exceeded 2 MB (I load about 200 records from a = database and create objects from it and then print the data of these 200 re= cords).=0AOn phpinfo(), memory_limit of my webhoster is 40M - so 2MB SHOULD= be no problem.=0AI increased the memory-limit to 64M - it does not help.=0A= =0AAny idea what I could do next? I got no access to the apache error-log, = but the error is definitely connected to the output buffer and how much I t= ry to store in it.=0A=0AAny help is welcome.=0A=0ARegards=0A=0AWuschba=0A= =0A=0A=0A=0A __________________________________ Ihr erstes Fernweh? W= o gibt es den sch=F6nsten Strand? www.yahoo.de/clever read more about output-buffer and memory-issue
Message from dcastillo Most recent post: 10/25/2007 3 authors and 4 replies. in my php.ini, I have this set sendmail_from = admin.intranet@xxxxxxxxxxx yet when I do this command :("dcastillo@xxxxxxxxxxx","TEST MAIL","TESTING MAIL"); I get this message Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Inetpub\wwwroot\intranet\test.php on line 4 -- Diana Castillo Tsanalytics S.A. Tel: 34 913 595 436 Fax: 34 913 595 439 Mov: 34 609 954 536 dcastillo@xxxxxxxxxxx www.tsanalytics.com read more about mail from
Message from japruim Most recent post: 10/25/2007 6 authors and 13 replies. --Apple-Mail-17-200294152 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi Everyone, I am attempting to get the logic of something figured out and I thought someone might be able to confirm what I'm thinking :) I want to be able to display something like an image of a turkey during the month of november from now until I'm dead. I was playing around with mktime and it showed very different time stamps for 11/1/07 and 11/1/08 so I can not set it to compare specifically to the timestamp.. But,'d I be able to have it evaluate the string stored in php as 11/1/07 and create a timestamp to compare todays date to, and if it matches within the month, have it display the turkey? and if not, have it display a different graphic? I'm attempting to be able to make small changes to my website without having to remember to do them or change them :) I hope I have made enough sense that someone can point me in the right direction :) Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@xxxxxxxxxxx --Apple-Mail-17-200294152-- read more about Question about time...
Message from jsmForum Most recent post: 10/25/2007 2 authors and 2 replies. I'm getting this error on a php based ticket system we've. I do not see this on the old server running php4. This new server is running php5. PHP_Fatal_error:__Cannot_use_object_of_type_PEAR_Error_as_array_in_/srv/www/ virtual/support/mailparser.php_on_line_300/ The code in that section looks like this... function firstemail($addrs) { $name=""; $structure = Mail_RFC822::parseAddressList($addrs); $ret= $structure[0]->mailbox."@xxxxxxxxxxx".$structure[0]->host; ### line 300 is here... if ($ret=="@xxxxxxxxxxx") $ret=""; else $name=$structure[0]->personal; return array($ret,$name); } Any idea what may be the issue here? read more about strange error
Message from dcastillo Most recent post: 10/25/2007 3 authors and 3 replies. How can I restart php so it takes changes in my php.ini without having to reboot my machine? I have windows XP -- Diana Castillo Tsanalytics S.A. Tel: 34 913 595 436 Fax: 34 913 595 439 Mov: 34 609 954 536 dcastillo@xxxxxxxxxxx www.tsanalytics.com read more about how to restart php
Message from emil Most recent post: 10/25/2007 2 authors and 2 replies. Hi all! Maybe slightly off topic, but I'd like to know how you guys handle mysql structures between different computers (and for that matter from the developer desktop to the stable server). I work on my home and my office computer with the same php projects. I keep all my php files on svn, so I just update and commit the first and last thing I do when I switch computer. The problem is when I have made a change in the structure of my mysql tables. I usually try to save a dump and ssh it to my server and download and import it on the other computer. But that feels clumsy, and if I have made changes on both computers I have no simple way to merge the structures like I can in svn. How do you handle this in your projects? Best Regards Emil Edeholt read more about MySQL and SVN
Message from rcourtis Most recent post: 10/25/2007 3 authors and 3 replies. Hi I have installed php v5 on a windowsXP PC. Server is Apache 2.2. Even though I have turned register globals on in the ini file, the php = is still not allowing the use of $HTTP_GET_VARS (and probably other = similier variables), and I am having to change my existing script to = $_GET before they'll run. Any idea why the directive is being ignored? Rodney Courtis read more about register globals not working
Message from richardh Most recent post: 10/25/2007 6 authors and 8 replies. Can anyone say for sure whether window.open() links get spidered by search engines? Thanks. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support read more about window.open() and search engines
Message from manuel.vacelet Most recent post: 10/25/2007 3 authors and 4 replies. Hi all, file_exists and is_readable perfom there test with real UID/GID. Is there any functions that tests file existance with effective UID/GID ? Note: stat isn't an option because it raises an E_WARNING if the file isn't readable. Thanks, Manuel read more about file_exists, is_readable & effective UID/GID
Message from jon Most recent post: 10/24/2007 2 authors and 5 replies. Hi all: I'm working on a project that requires frequent updating of a large = amount of data to a MySQL database. Currently, I'm trying to transfer a = CSV file to the server, have it process the file, and then delete it = once the processing is complete. Rather than waste the up-front time of = having to upload the file (which is currently timing out without fully = uploading the file and I have no idea how to resolve this!), is it = possible to have the server open the specified file remotely and read it = using the fgetcsv() function? If so, how? Any help you can give me will be GREATLY appreciated! Thanks, Jon read more about Can a PHP script process a file on a remote computer?
Message from Joey Most recent post: 10/24/2007 2 authors and 2 replies. Hi all, I have inherited a problem script from a client, and it's a simple upload function. The problem is that while the image is being uploaded and saved as the same name it was uploaded as, it's not writing to the table the file name for display reference so it's like there is no picture. I appreciate any help you can provide. Thanks!Joey include ("sesion_admin.php"); include("../contentdb.php"); $res_state=mysql_query("select * from states where 1 order by state"); $id = $_GET["id"]; echo "ID: " . $id . "IDL: " . $local_id . " Photo: " . $userfile . " [B4 Upload]<br>"; $p_proceso = $_POST["p_proceso"]; if($p_proceso=="borrar"){ $query_editar ="update Basic_Info set photo='' where Id=$id "; mysql_query($query_editar); } if($p_proceso=="upload"){ $UPLOAD = fopen($userfile, "r" ); $contents = fread($UPLOAD,$userfile_size); fclose($UPLOAD); $SAVEFILE = fopen("../photos/".$userfile, "wb" ); fwrite( $SAVEFILE, $contents,$userfile_size); fclose( $SAVEFILE ); #$query_editar ="update Basic_Info set photo='$userfile' where Id=$id "; mysql_query($query_editar); } read more about help with code not wrking
Message from emiliano.boragina Most recent post: 10/24/2007 2 authors and 2 replies. Hi everyone. I need to know how do I do a FINDER of clinics for zones. I am new in PHP, so my knowloge isn't much. The user of this finder select the zone from the list, and click in the button, and them show a list of clinic with its data info (name, address, phones, etc) Thanks a lot! Emiliano read more about FINDER
Message from lawpoop Most recent post: 10/24/2007 2 authors and 2 replies. Hello all - I have an SQL statement that generates a random code number. In the table definition, the code number has a unique index, so my concern is that the randomly-generated number could fail the UNIQUE constraint. What PHP control structure can I use to keep re-trying a query until it does not fail? Most of the time it'll successfully insert, and my guess is that it'll only need a second try to generate an unused number. But, I'd like to have bullet-proof code to keep trying the statement until it does not fail. How could I do this? Here is my sql statement: INSERT INTO Cards ( code_number ) VALUES ( LPAD( FLOOR( RAND() * 100000 ), 5, '0' ) ) read more about control structure for a falied MySQL query?
Message from ragnarok Most recent post: 10/24/2007 2 authors and 2 replies. Hi all, i'd like that "admin" users on my site could close the session of another user, immediately forbidding him the access to the site (beside i'd delete the login of the user). Anyway of doing it using the default PHP session handler (i.e. whithout using a db to store sessions)? -- Stefano Esposito -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Prestiti e Finanziamenti con un semplice click, scopri subito se sei finanziabile cliccando qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2910&d=24-10 read more about Close a session knowing it's ID (not the current session)
Message from rosenberger Most recent post: 10/24/2007 2 authors and 2 replies. Hello I watched docs.google.com an wonder how they can export the WYSIWYG created content in pdf, word, ... Are they working with COM() functions on Windows ? to generate the docs and pdf or is it possible to create them with XSLT BR Torsten read more about docs.google.com how do the export ?
Message from Summercool Most recent post: 10/24/2007 8 authors and 45 replies. I wonder in PHP, can you've a function like print_debug($foo); and it'll print out: $foo is: 3 that is, it'll print out, most importantly, the variable name, as well as its content. read more about print out variable name as well as its content
Message from ngroups Most recent post: 10/23/2007 4 authors and 5 replies. Hi there, I am looking for a framework to integrate some AJAX Functionality into my PHP4 MySQL Apache webapp. First thing I'd like to do, is an edit function that opens up a layer with an edit field and shifts the content underneath further down. I had a look on prototype and sript.aculo.us but couldn't get the desired function with the edit field. Thank you in advance for any hint on this and maybe a few tipps how to get it startet. Best regards, Merlin read more about Looking for a framework
Message from mrsquash2 Most recent post: 10/23/2007 6 authors and 15 replies. ------=_Part_1804_13005441.1193160057981 Content-Disposition: inline I am having some issues with empty(). On my page I have a text area: <table align="center" border="0" cellpadding="0" cellspacing="0" width="680"> <tr> <td width="600" align="center"><span class="inputlbl">Comments: <textarea name="comments" tabindex="39" rows="3" cols="45" wrap="soft"></textarea> </span> </td> </tr> </table> I then submit my page and on the following page I put the posted value into two variables. $comments = strtoupper($_POST['comments']); $check_comments = $_POST['comments']; I made two variables for the same posted value because I believe empty() doesn't work with strtoupper in front of the value. It only works with a standalone variable, correct? So, once I have assigned my comments to a variable I am doing: if(!empty($check_comments)) { echo "Do Something"; } However, if the comments textarea is left blank I just get a generic error "Changed database context to database" I have tried the below and get the same result: if($check_comments != "") { echo "Do Something"; } When comments is left blank and I echo out the value for $check_comments it returns nothing at all which is why I think empty() or "" should work, but they do not. Ideas? ------=_Part_1804_13005441.1193160057981 read more about EMPTY??
Message from darrenwilly Most recent post: 10/23/2007 5 authors and 5 replies. --0-315672076-1193166384=:64103 Dear Pals, Please I need a book called : "Oracle Database 10g Express Edition PHP Web Programming (Osborne Oracle Press Series): Books: by Michael McLaughlin". Please if anyone with the E-Book Version of it should be contact me on my Email (darrenwilly@xxxxxxxxxxx). NOTE: I'd prefer the E-Book Version if it is Available. Thanks. Darren. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-315672076-1193166384=:64103-- read more about PHP Oracle Ebook Request.
Message from jsmForum Most recent post: 10/23/2007 4 authors and 6 replies. Hey all, Setting up a php based ticket system on a new OpenSuse 10.3 64bit system. The ticket sys requires qmail so I had to uninstall postfix and install qmail. Qmail injects emails into this ticket sys with the following line... /usr/bin/php -q /srv/www/virtual/support/mailpipe.php I now get this error however: /usr/bin/php: error while loading shared libraries: libmm.so.14: cannot open shared object file: No such file or directory Libmm.so.14 is installed in: /usr/lib64/libmm.so.14 Any idea what it is I'm missing? Version PHP5 Thanks, jeff read more about libmm.so.14
Message from doctorrock83 Most recent post: 10/23/2007 4 authors and 7 replies. ------=_Part_2512_6622456.1193153687783 Content-Disposition: inline Hello everyone. We all know the difference between print and echo, but has someone ever tried to combine them together ?? Right, try this : <?php echo "coucou " . print('v ' . print('u ' . print('toctoc ') . 'hihi ') ) . 'tata ' . print('zozo ' . print('pupu '));And guess the result ... Can someone explain it ? ( the result is : toctoc hihi u 1pupu zozo 1v 1tata 1coucou 1 ) ------=_Part_2512_6622456.1193153687783-- read more about echo VS print : that's a cool behavior !
Message from awilliam Most recent post: 10/23/2007 10 authors and 15 replies. I have an html page with checkboxes: <form action=mailform2.php method=POST> <input type=checkbox name=option[] value="Modern Mississippi">Modern Mississippi<br> <input type=checkbox name=option[] value="Civil Rights">Civil Rights<br> <input type=checkbox name=option[] value="Military History">MilitaryHistory<br> <input type=submit name=submit value=Submit> and mailform2.php containing: echo "you selected: <br>"; /* line 81 */ foreach ($_POST[option] as $a) { echo "$a"; } but I'm getting the error: you selected: *Warning*: Invalid argument supplied for foreach() in */var/www/sites/mdah-test/museum/mmhsurvey/mailform2.php* on line *81* I googled some checkbox/foreach pages on google, but I do not see where I'm going wrong. I'm running php 5.2.5 on Apache 2.2.4 on Fedora Linux. Any help? read more about problem with foreach
Message from deceze Most recent post: 10/23/2007 3 authors and 9 replies. Hi, I'm trying to upgrade a server running CentOS 3 to an up-to-date MySQL 5 installation + PHP4. I installed the MySQL 5 package, server and client, via RPMs and they work fine, the client tells me it's version 5.0.45. I went on to recompile PHP 4.4.7 --with-mysql, but it's still using MySQL client libraries version 3.23.58. I'm kind of at a loss where it takes these versions from or how I can get it to use the newer libraries. Any hints'd be greatly appreciated. Chrs, Dav read more about MySQL connector installation/upgrade problems
Message from ronald Most recent post: 10/23/2007 3 authors and 3 replies. How can I create a html email directly from a web page via Php? The page will include tables, background colors and pictures within the tables. The received email should be readable without Internet connection (pictures, must be sent with the email)bye Ronald read more about Php generated html email