I'm debating on whether to get Dreamweaver CS5 or Zend Studio for my web developing. I was happy with Dreamweaver until I tried Zend Studio (and Netbeans for that matter) and realized what kind of great code formatting and completion I was missing out on.
My question is, does the newest version of Dreamweaver support:
PHP / JS formatt...
Hi ,
I have a problem with mysql query ..
I have a table in the data .. name is (Info_website) , the field is (NumVisitor) ..
the problem when the visitor refresh the page I want the filed (NumVisitor + 1) but infact it +2 ..
this is the code ..
$sql2 = "UPDATE `Info_website` SET `NumVisitor` = `NumVisitor`+1 WHERE `Id`=1 LIMIT 1";
...
Hello all,
The PHP script is as follows:
<?php // continue.php
ini_set('session.gc_maxlifetime', 5);
session_start();
echo ini_get('session.gc_maxlifetime');
// wait for 7 seconds
usleep(7000000);
if (isset($_SESSION['username']))
{
$username = $_SESSION['username'];
$password = $_SESSION['password'];
$forename = $_SESSION[...
I have created an API that is used on several sites. The client sites call the server with either file_get_contents or curl and accesses a url of ours like "http://www.myserver.com/api/record.php?some=thing". The client makes the call and then waits for the API to respond before processing the rest of the page. However, some of the time ...
I have three different versions of a mobilized website, and as the market is flooded with more and more phones, I'm struggling to keep up with knowing where to push them. I'm wondering if anyone has faced a similar issue, of how to detect the browser type, and forward to the appropriate version of the mobilized website (where it be text...
I am currently interested in writing a python wrapper for some php code. I was wondering if there was practice for writing wrappers, in any language for that matter. I am mainly concerned with php for now.
Any tips and best practices would be appreciated.
Please and thank you.
...
I would like to do a site in PHP/MySQL using either Drupal/Joomla/Wordpress that allows me to have class list with description/date and students can sign up to pay for it. I prefer Wordpress if there is some package already. The idea is to have students to pay via Paypal. For backend, Admin should be able to manage class, check students ...
Hello,
I've been wondering: is it possible to shield a directory/file on a server from the outside world, but make it accessible to PHP?
It's fairly simple. I'm caching webpages on my server with PHP in a certain directory, but I do not want web users to view these files or this directory directly. PHP, on the other hand, must be able ...
I need some way to either -
remove the square brackets when either saving via curl or decoding the json text file
and or remove both "created" and "modified" strings so that I am left with just the url string please when saving using curl.
[{
"created":"10:30pm 5 August 2010",
"url":"\/Images\/Temp\/7553-12a40d5af00-12a45a200-...
Hi,
Is it possible to bypass any controller in a Zend Framework web site? Instead I want a normal PHP script executed and all its output should be placed in the layout/view coming from ZF:
Request --> Execute PHP script --> Catch output --> Add output to view --> Send response
The challenge is to integrate existing pages/scripts into ...
How can i start a session in PHP which will be global to all my pages. I don't have access to the php.ini file. So session.auto_start = 0 in my php.ini will not be a solution for me.
Thanks.
...
Let's say I have a simple CSS layout and my menu is a column on the side. This menu is going to be on every web page (About 10 web pages). If I have items on this menu in the form of links and such, how can I make it so that if I add a link on one page, it will add it to all pages? Would you just make it a PHP page and in that <div> elem...
When I echo $PATH on my command line, it returns
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/MAMP/Library/bin:/usr/local/git/bin:/usr/X11/bin
When I execute this php code
exec('echo $PATH; whoami; less /etc/paths; 2>&1')
I get
string 'echo $PATH; whoami; less /etc/paths; 2>&1' (length=56)
array
0 =>...
I have a mysql table that includes the fields:
Name - Year - Description
I'd like to display in order by year, but want to split into to columns by decade. My PHP skills are pretty weak, so I only know how to do it the long way where I make a separate query based on the year range:
<?php
echo "<div><h3>1950</h3>";
$list1950 = mysq...
How should I validate data going into multiple tables that all depend on each other?
I have a debate site, where users can start a debate and with their debate submit "survey options" so people can choose an option when they reply to the debate.
The validation process goes like this, the debate model validates that the columns specifi...
I'm trying to include a file (/wp-load.php) at the beginning of the /html/ directory. I'm trying to include it from /wp-content/themes/pw-steel-orange/index-load.php, but I always get the error message
Warning: require_once(../wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /nfs/c07/h01/mnt/1...
//include.php
<?php
echo 'ABC';
?>
//buzz.php
<?php
$a = include('include.php);
echo $a
?>
-> Output: ABC1. give me a solution (i know why, needn't explain);
...
So i have this XML structure:
<fields>
<field name="agent_description" label="Agent Description" size="area" />
<field name="agent_phone" label="Agent Phone" size="field" />
<field name="agent_email" label="Agent EMail" size="field" />
<field name="agent_listing_url" label="Agent Listing" size="field" />
<field name=...
Code: http://pastebin.com/h8WuYbJn
Full error: Fatal error: Call to undefined function AddUser() in C:\xampp\htdocs\scripts\steam.php on line 37
What exactly am I doing wrong? Everything should be right, but it isn't (at least according to PHP).
...
So in keeping with my last question, I'm working on scraping the friends feed from Twitter. I followed a tutorial to get this script written, pretty much step by step, so I'm not really sure what is wrong with it, and I'm not seeing any error messages. I've never really used cURL before save from the shell, and I'm extremely new to PHP s...