php

Apache crash - PHP

UPDATED INFO: OS Windows 7 32bit Apache 2.2.15 PHP 5.2.13 This is really weird. When I got to this URI in my application: /view/course/teid/1/cid/-1/pos/30 Apache crashes. When I go to a very similar URI - like this one: /view/course/teid/1/cid/-1/pos/29 Everything works fine. This is from error log: [Thu Aug 05 11:22:14 201...

What good PHP Software to create a membership site?

I going to be creating a membership site where you have to pay (PayPal) to access content and I am to lazy to code it myself, so I wanted to know what is a good PHP software that fits my needs? I was thinking Wordpress or Drupal but are there better alternatives? ...

dispaying top 10 players and monthly top 10 players using php mysql

Hi, I am currently working for a highscore system for my games website. and i have written the code for that. it only displays 1- players. i want to display overall top players when i click on top players url and want to display the monthly top 10 players when i click on monthly top players url.How to do this. i am trying since 2 days. i...

Php inheritance superclass variables

Hi! I try to load an entity with some details and there is a resellerId in the entity. Now I inherit a subclass from it, and try to access the resellerId but it's not there. How to pass the attributes to the subclasses? I really need it loaded. Thanks! edit: class Crm_Entity extends Crm_Abstract { protected $_mapper = 'Crm_Mapp...

Retrieve Post Values According to the Dynamic Posting of Data by a user

Hi, In my application there is a table named paytbl_payments_merged in which i have fields like pk_paymentinstrumentid,fk_paytbl_enrolments_enrolmentid,installment1instrument1depositdate,installment1instrument2depositdate,installment1instrument3depositdate,installment2instrument1depositdate,installment3instrument1depositdate etc. F...

How to convert URLs containing Unicode characters into clickable links?

I use this function to make URLs to clickable links but the problem is that when there is some Unicode character in the URL it becomes clickable links only before that character... Function: function clickable($text) { $text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '<a class="und" href="\\1">\\1</a>', $text); $t...

Update status (publish) of 60000 nodes

hi I have approximately 60.000 nodes in my Drupal installation. They are all unpublished, and I need to publish all of them. I'm trying to publish them from "Content menu" but I can only select all nodes in a single page. How can I select all nodes in my website ? thanks ...

Eclipse - Stack Overflow Errors

Hello, since some time I'm having problems with Eclipse. When opening any file with class which extends one specified class (Presenter), an error occures: I've noted, that problems occurres only when loading the mentioned class - Presenter. When I delete "extends Presenter" or when I delete the file, which contains class Presenter, p...

How to loop a SimpleXML object?

Hello everybody! I download a webpage with a XML code: $xml = simplexml_load_file($page); The results are: SimpleXMLElement Object ( [@attributes] => Array ( [Message] => Success [Date] => 0001-01-01T00:00:00 ) [FUNDAMENTALS] => SimpleXMLElement Object ( [FUNDAMEN...

How to trim a Base-64 encoded string?

Hey guys, I'm not much of a PHP expert. I'm encoding a URL with base64_encode. I get quite a long encoded string with a lot of weird characters exactly as I want it to be. Is there a way to trim this long line of characters to let's say 10 or 15 chars, so I can decode it later again? I know there is trim() but that does not exactly wha...

escaping json string with a forward slash?

Hi, I am having a problem passing a json string back to a php script to process. I have a json string that's been created by using dojo.toJson() that contains a / and looks like this: [{"id":"2","company":"My Company / Corporation","jobrole":"Consultant","jobtitle":"System Integration Engineer"}] When I pass the string back to the ...

What does PHP's underscore function do?

Quick question. What does this function do? _() Can you link me to the relevant documentation as searching for "_" is nigh on impossible. Thanks. ...

append number to variable name and call it in a loop (php) (smarty)

Hi. I have a simple question. I need to append 1,2,3 etc to a variable name in smarty. The variables are $user1, $user2, $user3 etc. I use smarty to do a simple loop like this: {section name=user_info start=1 loop=$users} <tr> <td> User{$smarty.section.user_info.index} </td> // prints user1, user2, user3 etc ...

code igniter with flex is it good combination?

Hi, im looking forward flex php developers about their works with CI and flex combination. did you guys feels good and keep things innovative and im just looking for working samples you have or you came across . Thanxs, Gobi :) ...

Is there a way to grab files from other servers and dump them into the DB asynchronous?

Hello guys, I need to create a php script that takes lots of URL's via POST and then loads the corresponding files and dumps them in the DB. The thing is that I would like to do it asynchronous, so that if I have 1000 files to get, the script won't hang till all the files are loaded. Also, every time a file it's done loading, I need to ...

mysql with the date function

Hi I have a mysql table containing a field name dtt_date and have values like 08/04/2010 22:15:00. I want to display all the records with in this month (08, august), How to write a mysql query in my php page to display these record. Does any one know this? Please help me? ...

Zend Tool & application.xml

Hi. I use NetBeans & Zend Tool (ZT). Then i create new project, ZT create a config file application.ini, but i need a xml version. I create a xml version of application.ini and update .zfproject.xml <?xml version="1.0"?> <projectProfile type="default" version="1.10"> <projectDirectory> <projectProfileFile filesystemName=".zfprojec...

How to make Php to call ubuntu script which itself call a jar file

Hello Gurus I've been trying to let a php file call a shell script to run a jar file on Ubuntu and put an output on the screen or at least on a file but it doesn't seem to work at. The script itself run from terminal does the work but not the php file. here is the php file $output=shell_exec('callablescript --import b57b06bb-36d8-de6c...

simpleXML and the same child

I have a dummy xml like this: <SOA> <cities> <area>Area1</area> <period>period1</period> <center>center1</center> </cities> <cities> <area>Area1</area> <period>period1</period> <center>center2</center> </cities> <cities> <area>Area2</area> <period>period1</period> <center>center3</center> </cities> </...

PHP - How to share / pass variables across different methods in a PHP Class

I am trying to set a value from a method of a class and trying to get it in another method. The example code is as below. I think the below kind of set/get works in a Java class. Googled out but still could not find a relevant solution. Searched: http://www.google.co.in/search?hl=en&amp;client=firefox-a&amp;rls=org.mozilla%3Aen-US%3Aof...