php

PHP Websites Source Code

Hi, I'm looking for PHP script samples of websites. I'm just done reading a text book on PHP and I want to check out some of the various implementations. Thanks ...

Best method in PHP to make a user logs in from one machine at a time.

Can you please suggest me a best method in PHP to make a user logs-in from only one machine at a time. ...

Getting exsl:node-set to work in PHP

I have the following PHP code, but it's not working. I don't see any errors, but maybe I'm just blind. I'm running this on PHP 5.3.1. <?php $xsl_string = <<<HEREDOC <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/X...

Need suggestions on which web frameworks to use?

I want to build a site where people can create their personal websites quickly. All their websites will be hosted on my single web application (i.e. there will be only one database which contains info of all the websites). Each person will have an account where he can customize his website (template, content etc.). They can access their...

Alternative for PHP mail

In relation to an earlier question I'm looking for an alternative way to send an order from my website to the division in my company that processes the order. Currently I use PHP mail(), but frequently this gives problems. Big delays occur. Are there alternatives to PHP mail() that pushes the order to my company? So I prefer not to poll...

how to remove hazardous character in php

Hi All, I have to remove hazardous chracter from my query post string. Is there any function define in php to remove directly or another way ? ...

Doctrine: how to create a query using "LIKE REPLACE" ?

Hi, this SQL clause is working OK: SELECT * FROM `sf_guard_user` WHERE nombre_apellidos LIKE REPLACE('Mar Sanz',' ','%') Now I'm trying to write this query for Doctrine. I have tried this: $query->andWhere(sprintf('%s.%s LIKE REPLACE (?," ","%")', $query->getRootAlias(), $fieldName), 'Mar Sa...

how can i load my page faster with $.ajax() or $.post()

i am trying to load database values from 6 - 7 tables on a single page i.e users, their post e.g with $.load(); and it is taking from 15+ seconds to load but i want to load that page from 1-5 seconds ...i know it depends on internet connection speed but how can i do that .... ...

Is it possible to remove a Password from a PDF file using PHP?

Hello, I would like to ask if it's possible to use PHP in removing a password from a password-protected PDF file in which I already know the password? I've seen this page which provides many options but using bash script. :( I was required to use PHP as much as possible. Any suggestions appreciated! ...

PHP Design Pattern Advise

Hi there, I have two years worth of PHP experience however I have never worked with design patterns. I have recently been given a task at work that has made me question the wisdom of that decision. I have been asked to create a system that: Insert orders into a database. These orders can have a multitude of attributes and control l...

set session in database in php

How can I use session in database table with php and mysql? ...

0.699 x 100 = 69.89999999999999 ?

Possible Duplicates: Why does 99.99 / 100 = 0.9998999999999999 Dealing with accuracy problems in floating-point numbers I've seen this issue in php and javascript. I have this number: float 0.699 if I do this: 0.699 x 100 = 69.89999999999999 why? edit round(0.699 x 10, 2): float 69.90000000000001 ...

Delayed responses for cURL SSL PUTs/POSTs (php) (NSS vs OpenSSL)

I have two Fedora-based apache webservers making the same SSL PUT/POST calls with php/cURL. One works fine, but with the other the call succeeds but takes a VERY long time to return a response (~10 min). (GETs don't seem affected) The working server's cURL uses OpenSSL for SSL, while the non-working version uses a later version of cURL ...

How open an AES encrypted .zip?

Can anybody please let me know, How open an AES encrypted .zip?. I need an encryption method should be 128-bit or 256-bit AES. As well as this should be a PHP process. any references...appreciable. ...

how can I add users/numbers to asterisk from php?

How can I go about adding users/number, changing things from PHP(or python) on an asterisk server? ps. also are there any better ways to get the current asterisk settings, users, numbers other than scraping the config files? ...

range of parameter and values in php

What is exact meaning of this statement... VERIFY THE PARAMETER VALUE ARE IN THEIR EXPECTED RANGE AND TYPE. I am passing values in POST method through URL in php. ...

PHP Interview questions

Hi, does anyone have any thoughts on what would be considered good technicaly interviews for new php programmers. Im not meaning the little questions that are intended to know language specific intricacies but more on larger interview questions that potential employees may take an hour or 2 to solve in their own time and then come back ...

php code works with mamp but not on ubuntu server

Hello, I have start looking at a twitter php library http://github.com/abraham/twitteroauth, but i can't get it to work on my ubuntu server, but on my mac, with mamp it works without any problems. This is the code that don't won't to work on my server, but in mamp. Yes i have edit config file <?php /* Start session and load library. ...

javascript not loading after output of PHP file_get_contents() string

I have the following structure: -uploadpage.html -index.php -resources -jquery-1.4.2.min.js On my index.php, I get the contents then output uploadpage.html through this code: $output = file_get_contents("uploadpage.html"); echo $output; My upload.html has the javascript at the bottom: <script type="text/javscript" src="./res...

Array filteration PHP

I have an array with values like: Array ( [0] => Array ( [parent] => Basic [parentId] => 1 [child] => Birthday [childId] => 2 ) [1] => Array ( [parent] => Basic [parentId] => 1 [child] => Gender [childId] => 3...