Test FTP locally with WAMP 2.0?
I have WAMP 2.0 installed and am working on a content management system using PHP and MySQL. Is it possible to use the PHP FTP functions on my local machine, so I can test them? Thanks! Mike ...
I have WAMP 2.0 installed and am working on a content management system using PHP and MySQL. Is it possible to use the PHP FTP functions on my local machine, so I can test them? Thanks! Mike ...
Hello, I am just trying to test out the new Zend Studio 7.2, and in the beginning I was able to create proper project files just fine, but for some reason, not it doesn't want to create them I just receive empty files, plus some "error icons" on top of the files. I have Zend Server (Community Edition) installed and trying to see if that...
I'm trying t build a somekind a clone to wordpress and have some problems understanding the functions that are used there. But that's not the problem.. The thing I'm looking for is good book that detailed explains what aspects to be aware of during the creation of the cms and some code snippets or something in that direction.. With best...
I want to start using Zend_Rest_Controller for my app, and have set up the routing like so in my bootstrap: protected function _initRestfulRoutes() { $front = Zend_Controller_Front::getInstance(); $router = $front->getRouter(); // Specifying all controllers as RESTful: $restRoute = new Zend_Rest_Route($front); $rout...
I have a table called expenses. There are numerous columns but the ones involved in my php page are date, spplierinv, amount. I have created a page that lists all the expenses in a given month and totals it at the end. However, each row has a value, but many rows might be on the same supplier invoice.This means adding each row with the s...
the date stringe is Apr 30, 2010 I want to parse the string into 2010-04-30 using php, how can I achieve this? Thanks!! ...
I can't change the php.ini for some reason, how can I do it in code level? ...
Can I set the default in phpMyAdmin to open in structure instead of browse? thanks ...
I have a class that runs a function when the image is clicked on to display an additional image. This function produces a linked div tag that reloads the page with a set of variables that then produces another image. The image is set as a background image on a large div tag behind the linked div tags to give the same effect as an image m...
I've run into a strange issue with Webkit based browsers (both Safari and Chrome - I'm testing on a Mac) and I am not sure what is causing it. Here's a small script I've created that replicates the issue: <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>...
So I'm trying to build a basic voting application. My approach is to have a link that opens up a colorbox with a recaptcha in it. The user fills out the captcha and submits. On the next page (also intended to load into seemingly the same colorbox) I check the captcha and do an insert into my vote tracking table. I then use the callbac...
Hello.. like in facebook.com or in Gmail if you go offline/loose connection while your on the page, you will get "some went wrong, trying to connect in x:xx seconds" or like "you have lost your connection".. how have they done so they can give an offline message? How to do that? example? ...
In cPanel's Analog Stats statistics module, I've noticed countless requests to connect to the following example: /?x=19&y=15 The numbers are random, but its always setting x and y variables. Another category of mysterious requests: /?id=http://nic.bupt.edu.cn/media/j1.txt?? There are other attempts at injections in the request log...
I'm trying to get some stuff from a string in php. In RegexBuddy and Regular expression tester (firefox addon) it works good, but php gives me the following: Warning: preg_match() [function.preg-match]: Compilation failed: unmatched parentheses at offset 34 in D:\path\example.php on line 62 my pattern is "/.{4}_tmp\\([A-Z...
Has anyone met this problem ? I've checked the output of phpinfo(),and see gd is enabled. UPDATE I built PHP with --with-gd, but only GIF Support and PNG Support are in the output of phpinfo(), how do I enable JPEG Support? ...
I've developed a website in php codeigniter with the idea of using single physical instance of the code. Here the logic i wanted to be is on login page user will chose the companyid which will be internally to the database name. I want to know how to update the active_group variable according to the company id chosen by the user at the ...
Hi, I'm new to PHP and I'm having a problem when trying to link my CSS files using include. Basically I need my files to link back to a certain directory no matter how far down the file is. I have tried using <?php include $_SERVER['DOCUMENT_ROOT'] . '/sysprogs/required/header.html'; ?> But header.html contains the links to my ...
Basically a friends just gifted me an old domain to develop, it has quite a few inbound links and its getting a lot of 404 hits. The basis of the site is to let users hotlink images off it, to put in forum signatures / blog comments and whatnot. I was wondering if there was a way to redirect all these broken image links to a single imag...
From what I know about PHP, the following syntax is not legal: if ($s == Yes) It should instead be written as: if ($s == 'Yes') However, the first example is working just fine. Anyone know why? ...
Hi, how do I add a CC mail address in PHPMailer running on a Linux server? AddCC method only works on Windows: http://phpmailer.worxware.com/index.php?pg=methods I tried with this method but the mail never arrives... I also tried with $mail->addCustomHeader('CC: [email protected]') without success. Thank you. ...