Search found 1803 matches

by johnj
Sat Mar 29, 2014 12:48 am
Forum: News and Announcements
Topic: PHP Frameworks - Interview Questions
Replies: 0
Views: 1429

PHP Frameworks - Interview Questions

A few folks had asked me to recommend a site to practice for PHP CodeIgniter and Laravel frameworks. Here it is:

http://phillipnb.wordpress.com/2012/12/ ... questions/
http://phillipnb.wordpress.com/2014/03/ ... questions/
by johnj
Mon Oct 28, 2013 12:37 am
Forum: PHP General
Topic: database value to post
Replies: 1
Views: 634

Re: database value to post

make sure you have the right query....make sure the query is picking the data that you want and then debug to see why $_POST is behaving in an odd manner.
by johnj
Mon Oct 28, 2013 12:34 am
Forum: PHP coding => General
Topic: Calendar
Replies: 2
Views: 743

Re: Calendar

this is happening due to the way you have coded. Take a look at your code again and make sure all <td>s are affected.
by johnj
Mon Oct 28, 2013 12:29 am
Forum: PHP coding => General
Topic: $_PHP_SELF
Replies: 2
Views: 2836

Re: $_PHP_SELF

I don't understand what you meant by $_PHP_SELF. I think it has to be
action="<?php echo $_SERVER['PHP_SELF']; ?>"

Please read about Server and execution environment information from the php manual.
by johnj
Mon Oct 28, 2013 12:21 am
Forum: PHP coding => General
Topic: cron jobs
Replies: 2
Views: 759

Re: cron jobs

not working from where...???

schedule another cron job (as a test) and see if it works. If it works, compare these two and figure out what you are doing wrong.
by johnj
Mon Oct 28, 2013 12:18 am
Forum: PHP coding => General
Topic: Insert record in PHP
Replies: 23
Views: 2883

Re: Insert record in PHP

print the emp_name and dob to see if it has a value.
by johnj
Tue Oct 22, 2013 5:21 am
Forum: PHP coding => General
Topic: how to download data from one website?
Replies: 0
Views: 718

Re: how to download data from one website?

Please read about php curl. Take a look at this example:
http://phillipnb.wordpress.com/2011/04/ ... es-part-2/
by johnj
Tue Oct 22, 2013 5:19 am
Forum: PHP General
Topic: Ports needed for LDAP connection
Replies: 1
Views: 1147

Re: Ports needed for LDAP connection

when you use port 1337, what does ldap_connect() return? Please write appropriate error trapping functions to see what the error is.
by johnj
Tue Oct 22, 2013 5:16 am
Forum: PHP coding => Mail
Topic: PHPMailer slow on sending emails
Replies: 4
Views: 7388

Re: PHPMailer slow on sending emails

check your send mail settings in php.ini
by johnj
Thu Oct 17, 2013 10:11 pm
Forum: mySQL & php coding
Topic: Drop-down list using mysql when query not found
Replies: 0
Views: 879

Re: Drop-down list using mysql when query not found

you have to do appropriate conditional branching if a record is not found.
by johnj
Thu Oct 17, 2013 10:09 pm
Forum: PHP & MySQL Security
Topic: do I need real_escape_string for parametrized queries ?
Replies: 1
Views: 1554

Re: do I need real_escape_string for parametrized queries ?

All input are evil, you should not trust any input.

You cannot EXPECT somebody else to do the sanitation, validation, error checking etc for you. You need to do all these on your side.
by johnj
Thu Oct 17, 2013 10:02 pm
Forum: PHP General
Topic: Ports needed for LDAP connection
Replies: 1
Views: 1147

Re: Ports needed for LDAP connection

make sure no other application is using 1337
by johnj
Sat Oct 12, 2013 12:38 am
Forum: PHP coding => General
Topic: CURL_EXEC - Allowed Memory Size of Bytes Exhausted
Replies: 1
Views: 934

