<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with php5</title>
      <link>http://ask.metafilter.com/tags/php5</link>
      <description>Questions tagged with 'php5' at Ask MetaFilter.</description>
	  <pubDate>Tue, 11 Dec 2007 14:22:34 -0800</pubDate> <lastBuildDate>Tue, 11 Dec 2007 14:22:34 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Help me with a weird FTP bug.</title>
	<link>http://ask.metafilter.com/78399/Help%2Dme%2Dwith%2Da%2Dweird%2DFTP%2Dbug</link>	
	<description>Weird bug with ftp / php5, details inside. Okay. So a friend has this client and she is trying to use Transmit to access her website files. When she attempts to drag photos into the &quot;Gallery&quot; section of the site, it refuses to do so.&lt;br&gt;
&lt;br&gt;
Then, some random folders get created that look something like &quot;PORT XX,XXX,XX..  with the X&apos;s being numbers. After this happens, she loses priveleges, like deleting and renaming folders.&lt;br&gt;
&lt;br&gt;
She&apos;s on a brand new MacBook pro running Leopard. My friend can&apos;t reproduce it on his MacBook, and I can&apos;t on mine. Any ideas?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.78399</guid>
	<pubDate>Tue, 11 Dec 2007 14:22:34 -0800</pubDate>
	<category>bug</category>
	<category>ftp</category>
	<category>php</category>
	<category>php5</category>
	<dc:creator>lazaruslong</dc:creator>
	</item>
	<item>
	<title>How can I check if my sites will run in PHP5 ?</title>
	<link>http://ask.metafilter.com/70676/How%2Dcan%2DI%2Dcheck%2Dif%2Dmy%2Dsites%2Dwill%2Drun%2Din%2DPHP5</link>	
	<description>Is there any script or sh command to check all given scripts or files to see if it will be compatible with PHP5? I know that PHP5 has some issues with backwards compatibility, and I need to upgrade my server PHP version from 4 to 5, but I&apos;ve around 40 sites running (most of them with no big PHP functionality, small contact forms and that).&lt;br&gt;
&lt;br&gt;
Is there any script or sh command to check all given scripts or files to see if it will be compatible with PHP5?&lt;br&gt;
&lt;br&gt;
I think it couldn&apos;t be a big problem to do something like this, specially if it&apos;s only based on this reference:&lt;br&gt;
http://ar.php.net/manual/en/migration5.incompatible.php</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.70676</guid>
	<pubDate>Mon, 03 Sep 2007 08:47:04 -0800</pubDate>
	<category>migration</category>
	<category>php</category>
	<category>php5</category>
	<category>programming</category>
	<dc:creator>Leech</dc:creator>
	</item>
	<item>
	<title>How can I build an OPML renderer in PHP5?</title>
	<link>http://ask.metafilter.com/50089/How%2Dcan%2DI%2Dbuild%2Dan%2DOPML%2Drenderer%2Din%2DPHP5</link>	
	<description>WebApplicationFilter: Help me build an open-source outline renderer in PHP. Currently it is a practice among some people (me included) to build &lt;a href=&quot;http://hosting.opml.org/amyloo/osite/help/howtos/distdir.htm&quot;&gt;distributed&lt;/a&gt; &lt;a href=&quot;http://www.indiepodder.org&quot;&gt;directories&lt;/a&gt; using &lt;a href=&quot;http://www.opml.org&quot;&gt;OPML&lt;/a&gt;. Thanks to the profusion of tools available to create OPML, it&apos;s relatively easy to contribute to these distributed directories, but hard to render them up. Currently, there are some good methods for doing so in JavaScript - &lt;a href=&quot;http://www.grazr.com&quot;&gt;Grazr&lt;/a&gt; and &lt;a href=&quot;http://www.optimalbrowser.com&quot;&gt;Optimal&lt;/a&gt; - but there isn&apos;t a very easy way of doing so on the server side. Except, of course, the tools available in the UserLand Frontier environment, but that&apos;s not something I want to battle with (and neither, I suspect, do many other people). JavaScript is fine, but I would like to be able to view things on my mobile device.&lt;br&gt;
