Tagged Questions
PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.
-1
votes
0answers
3 views
php srand different results on ipad
I'm using php srand() based on the day of the year in order to randomly select from a list of colours. So every day a background will change colour, but for the whole day it will stay the same.
0
votes
0answers
3 views
using only zend library in own script
i am new for zend framework so i have many questions.
How to use zend library without using MVC structure?
I am trying to use only zend library that available to my all pages and only i need to ...
0
votes
0answers
6 views
Schema for Movies implementation date format ISO 8601
I have this code where arrEventDetails contains the release date of the movie it contains format like July 5, 2013 i want the format to be 2013-05-07. i am a newbie to PHP
<meta content=" . ...
0
votes
2answers
28 views
Inserting array value into database
I have an array $playernames which holds different player names. Im trying to extract the values and upload them to a database one query per time, as such:
for ($i=0; sizeof($playername) > $i; ...
0
votes
0answers
28 views
How to prevent form caching in my website?
I'm using the following meta tags, but doesn't solve my problem
Pragma -> no-cache
cache-control -> no-cache,no-store
what is the difference of using this in meta tags and in headers form ...
0
votes
0answers
13 views
onclick not happening if pagination is happening
my php code
<?php
include 'dbConnect.php'; // include your code to connect to DB.
// How many adjacent pages should be shown on each side?
$adjacents = 3;
/*
First get ...
0
votes
1answer
8 views
PHP - get all email in mailbox via Google API
I would like create a class which get all receive email from google via Google API from user email in PHP.
Are have any ideals ? Thanks in advance
0
votes
0answers
10 views
Failed to bind to system using LDAP
I have a system and want to connect it to AD using LDAP. I try to test the connection first but it is a fail. It only print out '1' which means the code only run until (sizeof($_POST) > 0. What did I ...
0
votes
1answer
22 views
PHP PDO add edit update select statments
These are my PDO add, edit, delete ,select functions for my MVC pattern implementation.
I need to know if this implementation is correct using PDO.
These are Model Class functions:
public ...
0
votes
0answers
6 views
How to enable Google Drive for my Domain?
I am working on a Project in which i have to allow my users to access files from google drive.
I have a google doc viewer,how to view the files from other domain to the viewer??
How do I read a ...
-2
votes
0answers
17 views
Is there any way to quote string without new a real PDO object?
I am going to write a SQLBuilder for fun.
And to keep the query safe, I have to quote the value, for example, the value '12"3' should be '12\"3', I can use mysql_real_escape_string('12"3') to do ...
0
votes
2answers
23 views
error_handler() or set_error_handler()
I practice an exam in the book (webbot, sspider, sscreen and scrapers) but it didn't go well.
the result is :Warning: set_error_handler() expects the argument (BAD RESULT0) to be a valid callback
...
0
votes
1answer
16 views
Save Multiple featured product info into MySQL in Codigniter
I have attached my problems in jpg file for the issues of code format:::
1
vote
2answers
27 views
Is it best practice to minify wordpress core js files?
I need to remove comments from js files in my website.
Is its a best practice to remove JS Comments?
does a JS minify removes the comments?
is its best practice to minify wordpress core js files?
...
1
vote
1answer
42 views
Having issues with calculating two fields
Please assist? I have a database with a record table. Two of the fields that I am trying to calculate to get a certain number is not working. I am really new to php an would appreciate any help.
My ...