Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't know PHP very well, but I can infer stuff and I can google stuff. If I get stuff wrong, can someone please correct me.</p> <ul> <li><a href="http://php.net/manual/en/function.isset.php" rel="nofollow noreferrer">isset()</a>: whilst not a direct analogy, one should use <a href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7fbb.html" rel="nofollow noreferrer">structKeyExists()</a> to do variable checking like this. <code>isset()</code> is mostly directly equivalent to <a href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7fbd.html" rel="nofollow noreferrer">isDefined()</a>, but one should avoid <code>isDefined()</code> if possible due to its propensity for returning false positives;</li> <li><a href="http://www.w3schools.com/php/php_post.asp" rel="nofollow noreferrer">$_POST variables</a> are the same as FORM-scoped variables;</li> <li><a href="http://php.net/manual/en/function.stripslashes.php" rel="nofollow noreferrer">stripslashes()</a> unescapes the backslashes that escape quotes within a string;</li> <li><code>.</code> (dot) is the <a href="http://php.net/manual/en/language.operators.string.php" rel="nofollow noreferrer">string-concatenation operator</a>, like <code>&amp;</code> in CFML;</li> <li><a href="http://php.net/manual/en/function.fopen.php" rel="nofollow noreferrer">fopen()</a> opens a file, and the "w" argument opens it for writing. So like the equivalent usage of <a href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6d9c.html" rel="nofollow noreferrer">fileOpen()</a> in CFML.</li> <li><a href="http://php.net/manual/en/function.fwrite.php" rel="nofollow noreferrer">fwrite()</a> writes to said file.</li> <li><code>=== false</code> bit checks to see if there was a file-write error, which has no direct equivalent in, CFML, so I guess the analogy would be to put a try/catch around the file ops (which one should always do anyhow).</li> <li><a href="http://php.net/manual/en/function.echo.php" rel="nofollow noreferrer">echo()</a> is the equivalent of <a href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6da1.html" rel="nofollow noreferrer">writeOutput()</a> (or just &lt;cfoutput&gt;);</li> <li><a href="http://php.net/manual/en/function.fclose.php" rel="nofollow noreferrer">fclose()</a> is the same as <a href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6da1.html" rel="nofollow noreferrer">fileClose()</a>.</li> </ul> <p>That's about it: I think the rest of it is self-explanatory.</p> <p>One thing I will say is that it was pretty easy to (correctly ~) guess all this stuff, or google it. I just googled "php fopen", "php dot operator" etc (mostly to just get the link to the docs). So you could perhaps have done this yourself.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload