php5

which book i refer for Internet programming using PHP

Hi, I am doing MCA, in our syllabus we have sub called Internet programming using PHP. Which book do you recommend that I read about this subject? ...

Problem on attach a file with PHP mail() function and read that file from downloading the mail.

Hi friends, I am sending a mail with the attachemnet using the PHP mail function.I suceessfully attached the document to mail and I got it in the mail.My problem is when I try to read the document I got an error.If I downloaded the document and open the document I cant the see the text in the attached document.Here is the coding... $fi...

PHP code security

Possible Duplicate: Code obfuscator for php? Hi, Is it possible to encode all php code before uploading to someone server? Actually I want to encode my php code so that no one can use without my permission... ...

PHP to MySQL SSL Connections

I have successfully setup an SSL enabled install of MySQL on one server on one network and can connect to it using SSL with the Linux command line mysql client on a different server on a different network, however every time I try to connect (using PHP 5.3.3) I keep getting: Warning: mysqli_real_connect(): (HY000/2026): SSL connection ...

What are the most used PHP image manipulation classes ?

I am a newbie with php and I want to play with php and images uploaded. What are the most used PHP image manipulation classes ? ...

How to sharpening an uploaded image in PHP ?

How to sharpening an uploaded image in PHP ? Is there some PHP libraries ? What is the best ? ...

Can Zend Optimizer and IonCube co-reside on the same server?

We have a Windows 2008 server that already has Zend Optimizer installed but have been asked by a user if we can install IonCube? Can Zend Optimizer and IonCube co-reside on the same server? What are the correct directives to use to make this work in the php.ini file? We're running PHP 5.2.14 non-threadsafe build. ...

issue in zend framwork controller

Hello I am a new bie to zend framework I am getting an error while loading my index controller as Fatal error: Class 'Places' not found in C:\xampp\htdocs\zend\book\application\controllers\IndexController.php on line 36 my bootstrapper code is <?php class Bootstrap { public function __construct($configSection) { $r...

Problem in Getting values from an array in PHP

iam using the Zend framework and assign the array from the controller to view. The array is coming from execution of stored procedure result $results = callProcedure('testprocedure', $in)//$in is an array of input values $view->results =$results['record']; In The $results['record'] array iam having two values such as 'NO' and 'nam...

How do I track down an "Exception thrown without a stack frame in Unknown on line 0" in PHP?

I'm working on a large (inherited) codebase in PHP, and the error Exception thrown without a stack frame in Unknown on line 0 has started showing up at the bottom of every page. I understand what the error means: an exception is getting thrown someplace it can't be thrown. I've even managed to track it down somewhat—it's happening duri...

PHP_AUTH_USER not set?

For some reason, none of the code within if (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) { // When the above is set, the code that is here will execute of course } is being executed for me. When I enter the correct username and password, the prompt box for the authorization again pops up. Wouldn't both...

CakePHP how to use static values (categories)

I would like to have categories, and rankings for my content and users respectively, and I am not sure how to go about implementing this using CakePHP conventions? Do I need to create a model? ...

Search using LIKE Clause Mysql

I'm tring to convert a Mysql query to using a LIKE clause and I can't make it work. $query = "SELECT id,name FROM `hin` WHERE name = '".$q."'"; What I've tried in some variations. $query = "SELECT id,name FROM `hin` WHERE name LIKE %'".$q."'%"; I need the query to select row only on string match. Intend is to use variable as needle...

PHP error in Netbeans IDE

Hi there! I am currently using a PHP 5 along with Netbeans IDE to create a login page. However Netbeans seems to not understand the codes that I have added into the console box. The error originates from the "echo "....." line. The codes are as follows: $query = mysql_query($sql) or die(mysql_error()); echo "Thank You for registeri...

Edit multiple field without chaning the key using php

Hi, One of my php application can have ability to create a collection with different pages(page id keep as primary key and collectionid as foreign key).After creating the collection we can edit it or delete it.Now when we are edit the collection I am deleting all the entries which matches collection id and reinsert pages with new page i...

Is there an official Zend Optimizer for PHP 5.2 non-threadsafe builds?

There was a thread a while back asking about a non-threadsafe build of Zend Optimizer: http://forums.zend.com/viewtopic.php?f=57&amp;t=270&amp;start=10 There was even a test build posted by one of the Zend team: http://forums.zend.com/viewtopic.php?f=57&amp;t=270&amp;start=10#p6058 Does anyone know if there's an official non-...

How to use PHP Session to View MYsql Database Tables?

Hi there! I am currently trying to create a PHP script whereby there is already a login script created and the user that successfully logs into the home.php is able to view the tables of the database he is logged into. Is there any ways of retrieving the tables using the mySQL query like "SHOW TABLES"? Here are some of my codes: <?php...

How to freeze a PHP script for a few seconds?

Hi there! I would like to make my PHP script freeze at a screen for at least 5 seconds before loading into the next script. I have tried "Sleep()" however that is not the function I am looking for as it only pause the script that is "going" to be loaded. Here are my codes: echo "Welcome ",$_SESSION['username']."<br>"; echo "Click h...

PHP5 mysql examples

where will I find PHP5, mysql OOP examples? Whta I mean is common class library with examples. ...

Overlapping date range MySQL

Hi guys, I have the following data; ID startDate endDate ----------------------------------------------- 1 2010-03-01 10:00:00 2010-03-01 12:00:00 2 2010-03-01 12:30:00 2010-03-01 15:30:00 3 2010-03-01 15:30:00 2010-03-01 18:30:00 What I want to do is check that a start and end date don't fall inside ...