";

it gives me the following error when i view the page:

Parse error: parse error, unexpected $ in getTransfer.php on line 82

Line 82 is my last lineof the page which is just closing the html tag. i've tried alsorts of combinations, from having ''s in $rows['a1'] to putting a ; in echo 'on loan'; and i just can't fathom it :( anyone able to put me out of my misery? pwetty please? :)

Source: http://community.livejournal.com/php_dev/64592.html

  • object-relational mapping

    Date: 02/01/06     Keywords: php, java

    I need to evaluate some options for object-relational mapping for my job. I found a rather long list and was hoping to narrow it down a bit by asking for recommendations in a couple PHP forums. Any advice from your experiences?

    Some of the developers on my team have experience with Java, and thus might know a bit about Hibernate, if that's of any relevance.

    Source: http://community.livejournal.com/php_dev/64327.html

  • Simple Database Display Tool

    Date: 01/26/06     Keywords: php, mysql, software, database, sql, web

    I spent a good long time cataloging my huge collection of movies and putting into databases. Now I've got to write some php code to display (and possibly administer) all of this information, which I am not looking forward to.
    I keep hoping that there's something previously written than I can modify. The concept is simple enough: I need something to display large amounts of tabular data succinctly to end users on my website. I want users to be able to add or remove columns to what they are viewing. They should also be able to sort on any column they wish. All this needs to work seamlessly, as if the user were facing an Excel spreadsheet.
    Do any of you have suggestions for me on softwares I might try, or have any of you written code to do this already? Thanks in advance for your help.

    X-posted to '[info]'php_mysql

    Source: http://community.livejournal.com/php_dev/64170.html

  • JS form validation, integrated with Smarty

    Date: 01/18/06     Keywords: php, java

    A coworker pointed me to a PEAR module the other day that allows one to generate form elements that automatically have JavaScript validation rules attached. But I've been using Smarty to achieve a cleaner separation of business logic from presentation - much like a MVC design - and would really hate to give that up. Does there exist a way to "automatically" get even some basic form validation, while still using the template engine? I don't want to have to write all the JS myself if there's a library that already does it, and is probably more thorough than I could be.

    FYI, I'm fairly new to PHP.

    Source: http://www.livejournal.com/community/php_dev/63936.html

  • JS form validation, integrated with Smarty

    Date: 01/18/06     Keywords: php, java

    A coworker pointed me to a PEAR module the other day that allows one to generate form elements that automatically have JavaScript validation rules attached. But I've been using Smarty to achieve a cleaner separation of business logic from presentation - much like a MVC design - and would really hate to give that up. Does there exist a way to "automatically" get even some basic form validation, while still using the template engine? I don't want to have to write all the JS myself if there's a library that already does it, and is probably more thorough than I could be.

    FYI, I'm fairly new to PHP.

    Source: http://community.livejournal.com/php_dev/63936.html

  • Embedded PHP

    Date: 01/16/06     Keywords: php

    I'm working on a personal project ( MMORPG ) and have designed the game server as 20% C/C++ and 80% scripting language. I've been looking at embedding Python, or Small because of the ( apparent ) ease of embedding and the docs available, but I would really like to embed the PHP engine.

    The only problem is, I can't seem to find any docs regarding embedding PHP into a C application, aside from some obscure mailing list post in 2003 where someone had begun to embed PHP into an app. I'm familiar with writing extensions, with the Zend memory manager, etc, I just need a push in the right direction in regards to actually embedding the engine, converting datatypes between the two, etc.

    Anyone have any docs related to this, or have done this and can share painful/painless stories?

    Source: http://www.livejournal.com/community/php_dev/63688.html

  • Embedded PHP

    Date: 01/16/06     Keywords: php

    I'm working on a personal project ( MMORPG ) and have designed the game server as 20% C/C++ and 80% scripting language. I've been looking at embedding Python, or Small because of the ( apparent ) ease of embedding and the docs available, but I would really like to embed the PHP engine.

    The only problem is, I can't seem to find any docs regarding embedding PHP into a C application, aside from some obscure mailing list post in 2003 where someone had begun to embed PHP into an app. I'm familiar with writing extensions, with the Zend memory manager, etc, I just need a push in the right direction in regards to actually embedding the engine, converting datatypes between the two, etc.

    Anyone have any docs related to this, or have done this and can share painful/painless stories?

    Source: http://community.livejournal.com/php_dev/63688.html

  • Resource for obsolete php?

    Date: 01/13/06     Keywords: php

    Since this list was so helpful the other day, I hope you don't mind another post!

    I am involved in a freelance project where my client wants to use their existing account, and the isp is running php version 4.0.4. I have already nagged the support people and they say they have "no plan for upgrading in the near future" so I'm stuck with it for now.

    Some of my scripts that work fine on my server are choking on 4.0.4. and I am having a hard time finding a resource for old commands and functions that may have been changed in newer versions. I would love to see some kind of table listing the changes between 4 and 5.

    I am particularly frustrated with form processing at the moment (the array $_POST isn't being found or something).

    Suggestions?

    Source: http://www.livejournal.com/community/php_dev/63344.html

  • Resource for obsolete php?

    Date: 01/13/06     Keywords: php

    Since this list was so helpful the other day, I hope you don't mind another post!

    I am involved in a freelance project where my client wants to use their existing account, and the isp is running php version 4.0.4. I have already nagged the support people and they say they have "no plan for upgrading in the near future" so I'm stuck with it for now.

    Some of my scripts that work fine on my server are choking on 4.0.4. and I am having a hard time finding a resource for old commands and functions that may have been changed in newer versions. I would love to see some kind of table listing the changes between 4 and 5.

    I am particularly frustrated with form processing at the moment (the array $_POST isn't being found or something).

    Suggestions?

    Source: http://community.livejournal.com/php_dev/63344.html

  • php template and searchability

    Date: 01/11/06     Keywords: php, google

    I would like to build a site using php that has several repeated elements (headers, footers, menu) that appear on every page, with only the central content and some of the styling (to highlight menu items) changing.

    It works well so far, but a friend tells me that this method is less search-friendly than coding out each individual page and that it will be ignored by Google. Is this true?

    Also, give then common-template model, is it better to:

    1. Load all pages from a single php file with page-specific content in individual functions

    2. Load each page with its own content and use includes for common elements

    3. Have a central controlling php file that assembles each page by includes from a separate file for each part (header, content, footer, etc)

    4. Make each page a complete static unit with duplicate headers, footers, etc identical to other pages.

    I can make any of these work, though #4 seems highly tedious. I just want opinions on which ones are considered more efficient and more "searchable."

    Source: http://www.livejournal.com/community/php_dev/63147.html

  • php template and searchability

    Date: 01/11/06     Keywords: php, google

    I would like to build a site using php that has several repeated elements (headers, footers, menu) that appear on every page, with only the central content and some of the styling (to highlight menu items) changing.

    It works well so far, but a friend tells me that this method is less search-friendly than coding out each individual page and that it will be ignored by Google. Is this true?

    Also, give then common-template model, is it better to:

    1. Load all pages from a single php file with page-specific content in individual functions

    2. Load each page with its own content and use includes for common elements

    3. Have a central controlling php file that assembles each page by includes from a separate file for each part (header, content, footer, etc)

    4. Make each page a complete static unit with duplicate headers, footers, etc identical to other pages.

    I can make any of these work, though #4 seems highly tedious. I just want opinions on which ones are considered more efficient and more "searchable."

    Source: http://community.livejournal.com/php_dev/63147.html

  • PHP designer

    Date: 01/04/06     Keywords: php, asp

    Hi,

    Is there any PHP GUI available for development of PHP scripts? like windows guys use ASP .NET? or Visual Basic or Qt Designer for KDE people?

    If not, anybody interested in developing such thing?

    X-Posted to '[info]'php

    Source: http://www.livejournal.com/community/php_dev/62818.html

  • PHP designer

    Date: 01/04/06     Keywords: php, asp

    Hi,

    Is there any PHP GUI available for development of PHP scripts? like windows guys use ASP .NET? or Visual Basic or Qt Designer for KDE people?

    If not, anybody interested in developing such thing?

    X-Posted to '[info]'php

    Source: http://community.livejournal.com/php_dev/62818.html

  • shirt design and more..

    Date: 12/01/05     Keywords: php

    hi everyone

    i'm looking for a php script of an online store for tshirts, mugs and that kind of crappy merchandise. the thing is that i want the client to be able to choose the kind of shirt ( sleeves, no sleeves, etc ) and then choose an image from a galery  and sees a preview of the whole ( shirt + image )

    does anyone know any script for that?

    thanks :)

    Source: http://www.livejournal.com/community/php_dev/62541.html

  • shirt design and more..

    Date: 12/01/05     Keywords: php

    hi everyone

    i'm looking for a php script of an online store for tshirts, mugs and that kind of crappy merchandise. the thing is that i want the client to be able to choose the kind of shirt ( sleeves, no sleeves, etc ) and then choose an image from a galery  and sees a preview of the whole ( shirt + image )

    does anyone know any script for that?

    thanks :)

    Source: http://community.livejournal.com/php_dev/62541.html

  • R_PPC_REL24 relocation out of range

    Date: 11/29/05     Keywords: php, web, apache

    Looking all over the web for this error and a solution or workaround, but so far no luck. That is, I've found some mention of others with the problem, but no solutions. A few posts mentioning -fPIC flag to the compiler, but I've been doing that.

    Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: R_PPC_REL24 relocation at 0x0e56191c for symbol `floor' out of range


    Any ideas? I'm using Apache 2.0.55, kernel 2.6.10-1.ydl.1 on a PPC 750, with PHP 5.0.5 built as a DSO.

    Source: http://www.livejournal.com/community/php_dev/62432.html

    1. re-casting objects in PHP

      Date: 02/12/06     Keywords: php

      Hi,

      Perl lets me do this:

      package A;
      sub new {
      my ($class, @params) = @_;
      my $self = { };
      bless $self, ref($class) || $class;
      return $self;
      }

      --

      package B;
      @ISA = qw(A);

      --

      my $a = new A;
      bless $a, "B";
      # $a is now an object of class B.

      --

      The equivalent in PHP to the class heirarchy is this:

      class A {
      function A() { };
      }

      class B extends A {
      function B() { };
      }

      Now is it possible to write some code that allows "upgrading" an object of class A to be an object of class B? i.e. I want to do something equivalent to the perl "bless" function, which turns a reference into an object, however I want to do it to an object, e.g.

      $a = new A();
      $b = $a->transform_to_class_B();

      ... or similar.

      Has anyone figured out a PHP 4 or 5 way of doing this?

      Source: http://community.livejournal.com/php_dev/65642.html

    2. PHP and XML parsing

      Date: 02/11/06     Keywords: php

      This is something that I've posted on my own LJ, but wanted to post here to see if anyone knows why PHP always checks for character data, twice, for every node.













      Here is the PHP script:

      $file = "./test.xml";
      function xml_parse_from_file($parser, $file){
      if(!file_exists($file)){
      die("Can't find file \"$file\"");
      }
      if(!($fp = @fopen($file, "r"))){
      die("Can't open file \"$file\"");
      }
      while($data = fread($fp, 4096)){
      if(!xml_parse($parser, $data, feof($fp))){
      return false;
      }
      }
      }

      function start_element($parser, $name, $attrs){
      echo "name: " . $name . "
      ";
      $keys = array_keys($attrs);
      for($i = 0; $i < count($attrs); $i ++){
      echo "key: " . $keys[$i] . " attribute: " . $attrs[$keys[$i]] . "
      ";
      }
      }

      function cdata($parser, $data){
      echo "data: " . $data . "
      ";
      }

      function stop_element($parser, $name){
      echo "end element
      " . $name . "

      ";
      }

      $parser = xml_parser_create();
      xml_set_element_handler($parser, "start_element", "stop_element");
      xml_set_character_data_handler($parser, "cdata");
      xml_parse_from_file($parser, $file);
      ?>

      Now, for the result:

      name: BOOK
      data:

      data:
      name: AUTHOR
      key: FNAME attribute: Guy
      key: SURNAME attribute: Kawasaki
      end element
      AUTHOR

      data:

      data:
      name: TITLE
      key: TITLENAME attribute: Rules for Revolutionaries
      end element
      TITLE

      data:

      data:
      name: AUTHOR_BACKGROUND
      data: former chief evangelist at Apple Computer and an iconoclastic corporate tactician who now works with high-tech startups in Silicon Valley
      end element
      AUTHOR_BACKGROUND

      data:

      data:
      name: DESCRIPTION
      data: Guy Kawasaki, former chief evangelist of Apple Computer Inc., and renegade business strategist is back with a 'but-kicking' manifesto, Rules for Revolutionaries
      end element
      DESCRIPTION

      data:

      end element
      BOOK



      As you can see, and the odd thing to me is that for every element, the parser goes into the cdata function twice. The only thing I can think of is that for every each function, start_element and end_element, it goes into the cdata function for possible character data. (I can see it once, but how could there be character data with end_element?) The way around it is simply to change the function cdata to:

      function cdata($parser, $data){
      if(strlen($data) > 0){
      echo "data: " . $data . "
      ";
      }
      }

      This will test to simply make sure that $data does in fact have character data associated with it, but why does it check for every node twice?

      Source: http://community.livejournal.com/php_dev/65402.html

    3. upload_max_filesize

      Date: 02/10/06     Keywords: php, hosting

      Hi,

      I'm working on a little something to upload and share files with a friend.
      I've hit a road block.
      I'd like the file limit to be 15 megs, in order to do this I need to change
      upload_max_filesize in the php.ini file.

      I am on shared hosting and so I will use ini_set(upload_max_filesize,"15M")
      [see http://us3.php.net/ini_set]

      It does not work.
      I've done ini_set(upload_max_filesize,15728640) as well.

      my code that shows it not working:

      ini_set(upload_max_filesize,15728640);
      $inicheck=ini_get(upload_max_filesize);
      echo "$inicheck";



      It always echos the default 2M.

      This is a major roadblock and I'd really appreciate any help!
      If I need to clarify, I will :)
      Thanks!

      Source: http://community.livejournal.com/php_dev/65248.html

    4. Eclipse

      Date: 02/09/06     Keywords: php, mysql, browser, sql, apache

      Hi all, I recently landed a new job. The people that work there use Eclipse. I have been playing around with it to try and get a feel for it before I start next week and I am running into a couple of problems. I was hoping one of you would not mind giving me some pointers.

      I have:

      Eclipse Version: 3.1.2
      XAMPP very 2.1

      I installed Eclipse into the XAMPP directory as instructed.

      To my understanding XAMPP will run Apache, MySql, PHP and PERL when the computer starts as I think I set them up as services.

      I wrote a little test program using a set of functions that I have been using for a while now. The test program includes a config file that has the full include list in it. For some reason none of my files are being included. I do a require instead of an include, it does not fail but the functions are still not available. I can see the files are the in Eclipse's browser so I am not sure why they are not being found.

      There are buttons in Eclipse for starting and stopping XAMPP. These seem to have no effect on XAMPP at all.

      Any clues suggestions would be helpful. I have looked on the net all day but have not found anything I can really seem to understand. I have read the help files for Eclipse but they only pertain to Eclipse itself and not the add ons.

      cross posted*

      Thanks

      Source: http://community.livejournal.com/php_dev/65019.html

    5. code help

      Date: 02/04/06     Keywords: php, html

      hi everyone,

      i was hoping someone could point out an error for me in my line of code below:

      print "

    $rows[a1]; if (trim($rows[a1loan]) != 0 ) {echo 'on loan'} $rows[b1]
    Previous page  ||  Next page


    antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home