&lt;br&gt;
I&apos;d like to build one, but it seems a pretty mammoth task to me. Basically, I&apos;m thinking that I could build this in PHP 5 - but I&apos;m not totally sure where to start. Should I use the DOM extension? SimpleXML? XSLT? I&apos;ve used all three, but I&apos;m not sure which would be best for this project (and, I admit - as a fairly newbie developer, I can&apos;t quite see the forest for the trees at the moment). I&apos;m capable enough to pull stuff out of the OPML file, but it&apos;s getting it to follow the links through to the relevant file that gets me stuck.&lt;br&gt;
&lt;br&gt;
The way that OPML distributed directories work is that you might have a directory tree, and a particular branch of that is handled in a completely separate document - and gets &quot;included&quot; when you render the document up.&lt;br&gt;
&lt;br&gt;
Ideally, I should be able to set it up so that a person can visit whatever.com/directory/Foo/Bar (with Foo/Bar being branches on the tree). It would be helpful if it could be implemented in such a way that it can be run on the hosting account of anyone who&apos;s got PHP installed - but Cache_Lite would also be useful to have.&lt;br&gt;
&lt;br&gt;
The way this is currently implemented in Frontier is through the functions listed in these two files: &lt;a href=&quot;http://www.opiumfield.com/docs/opmldirectory/walk.txt&quot;&gt;walk&lt;/a&gt; and &lt;a href=&quot;http://www.opiumfield.com/docs/opmldirectory/viewpage.txt&quot;&gt;viewpage&lt;/a&gt; (the language resource for UserTalk is &lt;a href=&quot;http://docserver.userland.com&quot;&gt;here&lt;/a&gt;. A working example of this code in action is &lt;a href=&quot;http://sndirectory.worldoutline.com/&quot;&gt;here&lt;/a&gt;).&lt;br&gt;
&lt;br&gt;
If this is going to be a lot of work, do you think it would be possible to formulate the instructions above in to a form suitable to hire out to someone on a site like &lt;a href=&quot;http://www.odesk.com&quot;&gt;oDesk&lt;/a&gt; or &lt;a href=&quot;http://www.rentacoder.com&quot;&gt;Rent-a-Coder&lt;/a&gt;?&lt;br&gt;
&lt;br&gt;
Also, any code that I produce (or commission) will be released under the GPL. Any output that it produces will also be good web standards XHTML as well (I hope) and may also use microformats where appropriate.&lt;br&gt;
&lt;br&gt;
I have placed this up &lt;a href=&quot;http://blogs.opml.org/tommorris/2006/11/03#opmlDirectoriesInPhp5&quot;&gt;on my blog&lt;/a&gt; also, so non-MeFites can comment.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.50089</guid>
	<pubDate>Fri, 03 Nov 2006 09:55:19 -0800</pubDate>
	<category>directory</category>
	<category>dom</category>
	<category>opml</category>
	<category>outlines</category>
	<category>php</category>
	<category>php5</category>
	<category>simplexml</category>
	<category>xml</category>
	<category>xslt</category>
	<dc:creator>tommorris</dc:creator>
	</item>
	<item>
	<title>Upgraded to PHP5/MySQL5, scripts denied access to db?</title>
	<link>http://ask.metafilter.com/31982/Upgraded%2Dto%2DPHP5MySQL5%2Dscripts%2Ddenied%2Daccess%2Dto%2Ddb</link>	
	<description>WAMPfilter: Just upgraded to PHP5 and MySQL5, and now my scripts are getting access denied when connecting to the database. I can login from the command line with the same account just fine. Many thanks for the suggestions to my &lt;a href=&quot;http://ask.metafilter.com/mefi/31206&quot;  _blank&gt;previous question about PHP under IIS&lt;/a&gt; (ick).&lt;br&gt;
&lt;br&gt;
I&apos;ve persuaded the CTO to allow me to switch to Apache2 as we migrate the production server to new hardware. I figured now would be a good time to upgrade to PHP5 and MySQL5 as well--because I like pain.&lt;br&gt;
&lt;br&gt;
Everything is going well, but my PHP scripts, &lt;i&gt;which I changed to use mysqli_connect instead of mysql_connect&lt;/i&gt;, are now getting access denied: &lt;br&gt;
&lt;br&gt;
&lt;b&gt;Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user &apos;calendar&apos;@&apos;localhost&apos; (using password: YES)&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
Where is gets weird: With the same password and username I can login to mysql from the command prompt. Also, my install of phpmyadmin is working just fine, so PHP *can* talk to the mysql service. &lt;br&gt;
&lt;br&gt;
What am I doing wrong? I dont think this is the issue, but just for kicks here is the function that&apos;s throwing the error:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
$dbhost=&quot;localhost&quot;;  		 &lt;br&gt;
$dbusername=&quot;calendar&quot;;			  &lt;br&gt;
$dbuserpass=&quot;____&quot;;			// obscured for public consumption	&lt;br&gt;
$default_dbname=&quot;calendar&quot;;&lt;br&gt;
&lt;br&gt;
$mysqli_ERRNO = &apos;;&lt;br&gt;
$mysqli_ERROR = &apos;;&lt;br&gt;
&lt;br&gt;
function db_connect($dbname=&apos;) {&lt;br&gt;
	global $dbhost, $dbusername, $dbuserpass;&lt;br&gt;
	global $mysqli_ERRNO, $mysqli_ERROR;&lt;br&gt;
&lt;br&gt;
	$link_id = mysqli_connect($dbhost, $dbusername, $dbuserpass, $default_dbname);&lt;br&gt;
	if (!link_id) {&lt;br&gt;
		$mysqli_ERRNO = 0;&lt;br&gt;
		$mysqli_ERROR = &quot;Connection to $dbhost failed.&quot;;&lt;br&gt;
		return 0;&lt;br&gt;
		}&lt;br&gt;
&lt;br&gt;
	ELSE IF (empty($dbname) &amp;amp;&amp;amp; !mysqli_select_db($default_dbname)) {&lt;br&gt;
		$mysqli_ERRNO = mysqli_errno();&lt;br&gt;
		$mysqli_ERROR = mysqli_error();&lt;br&gt;
		return 0;&lt;br&gt;
		}&lt;br&gt;
&lt;br&gt;
	ELSE IF (!empty($dbname) &amp;amp;&amp;amp; !mysqli_select_db($dbname)) {&lt;br&gt;
		$mysqli_ERRNO = mysqli_errno();&lt;br&gt;
		$mysqli_ERROR = mysqli_error();&lt;br&gt;
		return 0;&lt;br&gt;
		}&lt;br&gt;
&lt;br&gt;
	ELSE RETURN $link_id;&lt;br&gt;
}&lt;br&gt;
&lt;/font&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.31982</guid>
	<pubDate>Thu, 02 Feb 2006 14:34:58 -0800</pubDate>
	<category>access</category>
	<category>apache2</category>
	<category>apachemodule</category>
	<category>denied</category>
	<category>mysql5</category>
	<category>php5</category>
	<category>windowsservice</category>
	<dc:creator>CaptApollo</dc:creator>
	</item>
	<item>
	<title>Does PHP5&apos;s newfound SOAP functionality truly support complex types? </title>
	<link>http://ask.metafilter.com/9487/Does%2DPHP5s%2Dnewfound%2DSOAP%2Dfunctionality%2Dtruly%2Dsupport%2Dcomplex%2Dtypes</link>	
	<description>Does PHP5&apos;s newfound SOAP functionality truly support complex types? [more inside] While quite experienced with PHP, I&apos;m fairly new to Object Orienteering and SOAP.  During my trials in this magical world of magic and adventure, I&apos;ve come to the conclusion that, while Zope claims to support complex types in PHP5, its support is not as full as one would hope.&lt;br&gt;
