<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>alt.comp.lang.php Google Group</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php</link>
  <description>Discussion of PHP scripting</description>
  <language>en</language>
  <item>
  <title>Re: starting session only if valid PHPSESSID is available</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/29e325379d38bb07/7cb915316ab978e6?show_docid=7cb915316ab978e6</link>
  <description>
  anze wrote: &lt;br&gt; I am not sure what you mean by &#39;valid sessionid&#39;. What on your site &lt;br&gt; would determine if the sessionid is valid or not? &lt;br&gt; But anyhow, I will take a stab at what I think you are asking. &lt;br&gt; I keep the current sessionid in a DB and on every page served up I &lt;br&gt; change it. So my process is this. &lt;br&gt; 1. Check the sessionid against the DB.
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/29e325379d38bb07/7cb915316ab978e6?show_docid=7cb915316ab978e6</guid>
  <author>
  scott.e.john...@att.net
  (Scott Johnson)
  </author>
  <pubDate>Sat, 21 nov 2009 19:48:17 UT
</pubDate>
  </item>
  <item>
  <title>starting session only if valid PHPSESSID is available</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/29e325379d38bb07/877f436e58c4bf7d?show_docid=877f436e58c4bf7d</link>
  <description>
  Hi! &lt;br&gt; I was wondering if it was possible to check validity of PHPSESSID &lt;br&gt; cookie without actually sending the user the new cookie if it is not &lt;br&gt; valid? &lt;br&gt; What I want is this: &lt;br&gt; 1) user sends no cookie - no session started &lt;br&gt; 2) user sends a valid PHPSESSID cookie - session started &lt;br&gt; 3) user sends an invalid PHPSESSID cookie - no session started.
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/29e325379d38bb07/877f436e58c4bf7d?show_docid=877f436e58c4bf7d</guid>
  <author>
  anzen...@volja.net
  (anze)
  </author>
  <pubDate>Sat, 21 nov 2009 12:34:51 UT
</pubDate>
  </item>
  <item>
  <title>Re: Amending record error</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/204497f62badaad4?show_docid=204497f62badaad4</link>
  <description>
  It&#39;s funny how simply setting out the problem helps focus your mind, as so &lt;br&gt; often happens I have sorted this problem.And you dont get as many funny &lt;br&gt; looks as you do if you talk to yourself. &lt;br&gt; I was getting too complicated and simply finding all of the open lkines and &lt;br&gt; renumbering them all worked fine.
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/204497f62badaad4?show_docid=204497f62badaad4</guid>
  <author>
  nospamderekbla...@nospamblueyonder.co.uk
  (Derek @ Blueyonder)
  </author>
  <pubDate>Tue, 17 nov 2009 16:24:08 UT
</pubDate>
  </item>
  <item>
  <title>Re: Amending record error</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/2fa07b4b496d3693?show_docid=2fa07b4b496d3693</link>
  <description>
  Sorry the data table is alll screwed up, not sure if people will be able to &lt;br&gt; follow this &lt;br&gt; Derek
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/2fa07b4b496d3693?show_docid=2fa07b4b496d3693</guid>
  <author>
  nospamderekbla...@nospamblueyonder.co.uk
  (Derek @ Blueyonder)
  </author>
  <pubDate>Tue, 17 nov 2009 13:24:20 UT
</pubDate>
  </item>
  <item>
  <title>Amending record error</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/90fcdc2bf720262a?show_docid=90fcdc2bf720262a</link>
  <description>
  Hi &lt;br&gt; I am currently updating a call logging system that stores customer details &lt;br&gt; and problems. &lt;br&gt; One of the things this system does is record where equipment is loaned to a &lt;br&gt; customer which their own is being repaired. &lt;br&gt; The system can add items to a list but there is a requirement to allow any &lt;br&gt; one of the lines to be removed from the list, say where the item has been
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/90fcdc2bf720262a?show_docid=90fcdc2bf720262a</guid>
  <author>
  nospamderekbla...@nospamblueyonder.co.uk
  (Derek @ Blueyonder)
  </author>
  <pubDate>Tue, 17 nov 2009 13:23:18 UT