Re: CURL_EXEC - Allowed Memory Size of Bytes Exhausted

One way - increase it using ini_set("memory_limit","30M");

Are you using a shared server? if "yes", then you need to change/add the entry in your .htaccess file.
by johnj
Sat Oct 12, 2013 12:31 am
Forum: PHP coding => General
Topic: socket_recv() failed; reason: Success
Replies: 0
Views: 675

Re: socket_recv() failed; reason: Success

try to print the error using socket_strerror(socket_last_error())
by johnj
Fri Oct 11, 2013 11:45 pm
Forum: PHP coding => General
Topic: ideas of sending emails reminding users of some stuff
Replies: 4
Views: 1184

Re: ideas of sending emails reminding users of some stuff

....like I get the data right from the website via input (hidden) and store it directly into an array....
Once a user is registered he/she has to be in a database or file. I don't understand what you meant by "...get the data right from the website..."
by johnj
Fri Oct 11, 2013 11:42 pm
Forum: PHP coding => Mail
Topic: PHPMailer slow on sending emails
Replies: 4
Views: 7388

Re: PHPMailer slow on sending emails

1).Check if you have any other software that is intefering with the mailer 2).You need to debug line by line to make sure where exactly the problem is? 3).Does your Apache version match with the version of php mailer...please check? 4).Is there any other software running on your server which is shar...
by johnj
Fri Oct 11, 2013 11:24 pm
Forum: PHP coding => General
Topic: disable combobox when radio button is selected
Replies: 0
Views: 643

Re: disable combobox when radio button is selected

use the show and hide feature of the jquery
by johnj
Mon Oct 07, 2013 10:38 pm
Forum: PHP coding => General
Topic: ideas of sending emails reminding users of some stuff
Replies: 4
Views: 1184

Re: ideas of sending emails reminding users of some stuff

for your code to remmeber these sort of things, you should either have a database/table or a file.
by johnj
Mon Oct 07, 2013 10:37 pm
Forum: PHP General
Topic: How to run php file in task scheduler ?
Replies: 1
Views: 977

Re: How to run php file in task scheduler ?

how do you know that the program ran successfully?
by johnj
Mon Oct 07, 2013 10:35 pm
Forum: PHP General
Topic: Simple Problem
Replies: 0
Views: 546

Re: Simple Problem

pick the redeemed item and show it on his/her page
by johnj
Fri Oct 04, 2013 8:36 pm
Forum: PHP coding => General
Topic: Recordset looping problem
Replies: 2
Views: 983

Re: Recordset looping problem

please print $index to see how many records it is picking up.
by johnj
Fri Oct 04, 2013 8:35 pm
Forum: PHP coding => General
Topic: $arr[]=$data doesnt add the $data
Replies: 4
Views: 1037

Re: $arr[]=$data doesnt add the $data

1). what function is this yecho ?

2).please post the full code.
by johnj
Fri Oct 04, 2013 12:46 am
Forum: PHP coding => General
Topic: $arr[]=$data doesnt add the $data
Replies: 4
Views: 1037

Re: $arr[]=$data doesnt add the $data

you can do two things:

1). Initialize the array outside the while loop using $result = array()

2).Inside the while loop, please print what you storing..e.g. print_r($rows);
by johnj
Wed Oct 02, 2013 6:33 am
Forum: mySQL & php coding
Topic: Getting erros when posting data to MYSQL database via PHP
Replies: 0
Views: 738

Re: Getting erros when posting data to MYSQL database via PH

1).make sure $queryResult is returning the right result

2).remove the "@" symbol so that the code can throw errors
by johnj
Wed Oct 02, 2013 6:27 am
Forum: PHP Installation
Topic: PHP 5.5.4 compatibility with CentOS 6.4
Replies: 0
Views: 1111

Re: PHP 5.5.4 compatibility with CentOS 6.4

Yes, it is asking for glibc 2.14