&lt;br&gt;
Case in point: I&apos;m using PHP to interact with a Win2K3/IIS webservice.  The WSDL is valid, I can call any of the 20 functions available to me without incident, the returned XML is perfect, and the resulting objects are properly populated, with two exceptions, which look like:&lt;br&gt;
&lt;pre&gt;stdClass Object&lt;br&gt;
(&lt;br&gt;
    [GetProjectResult] =&amp;gt; stdClass Object&lt;br&gt;
        (&lt;br&gt;
            [returnData] =&amp;gt; stdClass Object&lt;br&gt;
                (&lt;br&gt;
                    [templateSections] =&amp;gt; stdClass Object&lt;br&gt;
                        (&lt;br&gt;
                            [TemplateSection] =&amp;gt; stdClass Object&lt;br&gt;
                                (&lt;br&gt;
                                    [variables] =&amp;gt; stdClass Object&lt;br&gt;
                                        (&lt;br&gt;
                                            [TemplateVariable] =&amp;gt; &lt;br&gt;
                                        )&lt;br&gt;
                                )&lt;br&gt;
                        )&lt;br&gt;
                    [childTemplates] =&amp;gt; &lt;br&gt;
                    [childProjects] =&amp;gt; &lt;br&gt;
                )&lt;br&gt;
            [success] =&amp;gt; 1&lt;br&gt;
            [failureCode] =&amp;gt; 0&lt;br&gt;
            [failureReason] =&amp;gt; &lt;br&gt;
            [failureLocalizedMessage] =&amp;gt; &lt;br&gt;
        )&lt;br&gt;
)&lt;/pre&gt;&lt;br&gt;
Based on the WSDL (which I would love to post, but security and confidentiality prevent me from doing so) the object&apos;s structure looks more or less correct, but every instance in which an array of objects is required is instead NULL.  Both of these methods function properly when invoked from a C# .net environment.  Flash MX 2004 seems to choke in exactly the same way, I&apos;ve been told.&lt;br&gt;
&lt;br&gt;
I found &lt;a href=&quot;http://bugs.php.net/bug.php?id=29385&quot;&gt;this documented PHP bug&lt;/a&gt; which sounds appropriate but refers only to SoapServer and has yet to be fixed.  I considered implementing the code with PEAR::SOAP rather than PHP&apos;s internal functionality, but PEAR::SOAP refuses to install and throws an error merely upon being require()&apos;d.  (&lt;a href=&quot;http://pear.php.net/bugs/bug.php?id=1492&quot;&gt;Bug&lt;/a&gt;; fix doesn&apos;t work.)  nuSOAP seems like an overly-complicated solution, and my life would be made vastly easier if I could get PHP5&apos;s SOAP to function right out of the &lt;s&gt;box&lt;/s&gt; .tar.gz.&lt;br&gt;
&lt;br&gt;
The question: Is PHP5&apos;s SOAP support broken, or am I doing something wrong to result in half-populated objects?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2004:site.9487</guid>
	<pubDate>Tue, 17 Aug 2004 14:50:21 -0800</pubDate>
	<category>development</category>
	<category>php</category>
	<category>php5</category>
	<category>programming</category>
	<category>soap</category>
	<category>software</category>
	<category>typing</category>
	<category>xml</category>
	<dc:creator>Danelope</dc:creator>
	</item>
	
	</channel>
</rss>