</pubDate>
  </item>
  <item>
  <title>Re: Using PHP to write html snippet into Javascript</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/93ff5f3f97d1078d?show_docid=93ff5f3f97d1078d</link>
  <description>
  Write a wrapper function for creating a javascript variable e.g. &lt;br&gt; print &amp;quot;&amp;lt;script&amp;gt; var content=&#39;&#39;&amp;quot;; &lt;br&gt; $html=file(&#39;htmlfile.html&#39;); &lt;br&gt; foreach ($html as $line) { &lt;br&gt; print &amp;quot;content+=&#39;&amp;quot; . $line . &amp;quot;\\n&#39;;\n&amp;quot;; &lt;br&gt; print &amp;quot;&amp;lt;/script&amp;gt;&amp;quot;; &lt;br&gt; - note you&#39;re also going to have to think about how you deal with &lt;br&gt; quotes inside the code you&#39;re assigning to the variable.
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/93ff5f3f97d1078d?show_docid=93ff5f3f97d1078d</guid>
  <author>
  colin.mckin...@gmail.com
  (C.)
  </author>
  <pubDate>Mon, 16 nov 2009 13:13:09 UT
</pubDate>
  </item>
  <item>
  <title>Re: Using PHP to write html snippet into Javascript</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/123b9a9ab3573f9f?show_docid=123b9a9ab3573f9f</link>
  <description>
  That&#39;s interesting. Not sure how true it is though...or to what &lt;br&gt; degree. I&#39;ll check that out when I get a chance. &lt;br&gt; However my philosophy is to develop websites for people...not robots. &lt;br&gt; If the website has quality content then the visitors will come.
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/123b9a9ab3573f9f?show_docid=123b9a9ab3573f9f</guid>
  <author>
  ptmcna...@googlemail.com
  (macca)
  </author>
  <pubDate>Mon, 16 nov 2009 12:21:59 UT
</pubDate>
  </item>
  <item>
  <title>Re: Using PHP to write html snippet into Javascript</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/bc72c82a7542e3e6?show_docid=bc72c82a7542e3e6</link>
  <description>
  My understanding is that Google are liable to &amp;quot;mark down&amp;quot; pages where &lt;br&gt; there is a substantial difference between content seen by the &amp;quot;normal&amp;quot; &lt;br&gt; user with JS and by Google&#39;s robots which see the &amp;lt;noscript&amp;gt; content - I &lt;br&gt; have read suggestions that &amp;quot;display: none&amp;quot; is a technique that is &lt;br&gt; particularly disfavoured.
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/bc72c82a7542e3e6?show_docid=bc72c82a7542e3e6</guid>
  <author>
  j...@starmarkassociates.co.uk
  (John Geddes)
  </author>
  <pubDate>Mon, 16 nov 2009 11:29:50 UT
