<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. https://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="https://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:php</id>
  <title>The PHP Community</title>
  <subtitle>The PHP Community</subtitle>
  <author>
    <name>The PHP Community</name>
  </author>
  <link rel="alternate" type="text/html" href="https://php.livejournal.com/"/>
  <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom"/>
  <updated>2020-12-21T14:45:29Z</updated>
  <lj:journal userid="595050" username="php" type="community"/>
  <link rel="service.feed" type="application/x.atom+xml" href="https://php.livejournal.com/data/atom" title="The PHP Community"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:684502</id>
    <author>
      <name>apiconphp</name>
    </author>
    <lj:poster user="apiconphp" userid="87481968"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/684502.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=684502"/>
    <title>¿ Que pasó con esta comunidad PHP ? </title>
    <published>2020-12-21T14:45:28Z</published>
    <updated>2020-12-21T14:45:29Z</updated>
    <content type="html">&lt;p&gt;Hay que revivir esta comunidad, PHP está mas vivo que nunca con su nueva versión PHP 8 liberada el pasado 26 de Noviembre 2020, en el año de la Pandemia COVID 19&lt;/p&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:684216</id>
    <author>
      <name>hdbucket</name>
    </author>
    <lj:poster user="hdbucket" userid="84420735"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/684216.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=684216"/>
    <title>Hmm...</title>
    <published>2018-03-25T09:06:35Z</published>
    <updated>2018-03-25T09:06:35Z</updated>
    <content type="html">&lt;p&gt;Is this community dead or something?&lt;br&gt;&lt;/p&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:683842</id>
    <author>
      <name>hdbucket</name>
    </author>
    <lj:poster user="hdbucket" userid="84420735"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/683842.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=683842"/>
    <title>Hello!</title>
    <published>2018-03-25T08:52:07Z</published>
    <updated>2018-03-25T08:52:07Z</updated>
    <content type="html">&lt;p&gt;I just started to use LJ, so i thought it would be nice to have some friends here.&lt;br&gt; I'm into coding and programming. I recently started to practice PHP and now i found this community.&lt;br&gt; So please don't judge me i'm just a kid.&lt;/p&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:683431</id>
    <author>
      <name>le_trombone</name>
    </author>
    <lj:poster user="le_trombone" userid="7785871"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/683431.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=683431"/>
    <title>$_SESSION Use</title>
    <published>2012-03-26T18:17:06Z</published>
    <updated>2012-03-26T18:17:06Z</updated>
    <content type="html">I have some php 4 code that is being tested on a php 5 site. The (fairly simplistic) login uses a $_SESSION variable to track a valid login, but under php 5 it seems to lose its values when moving to a different php page.&lt;br /&gt;&lt;br /&gt;A quick scan of the documents didn't show anything obvious about version 4 vs version 5 differences. The code uses session_start(), then checks $_SESSION['loginstuff_notactualkey'] for the user name.&lt;br /&gt;&lt;br /&gt;Is this a coding practice that should be changed with version 5?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:682814</id>
    <author>
      <name>le_trombone</name>
    </author>
    <lj:poster user="le_trombone" userid="7785871"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/682814.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=682814"/>
    <title>Converting MS-Access Forms To PHP</title>
    <published>2011-09-26T19:05:42Z</published>
    <updated>2011-09-26T19:05:42Z</updated>
    <content type="html">I've got a Microsoft Access application that I'm going to have to convert to PHP and another database (PostGres or SQLite). The db portion I could do by hand if I needed to (the tables are not complicated). It's the forms that I'm worried about.&lt;br /&gt;&lt;br /&gt;Does anyone have any experience with a tool for converting Access forms to PHP code? I found &lt;a href="http://dbconvert.com/" target="_blank" rel="nofollow"&gt;DB Convert&lt;/a&gt;, which looks promising, but I'd like to know about anyone's first-hand experiences.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:682396</id>
    <author>
      <name>scotchsour</name>
    </author>
    <lj:poster user="scotchsour" userid="3324743"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/682396.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=682396"/>
    <title>Small problem with autoplay</title>
    <published>2011-05-24T01:22:27Z</published>
    <updated>2011-05-24T01:22:27Z</updated>
    <content type="html">I am using a video plugin for my site but one of the videos from veoh keeps going to autoplay, so I was wondering if I could get a small bit of help since this is old and the developer is no longer updating this plugin. I want to put a new piece of code to stop the autoplaying into the video embedder plugin.&lt;br /&gt;&lt;br /&gt;My embedded video:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;embed src="&lt;a target='_blank' href='http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=v5.6.0.1123&amp;permalinkId=v20995555PJT9Qaah&amp;player=videodetailsembedded&amp;videoAutoPlay=0&amp;id=2895821' rel='nofollow'&gt;http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=v5.6.0.1123&amp;permalinkId=v20995555PJT9Qaah&amp;player=videodetailsembedded&amp;videoAutoPlay=0&amp;id=2895821&lt;/a&gt;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="410" height="341" id="veohFlashPlayerEmbed" name="veohFlashPlayerEmbed"&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The part I found for the plugin to work:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;case 'veoh':&lt;br /&gt;			$content = wp_widget_video_buildEmbed('&lt;a target='_blank' href='http://www.veoh.com/videodetails2.swf?player=videodetailsembedded&amp;amp;type=v&amp;amp;permalinkId=' rel='nofollow'&gt;http://www.veoh.com/videodetails2.swf?player=videodetailsembedded&amp;amp;type=v&amp;amp;permalinkId=&lt;/a&gt;'.$id.'&amp;amp;id=anonymous', $width, $height);&lt;br /&gt;		&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you in Advance.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:681768</id>
    <author>
      <name>ink_create</name>
    </author>
    <lj:poster user="ink_create" userid="34741028"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/681768.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=681768"/>
    <title>Inkwell Creative Hiring Web Developer</title>
    <published>2011-02-11T01:32:53Z</published>
    <updated>2011-02-11T01:32:53Z</updated>
    <content type="html">Inkwell Creative, a growing Portland, Oregon company focusing on web design, graphic design, interactive media, video and branding, is looking to hire a web developer. We are seeking a hard working team player and someone who is forward thinking when it comes to technology. You must be able to work with us in a collaborative team setting, know many coding and web programming languages and have a strong portfolio. &lt;br /&gt; &lt;br /&gt; Requirements:&lt;br /&gt; 5+ years of experience&lt;br /&gt; Strong portfolio&lt;br /&gt; Must be collaborative&lt;br /&gt; Knowledge of many coding/web development languages&lt;br /&gt; Knowledge of CSS and HTML 5, Content Management Systems, Flash, SEO programming, Integration into Databases&lt;br /&gt; Knowledge of iPhone apps a plus&lt;br /&gt; &lt;br /&gt; Compensation: &lt;br /&gt; DOE. Benefits and paid-for parking. This is a salary position.&lt;br /&gt; &lt;br /&gt; TO APPLY:&lt;br /&gt; Email a cover letter, resume and link to your online portfolio to hr@inkwellgroup.com. Please include in your cover letter any outside hobbies, passions and interests. We kindly request no phone calls and no employment agencies.&lt;br /&gt; &lt;br /&gt; APPLICANTS WITHOUT A COVER LETTER, RESUME AND PORTFOLIO WILL NOT BE CONSIDERED</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:680974</id>
    <author>
      <name>mrflash818</name>
    </author>
    <lj:poster user="mrflash818" userid="14542216"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/680974.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=680974"/>
    <title>Favorite web development editors</title>
    <published>2011-01-02T17:11:12Z</published>
    <updated>2011-01-02T17:11:12Z</updated>
    <content type="html">Greets,&lt;br /&gt;&lt;br /&gt;I&amp;nbsp;am starting to dabble in web programming, again, after a long hiatus. I am a Debian/Linux guy, and am hoping some folks that do web development can recommend or share which web development editors and tools they have used, liked or disliked.&lt;br /&gt;&lt;br /&gt;I&amp;nbsp;tend to use vi/emacs for programming, but think to do web site development a 'dreamweaver' or other similar tool, that helps organize and edit pages and text files for PHP, HTML, CSS, and JS would probably be better than vi or emacs :)&lt;br /&gt;&lt;br /&gt;Let me know, and thanka.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:680758</id>
    <author>
      <name>Immortal (so far)</name>
    </author>
    <lj:poster user="immortalsofar" userid="743205"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/680758.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=680758"/>
    <title>You can string functions together in PHP!</title>
    <published>2010-11-11T11:07:19Z</published>
    <updated>2010-11-11T11:07:19Z</updated>
    <content type="html">Does anybody know when that happened?&lt;br /&gt;&lt;br /&gt;I just stumbled across it out of sheer desperation when I was using DOMXPath to access the text value of several single nodes:&lt;br /&gt;&lt;br /&gt;$title = $xpath-&amp;gt;query ('title', $ent)-&amp;gt;item (0)-&amp;gt;textContent;&lt;br /&gt;&lt;br /&gt;I'm absolutely certain that when I first started (4.0? 3.x?) this was illegal since you could not follow a function call with any operator on the return value. The parser simply did not allow it and so the above code could only be written:&lt;br /&gt;&lt;br /&gt;$nodelist = $xpath-&amp;gt;query ('title', $ent);&lt;br /&gt;$node = $nodelist-&amp;gt;item (0);&lt;br /&gt;$title = $node-&amp;gt;textContent;&lt;br /&gt;&lt;br /&gt;Of course, they didn't have objects then but the same was true of arrays:&lt;br /&gt;$myFunction ()[0] was illegal, now it's not.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:680454</id>
    <author>
      <name>Scott Francis Baker</name>
    </author>
    <lj:poster user="muerte" userid="1806"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/680454.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=680454"/>
    <title>Differences between the web and cli?</title>
    <published>2010-10-18T17:53:34Z</published>
    <updated>2010-10-18T17:53:34Z</updated>
    <content type="html">I&amp;nbsp;have a script that's working 100% fine when viewed as served by Apache. When I run it from the command line (i.e. php index.php)&amp;nbsp;I&amp;nbsp;get a DB connection error. Everything is the same, but when run from the command line it doesn't work. Any ideas on differences between the two methods of running the script?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:679656</id>
    <author>
      <name>Giro Batol</name>
    </author>
    <lj:poster user="giro_batol" userid="3225044"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/679656.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=679656"/>
    <title>OCPortal</title>
    <published>2010-06-24T18:26:10Z</published>
    <updated>2010-06-24T18:26:10Z</updated>
    <content type="html">Anyone had any experience with OC portal?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:678943</id>
    <author>
      <name>Calliphoridae</name>
    </author>
    <lj:poster user="pkbarbiedoll" userid="697617"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/678943.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=678943"/>
    <title>Calendar script</title>
    <published>2010-06-06T01:27:17Z</published>
    <updated>2010-06-06T01:27:17Z</updated>
    <content type="html">I'm looking for a calendar class or script that will drop into an existing application, where I can tell it where to find events, and it will populate these events on the given day in a month view.&lt;br /&gt;&lt;br /&gt;Every php calendar I've looked at so far has it's own date tables..  I'm really only needing the "shell" of the calendar.  &lt;br /&gt;&lt;br /&gt;Is there something like this available, or should I start writing my own?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:678754</id>
    <author>
      <name>Calliphoridae</name>
    </author>
    <lj:poster user="pkbarbiedoll" userid="697617"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/678754.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=678754"/>
    <title>Parsing stray greater/less than symbols in HTML</title>
    <published>2010-06-02T16:59:00Z</published>
    <updated>2010-06-02T16:59:00Z</updated>
    <content type="html">&lt;pre&gt;$str = "&lt;p&gt;This is a test.  This test is &amp;gt; that test, but is less than &amp;lt; the other test.   The previous test may be &lt;/pre&gt;&lt;div class='ljparseerror'&gt;[&lt;b&gt;Error:&lt;/b&gt; Irreparable invalid markup ('&amp;lt;the [...] test,&amp;gt;') in entry.  Owner must fix manually.  Raw contents below.]&lt;br /&gt;&lt;br /&gt;&lt;div style="width: 95%; overflow: auto"&gt;&amp;lt;pre&amp;gt;&amp;#36;str = &amp;quot;&amp;lt;p&amp;gt;This is a test.  This test is &amp;gt; that test, but is less than &amp;lt; the other test.   The previous test may be &amp;lt;the second test, but is likely&amp;gt; than the third test.   The fourth test may be &amp;lt; the first, but &amp;gt; than the last.  This is the end of the test string.&amp;lt;/p&amp;gt;&amp;quot;;&amp;lt;/pre&amp;gt;&lt;br /&gt;&lt;br /&gt;Need to identify and convert the legit, non HTML greater/less than signs to ASCII..   I&amp;#39;m running out of ideas, especially with the substrings: &lt;br /&gt;&lt;br /&gt;&amp;lt;pre&amp;gt;The previous test may be &amp;lt; the second test, but is likely &amp;gt; than the third test.&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;The fourth test may be &amp;lt; the first, but &amp;gt; than the last.&amp;lt;/pre&amp;gt;&lt;br /&gt;&lt;br /&gt;Anyone have a suggestion or hint on how to accomplish this?&lt;/div&gt;&lt;/div&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:677873</id>
    <author>
      <name>"My world of football" by Алексей Корнеев</name>
    </author>
    <lj:poster user="socialfootball" userid="14073363"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/677873.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=677873"/>
    <title>Startup is looking for developers (Moscow, Russia)</title>
    <published>2010-04-14T11:42:47Z</published>
    <updated>2010-04-14T11:42:47Z</updated>
    <content type="html">Hi there!&lt;br /&gt;Hope developers from Russia are reading this community, cause we're looking for great professionals in Moscow. Even got special prizes for them. We're  the team of Russian startup tournament called Harvest@GreenfieldProject. It'll be held on 17th-18th of April in Moscow. So if you're from Russia, pls read the text below and join our event!&lt;br /&gt;&lt;br /&gt;Разработчики – самые дефицитные специалисты в стартапах. Поэтому на новом Harvest (РИФ+КИБ edition) мы создали вам особые условия.&lt;br /&gt;&lt;br /&gt;Harvest (РИФ+КИБ edition) – стартап-турнир, на котором за 2 дня можно успеть то, что не получалось доделать месяцами. Победившая команда получит полностью оплаченную поездку на учёбу в летней бизнес-школе Ignite в Кембридже (Англия).&lt;br /&gt;&lt;br /&gt;17-18 апреля пройдёт отборочный турнир для стартапов любой степени готовности: от задумки, презентуемой впервые, до развитого проекта, которому не хватает рук. Как советует Ричард Брэнсон «К черту все! Берись и делай!»&lt;br /&gt;&lt;br /&gt;Участники выберут лучшие идеи, представленные в формате elevator-питчей, разобьются на команды и при поддержке экспертов проработают концепцию и бизнес-модель, создадут прототип и инвестиционный тизер.&lt;br /&gt;&lt;br /&gt;Выходные – лучшее время, чтобы поработать над проектом собственного бизнеса. Или найти проект, к которому захочется присоединиться. Harvest – это площадка, на которой можно “и себя показать, и других посмотреть”: найти единомышленников, бизнес-партнёров, обменяться контактами с будущими заказчиками или потенциальным боссом.&lt;br /&gt;&lt;br /&gt;Финалиста определят 23 апреля на Объединенной конференции РИФ+КИБ 2010. Чтобы пройти в финал, нужно сделать summary готового проекта на английском. А затем пройти телефонное интервью с представителем Кембриджского университета. Знание языка очень пригодится. &lt;br /&gt; &lt;br /&gt;Второй приз — участие в любой образовательной программе Start in Garage на ваш выбор.&lt;br /&gt;&lt;a name='cutid1-end'&gt;&lt;/a&gt;&lt;br /&gt;Подробная информация и регистрация участников на сайте стартап-турнира: &lt;a target='_blank' href='http://harvest.greenfield-project.ru/' rel='nofollow'&gt;http://harvest.greenfield-project.ru/&lt;/a&gt;&lt;br /&gt;Цена участия для разработчика составит всего 600 р. Снизить её еще на 20% можно, оплатив через интернет.&lt;br /&gt;&lt;br /&gt;Тем, кто зарегистрировался, достаточно приехать 17 апреля с ноутбуком, знаниями и опытом в МФПА на “Семёновской” (100 м. от метро). Остальное – интернет, питание, аудитории и интересных экспертов – обеспечит команда организаторов.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:677289</id>
    <author>
      <name>duckspeaker</name>
    </author>
    <lj:poster user="duckspeaker" userid="4784724"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/677289.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=677289"/>
    <title>Detect change in Radial Buttons</title>
    <published>2010-03-22T21:54:28Z</published>
    <updated>2010-03-22T21:54:28Z</updated>
    <content type="html">I have a project where people can select from a variety of items.&lt;br /&gt;When they&amp;rsquo;ve made a selection, I reduce the number of items available in a separate table that keeps count.&lt;br /&gt;&lt;br /&gt;Now I want to make it so that the user can edit his/her decision later.&amp;nbsp; That requires me to be able to (re)add items to the count that are no longer wanted/needed, and reduce the number of the new item taken.&lt;br /&gt;&lt;br /&gt;I&amp;rsquo;ve been using radial buttons in a form, because it only allows one item (of several) from each group of items.&lt;br /&gt;&lt;br /&gt;It&amp;rsquo;s easy for me to repopulate the form, and then update the user info&amp;hellip;&lt;br /&gt;&amp;hellip;.but I can&amp;rsquo;t wrap my head around how to detect a change from one item to the next so I can update my count.&lt;br /&gt;&lt;br /&gt;???&amp;nbsp; Thanks for any insight you can provide.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:676928</id>
    <author>
      <name>Elle</name>
    </author>
    <lj:poster user="elvishly" userid="13052789"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/676928.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=676928"/>
    <title>array_count_value</title>
    <published>2010-02-14T21:51:23Z</published>
    <updated>2010-02-14T22:01:54Z</updated>
    <content type="html">&lt;del&gt;Hello,&lt;br /&gt;&lt;br /&gt;Is it possible to rank &lt;code&gt;array_count_value()&lt;/code&gt; in order of... count?&lt;br /&gt;&lt;br /&gt;e.g.&lt;br /&gt;&lt;br /&gt;$array = array(1,1,2,2,2,3);&lt;br /&gt;array_count_value($array); &lt;br /&gt;&lt;br /&gt;It would output, in this order: 2, 1, 3 because 2 has the highest frequency.&lt;br /&gt;&lt;br /&gt;Thanks in advance!&lt;/del&gt;&lt;br /&gt;&lt;br /&gt;SOLVED!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:676671</id>
    <author>
      <name>duckspeaker</name>
    </author>
    <lj:poster user="duckspeaker" userid="4784724"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/676671.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=676671"/>
    <title>My variables are getting mixed up  --RESOLVED (I'm an idiot)</title>
    <published>2010-02-14T09:34:34Z</published>
    <updated>2010-02-14T09:44:00Z</updated>
    <content type="html">If I run the the code below, I get an unexpected result.&lt;br /&gt;I would expect &lt;br /&gt;&amp;nbsp; Camping&lt;br /&gt;&amp;nbsp; Nation&lt;br /&gt;&amp;nbsp; First&lt;br /&gt;&amp;nbsp; 33&lt;br /&gt;&amp;nbsp; 32&lt;br /&gt;&amp;nbsp; 31&lt;br /&gt;&amp;nbsp; 32&lt;br /&gt;&amp;nbsp; 32&lt;br /&gt;&amp;nbsp; 31&lt;br /&gt;Instead I get:---and I don't understand why.&amp;nbsp; Anyone able to help?&lt;br /&gt;&amp;nbsp; Camping&lt;br /&gt;&amp;nbsp; Camping&lt;br /&gt;&amp;nbsp; Camping&lt;br /&gt;&amp;nbsp; 33&lt;br /&gt;&amp;nbsp; 32&lt;br /&gt;&amp;nbsp; 31&lt;br /&gt;&amp;nbsp; 32&lt;br /&gt;&amp;nbsp; 31&lt;br /&gt;&amp;nbsp; 30&lt;br /&gt;&lt;br /&gt;--------------------------------- code snippet below ------------------------------&lt;br /&gt;&lt;br /&gt;$SixPM_form = &amp;quot;Camping&amp;quot;;&lt;br /&gt;$SevenPM_form = &amp;quot;Nation&amp;quot;;&lt;br /&gt;$EightPM_form = &amp;quot;First&amp;quot;;&lt;br /&gt;$CampingSixPM = &amp;quot;33&amp;quot;;&lt;br /&gt;$CampingSevenPM = &amp;quot;32&amp;quot;;&lt;br /&gt;$CampingEightPM = &amp;quot;31&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;if ($SixPM_form = &amp;quot;Camping&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $UpdateCampingSixPM = ($CampingSixPM - 1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;if ($SevenPM_form = &amp;quot;Camping&amp;quot;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {$UpdateCampingSevenPM = ($CampingSevenPM - 1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;if ($EightPM_form = &amp;quot;Camping&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $UpdateCampingEightPM = ($CampingEightPM - 1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;echo $SixPM_form;&lt;br /&gt;echo $SevenPM_form;&lt;br /&gt;echo $EightPM_form;&lt;br /&gt;echo $CampingSixPM;&lt;br /&gt;echo $CampingSevenPM;&lt;br /&gt;echo $CampingEightPM;&lt;br /&gt;echo $UpdateCampingSixPM;&lt;br /&gt;echo $UpdateCampingSevenPM;&lt;br /&gt;echo $UpdateCampingEightPM;&lt;a name='cutid1-end'&gt;&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:676531</id>
    <author>
      <name>Calliphoridae</name>
    </author>
    <lj:poster user="pkbarbiedoll" userid="697617"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/676531.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=676531"/>
    <title>Open PDF in browser, not "Save As"</title>
    <published>2010-01-22T23:35:00Z</published>
    <updated>2010-01-22T23:35:00Z</updated>
    <content type="html">My users want an option to open stored PDFs in the browser window instead of being prompted to download the file.&lt;br /&gt;&lt;br /&gt;Current code:&lt;br /&gt;&lt;br /&gt;		&lt;pre&gt;
if(file_exists($file))
		{
			header('Content-Description: File Transfer');
			header('Content-Type: application/octet-stream');
			header('Content-Disposition: attachment; filename='.basename($file));
			header('Content-Transfer-Encoding: binary');
			header('Expires: 0');
			header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
			header('Pragma: public');
			header('Content-Length: ' . filesize($file));
			ob_clean();
			flush();
			readfile($file);
			exit;
		}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;How would I write the headers to allow files to open in the browser window?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:676320</id>
    <author>
      <name>duckspeaker</name>
    </author>
    <lj:poster user="duckspeaker" userid="4784724"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/676320.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=676320"/>
    <title>Build Array from Checkboxes in Form</title>
    <published>2010-01-14T17:45:49Z</published>
    <updated>2010-01-14T17:45:49Z</updated>
    <content type="html">  &lt;p class=""&gt;I&amp;rsquo;m helping with a web form that has a lot of selectable options.&lt;br /&gt; (There must be 70 different items that can be selected by the user, in any number of combinations.)&lt;/p&gt;  &lt;p class=""&gt;These are represented as check boxes in the form.&lt;/p&gt;  &lt;p class=""&gt;I&amp;rsquo;m wondering if there is a way to create an array of all the selected items without having to check each one individually, and adding it manually.&lt;/p&gt;  &lt;p class=""&gt;I suppose I could make a function to do all the hard work&amp;hellip;but I&amp;rsquo;d still have to call that function for each and every checkbox item.&lt;span&gt;&amp;nbsp; &lt;/span&gt;Seems inefficient.&lt;/p&gt;  &lt;p class=""&gt;Any ideas?&lt;/p&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:675722</id>
    <author>
      <name>Lisa</name>
    </author>
    <lj:poster user="julisana" userid="393507"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/675722.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=675722"/>
    <title>Question about file uploads</title>
    <published>2010-01-04T21:29:31Z</published>
    <updated>2010-01-04T22:10:00Z</updated>
    <content type="html">Wow, I'm posting a lot lately!&lt;br /&gt;&lt;br /&gt;So I'm working on a script that will upload files to a server.  Is there a way to specify what user the script uploads as, or am I just stuck with uploading as the "nothing" user?&lt;br /&gt;&lt;br /&gt;I know I can chown it after the fact, but that just doesn't seem to work well.&lt;br /&gt;&lt;br /&gt;Also, if I use chmod() on a directory, will the permission change also apply to all files within the directory?&lt;br /&gt;&lt;br /&gt;Thanks!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:675394</id>
    <author>
      <name>Lisa</name>
    </author>
    <lj:poster user="julisana" userid="393507"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/675394.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=675394"/>
    <title>Question about Arrays</title>
    <published>2009-12-31T15:51:05Z</published>
    <updated>2009-12-31T15:53:17Z</updated>
    <content type="html">Hi guys, another dumb question!&lt;br /&gt;&lt;br /&gt;Do things like in_array and array_search work properly in multi-dimensional arrays?  Also, is there a way to specify which elements in a multidimensional array to check?&lt;br /&gt;&lt;br /&gt;Thanks!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:675088</id>
    <author>
      <name>Sabrina</name>
    </author>
    <lj:poster user="sophiaserpentia" userid="608169"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/675088.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=675088"/>
    <title>poorly formed JSON - options?</title>
    <published>2009-12-14T15:41:26Z</published>
    <updated>2009-12-14T18:20:39Z</updated>
    <content type="html">Hello everyone!&lt;br /&gt;&lt;br /&gt;For a project I'm working on, I'm writing a screen scraper.  Unfortunately the material I am attempting to mine is poorly-formed JSON (probably parsed with proprietary code).  json_decode() returns NULL.&lt;br /&gt;&lt;br /&gt;My first thought was that I'd just parse it with regular expressions.  Here I've run into a question I can't seem to work out.  Much of the data I'm trying to parse looks like&lt;br /&gt;&lt;br /&gt;name:'blah blah blah'&lt;br /&gt;&lt;br /&gt;So I thought perhaps I could use &lt;br /&gt;/name:\'([^'.*]*)\'/ &lt;br /&gt;to grab the stuff between single quotes.&lt;br /&gt;&lt;br /&gt;Unfortunately some of the data has escaped single quotes inside, like this:&lt;br /&gt;name:'blah\'s blah blah'&lt;br /&gt;in which case my regex returns only "blah\".&lt;br /&gt;&lt;br /&gt;So is there a way to say in regex speak, "stop at the next single quote, &lt;i&gt;unless&lt;/i&gt; it is escaped with a slash?"  I've not been able to find any reference to a way to write a regex which has an exception to a character negation.&lt;br /&gt;&lt;br /&gt;As an alternative, I'm wondering if maybe there's something like Tidy, but for JSON.  So far I'm not finding much.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;&lt;br /&gt;ETA: After much trial and error I found a solution:&lt;br /&gt;name:\'([^']+\\\'[^']+)\'|name:\'([^']*)\'&lt;br /&gt;&lt;br /&gt;But I'd still be curious to learn if there's a program like Tidy for JSON.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:674926</id>
    <author>
      <name>Lisa</name>
    </author>
    <lj:poster user="julisana" userid="393507"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/674926.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=674926"/>
    <title>Database Connections</title>
    <published>2009-12-04T20:32:05Z</published>
    <updated>2009-12-04T20:36:39Z</updated>
    <content type="html">Hi Guys!&lt;br /&gt;&lt;br /&gt;Another dumb question from the peanut gallery!&lt;br /&gt;&lt;br /&gt;If you're writing a bunch of classes that will run an application, where is the best place to have your database connection(s)?  Would it be in the file that ends up interfacing with the user and receiving/displaying data, in the class files themselves, or some other location?&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;&lt;br /&gt;Edit: If the answer is in the calling files, how would you make sure your classes used it, and how would you pass it across pageclicks?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:674573</id>
    <author>
      <name>Frazer Kirkman</name>
    </author>
    <lj:poster user="frazer" userid="721755"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/674573.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=674573"/>
    <title>finding code</title>
    <published>2009-12-02T00:55:31Z</published>
    <updated>2009-12-02T00:55:31Z</updated>
    <content type="html">Hi,&lt;br /&gt;&lt;br /&gt;I am adding a search engine to a CMS I built.&amp;nbsp; I want the results to come out like on google or wikipedia, with the relevant parts of the page highlighted.&lt;br /&gt;&lt;br /&gt;I know this has been written and implemented so many times,&lt;br /&gt;but on a preliminary search I realised I must be bad at finding shared code.&lt;br /&gt;&lt;br /&gt;Can any one suggest a quick way to find shared code?&lt;br /&gt;&lt;br /&gt;&lt;div class=""&gt;&lt;img class="" alt="" src="https://imgprx.livejournal.net/c93bfa51a0c34484bf0553f5070763c014119f3b66499d39562d8a309e447acc/P2WlxyVijxKvg29u989VWEMdsf-ah7h01kOFCahWgtHd5xmals6oR1ovGF45GUR36VoYlTmDYlcQS1RYmU52_EAK3zqXb7jVoFsA9EEseUu1FuCctZFL3DtU_A8:AOzlQMb68olPMwwQpEaAbw" fetchpriority="high" /&gt;&lt;/div&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:php:674465</id>
    <author>
      <name>Lisa</name>
    </author>
    <lj:poster user="julisana" userid="393507"/>
    <link rel="alternate" type="text/html" href="https://php.livejournal.com/674465.html"/>
    <link rel="self" type="text/xml" href="https://php.livejournal.com/data/atom/?itemid=674465"/>
    <title>PHP and JavaScript</title>
    <published>2009-11-30T21:10:33Z</published>
    <updated>2009-11-30T21:10:33Z</updated>
    <content type="html">Hi Guys!&lt;br /&gt;&lt;br /&gt;Another super dumb question on the way!&lt;br /&gt;&lt;br /&gt;Is it possible to assign a PHP variable a value within a javascript function?&lt;br /&gt;&lt;br /&gt;For example I've got a text box showing up only when a certain tickbox is ticked.  I'm using javascript to show/hide the text box.  When that box is ticked, I want the PHP variable $classes to have a different value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Should I send this to a JavaScript community instead?&lt;br /&gt;&lt;br /&gt;Thanks!</content>
  </entry>
</feed>
