<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.nl/group/alt.comp.lang.php</id>
  <title type="text">alt.comp.lang.php Google Group</title>
  <subtitle type="text">
  Discussion of PHP scripting
  </subtitle>
  <link href="/group/alt.comp.lang.php/feed/atom_v1_0_msgs.xml" rel="self" title="alt.comp.lang.php feed"/>
  <updated>2009-11-21T19:48:17Z</updated>
  <generator uri="http://groups.google.nl" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Scott Johnson</name>
  <email>scott.e.john...@att.net</email>
  </author>
  <updated>2009-11-21T19:48:17Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/29e325379d38bb07/7cb915316ab978e6?show_docid=7cb915316ab978e6</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/29e325379d38bb07/7cb915316ab978e6?show_docid=7cb915316ab978e6"/>
  <title type="text">Re: starting session only if valid PHPSESSID is available</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>anze</name>
  <email>anzen...@volja.net</email>
  </author>
  <updated>2009-11-21T12:34:51Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/29e325379d38bb07/877f436e58c4bf7d?show_docid=877f436e58c4bf7d</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/29e325379d38bb07/877f436e58c4bf7d?show_docid=877f436e58c4bf7d"/>
  <title type="text">starting session only if valid PHPSESSID is available</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Derek @ Blueyonder</name>
  <email>nospamderekbla...@nospamblueyonder.co.uk</email>
  </author>
  <updated>2009-11-17T16:24:08Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/204497f62badaad4?show_docid=204497f62badaad4</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/204497f62badaad4?show_docid=204497f62badaad4"/>
  <title type="text">Re: Amending record error</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Derek @ Blueyonder</name>
  <email>nospamderekbla...@nospamblueyonder.co.uk</email>
  </author>
  <updated>2009-11-17T13:24:20Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/2fa07b4b496d3693?show_docid=2fa07b4b496d3693</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/2fa07b4b496d3693?show_docid=2fa07b4b496d3693"/>
  <title type="text">Re: Amending record error</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Derek @ Blueyonder</name>
  <email>nospamderekbla...@nospamblueyonder.co.uk</email>
  </author>
  <updated>2009-11-17T13:23:18Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/90fcdc2bf720262a?show_docid=90fcdc2bf720262a</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/4be5ea85b3850697/90fcdc2bf720262a?show_docid=90fcdc2bf720262a"/>
  <title type="text">Amending record error</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>C.</name>
  <email>colin.mckin...@gmail.com</email>
  </author>
  <updated>2009-11-16T13:13:09Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/93ff5f3f97d1078d?show_docid=93ff5f3f97d1078d</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/93ff5f3f97d1078d?show_docid=93ff5f3f97d1078d"/>
  <title type="text">Re: Using PHP to write html snippet into Javascript</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>macca</name>
  <email>ptmcna...@googlemail.com</email>
  </author>
  <updated>2009-11-16T12:21:59Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/123b9a9ab3573f9f?show_docid=123b9a9ab3573f9f</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/123b9a9ab3573f9f?show_docid=123b9a9ab3573f9f"/>
  <title type="text">Re: Using PHP to write html snippet into Javascript</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>John Geddes</name>
  <email>j...@starmarkassociates.co.uk</email>
  </author>
  <updated>2009-11-16T11:29:50Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/bc72c82a7542e3e6?show_docid=bc72c82a7542e3e6</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/bc72c82a7542e3e6?show_docid=bc72c82a7542e3e6"/>
  <title type="text">Re: Using PHP to write html snippet into Javascript</title>
  <summary type="html" xml:space="preserve">
  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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>macca</name>
  <email>ptmcna...@googlemail.com</email>
  </author>
  <updated>2009-11-16T10:06:53Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/d98ec75cf10472c8?show_docid=d98ec75cf10472c8</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/d98ec75cf10472c8?show_docid=d98ec75cf10472c8"/>
  <title type="text">Re: Using PHP to write html snippet into Javascript</title>
  <summary type="html" xml:space="preserve">
  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);
  </summary>
  </entry>
  <entry>
  <author>
  <name>Johannes Keßler</name>
  <email>m...@bananas-playground.net</email>
  </author>
  <updated>2009-11-16T09:00:47Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/fb29438ac94cedfe?show_docid=fb29438ac94cedfe</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/fb29438ac94cedfe?show_docid=fb29438ac94cedfe"/>
  <title type="text">Re: Using PHP to write html snippet into Javascript</title>
  <summary type="html" xml:space="preserve">
  -----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.
  </summary>
  </entry>
  <entry>
  <author>
  <name>John Geddes</name>
  <email>j...@starmarkassociates.co.uk</email>
  </author>
  <updated>2009-11-16T08:38:35Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/0640c18b5e1653e3?show_docid=0640c18b5e1653e3</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/80dbd113fbfe3578/0640c18b5e1653e3?show_docid=0640c18b5e1653e3"/>
  <title type="text">Using PHP to write html snippet into Javascript</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>Daniel Molina Wegener</name>
  <email>d...@coder.cl</email>
  </author>
  <updated>2009-11-11T18:07:51Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/5fe0581ec1406d46/c2d5809828134259?show_docid=c2d5809828134259</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/5fe0581ec1406d46/c2d5809828134259?show_docid=c2d5809828134259"/>
  <title type="text">Re: Is it possible to use PHP variables in .htaccess?</title>
  <summary type="html" xml:space="preserve">
  -----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;;
  </summary>
  </entry>
  <entry>
  <author>
  <name>anze</name>
  <email>anzen...@volja.net</email>
  </author>
  <updated>2009-11-09T14:49:25Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/ca7c6879ff94a783?show_docid=ca7c6879ff94a783</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/ca7c6879ff94a783?show_docid=ca7c6879ff94a783"/>
  <title type="text">Re: mysqli prepared statements - db framework</title>
  <summary type="html" xml:space="preserve">
  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... :(
  </summary>
  </entry>
  <entry>
  <author>
  <name>anze</name>
  <email>anzen...@volja.net</email>
  </author>
  <updated>2009-11-09T14:38:06Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/bb51d405a8345935?show_docid=bb51d405a8345935</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/bb51d405a8345935?show_docid=bb51d405a8345935"/>
  <title type="text">Re: mysqli prepared statements - db framework</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
  <entry>
  <author>
  <name>C.</name>
  <email>colin.mckin...@gmail.com</email>
  </author>
  <updated>2009-11-09T13:18:18Z</updated>
  <id>http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/8d3052f7061bff17?show_docid=8d3052f7061bff17</id>
  <link href="http://groups.google.nl/group/alt.comp.lang.php/browse_thread/thread/17ec0cc983a77a33/8d3052f7061bff17?show_docid=8d3052f7061bff17"/>
  <title type="text">Re: mysqli prepared statements - db framework</title>
  <summary type="html" xml:space="preserve">
  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
  </summary>
  </entry>
</feed>