</pubDate>
  </item>
  <item>
  <title>Re: Using PHP to write html snippet into Javascript</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/d98ec75cf10472c8?show_docid=d98ec75cf10472c8</link>
  <description>
  Would it not be easier to hide the text that you dont want to be seen &lt;br&gt; using css (display:none) by wrapping the text in a div and then use &lt;br&gt; the javascript onlcick to change the display to block when the user &lt;br&gt; clicks on it? &lt;br&gt; &amp;lt;script type=&amp;quot;text/css&amp;quot;&amp;gt; &lt;br&gt; function showMore(divNumber) { &lt;br&gt; var showDiv = document.getElementById(&#39;hidde n_&#39;+divNumber);
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/d98ec75cf10472c8?show_docid=d98ec75cf10472c8</guid>
  <author>
  ptmcna...@googlemail.com
  (macca)
  </author>
  <pubDate>Mon, 16 nov 2009 10:06:53 UT
</pubDate>
  </item>
  <item>
  <title>Re: Using PHP to write html snippet into Javascript</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/fb29438ac94cedfe?show_docid=fb29438ac94cedfe</link>
  <description>
  -----BEGIN PGP SIGNED MESSAGE----- &lt;br&gt; Hash: SHA1 &lt;br&gt; Hello, &lt;br&gt; well I don&#39;t know the specifications, but this sonds as a strange way to do &lt;br&gt; things, but anyway. &lt;br&gt; I think the new line comes from the htm file itself. &lt;br&gt; You can try to read the file into a varible and then use the trim() function to &lt;br&gt; remvoe the newlines.
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/fb29438ac94cedfe?show_docid=fb29438ac94cedfe</guid>
  <author>
  m...@bananas-playground.net
  (Johannes Keßler)
  </author>
  <pubDate>Mon, 16 nov 2009 09:00:47 UT
</pubDate>
  </item>
  <item>
  <title>Using PHP to write html snippet into Javascript</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/0640c18b5e1653e3?show_docid=0640c18b5e1653e3</link>
  <description>
  For my CMS-like application, I want to store each section of HTML in a &lt;br&gt; file that be output by PHP in two ways: &lt;br&gt; * as HTML directly into the page &lt;br&gt; * as a Javascript variable &lt;br&gt; - without adding much processor load. &lt;br&gt; (This is so that I can serve the first section of text to JS and non-JS &lt;br&gt; users as HTML, and then, for JS users only, add an onclick function that
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/0640c18b5e1653e3?show_docid=0640c18b5e1653e3</guid>
  <author>
  j...@starmarkassociates.co.uk
  (John Geddes)
  </author>
  <pubDate>Mon, 16 nov 2009 08:38:35 UT
</pubDate>
  </item>
  <item>
  <title>Re: Is it possible to use PHP variables in .htaccess?</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/5fe0581ec1406d46/c2d5809828134259?show_docid=c2d5809828134259</link>
  <description>
  -----BEGIN PGP SIGNED MESSAGE----- &lt;br&gt; Hash: SHA512 &lt;br&gt; on Sáb 11 Oct 2008 22:17, &lt;br&gt; I think that is not possible... &lt;br&gt; Nop... the right way is to use the ini_set() function: &lt;br&gt; &amp;lt;?php &lt;br&gt; $server_include_path = ini_get(&amp;quot;include_path&amp;quot;); &lt;br&gt; $server_include_path .= &amp;quot;.:/another/path:/a/third/path &amp;quot;; &lt;br&gt; $new_path = dirname(__FILE__).&amp;quot;/../lib&amp;quot;;
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/5fe0581ec1406d46/c2d5809828134259?show_docid=c2d5809828134259</guid>
  <author>
  d...@coder.cl
  (Daniel Molina Wegener)
  </author>
  <pubDate>Wed, 11 nov 2009 18:07:51 UT
</pubDate>
  </item>
  <item>
  <title>Re: mysqli prepared statements - db framework</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/ca7c6879ff94a783?show_docid=ca7c6879ff94a783</link>
  <description>
  Argh, not really - posted too soon. :( &lt;br&gt; It won&#39;t work, result object is only available for usual SQL &lt;br&gt; statements, not for prepared statements. &lt;br&gt; I would appreciate some pointers. I have successfully built the DB &lt;br&gt; layer using direct MySQL statements, but... There must be a better &lt;br&gt; way. Anyone? &lt;br&gt; This MySQLi extension is such a mess... :(
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/ca7c6879ff94a783?show_docid=ca7c6879ff94a783</guid>
  <author>
  anzen...@volja.net
  (anze)
  </author>
  <pubDate>Mon, 09 nov 2009 14:49:25 UT
</pubDate>
  </item>
  <item>
  <title>Re: mysqli prepared statements - db framework</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/bb51d405a8345935?show_docid=bb51d405a8345935</link>
  <description>
  C., thanks for the answer... I can&#39;t say I agree to most of the things &lt;br&gt; you wrote (as they do not apply to the case I have described), but you &lt;br&gt; have nevertheless helped me with the answer. So - thank you! :) &lt;br&gt; Of course - &amp;quot;as long as...&amp;quot; :) &lt;br&gt; IMHO the DB abstraction layer should not allow the programmer to issue
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/bb51d405a8345935?show_docid=bb51d405a8345935</guid>
  <author>
  anzen...@volja.net
  (anze)
  </author>
  <pubDate>Mon, 09 nov 2009 14:38:06 UT
</pubDate>
  </item>
  <item>
  <title>Re: mysqli prepared statements - db framework</title>
  <link>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/8d3052f7061bff17?show_docid=8d3052f7061bff17</link>
  <description>
  As long as you run any variable which is not null, and does not &lt;br&gt; contain just digits through mysql_real_escape_string() then there is &lt;br&gt; no risk of injection attack. &lt;br&gt; ? &lt;br&gt; I&#39;m not sure of the details of prepared statements on MySQL, but I &lt;br&gt; would be surprised if they are carried out in a single round trip &lt;br&gt; (they certainly are not for other DBMS&#39;s I&#39;ve used). For most
  </description>
  <guid isPermaLink="true">http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/8d3052f7061bff17?show_docid=8d3052f7061bff17</guid>
  <author>
  colin.mckin...@gmail.com
  (C.)
  </author>
  <pubDate>Mon, 09 nov 2009 13:18:18 UT
</pubDate>
  </item>
  </channel>
</rss>
