Hi everyone !
Almost everything is in the title :
Here's what I'd like to do :
A nice html page with a php authentication process (http first then http**s** & so on)
Launch a flex app which knows (I don't know how (this is the actual question !)) the user has already been authenticated and display his/her stuff he/she has to do for ...
I want my notices to stop displaying in PHP. Theres no errors in the code, it just says things like undefined index. Which nothing can be done about.
So how do I stop it from displaying?
Notice: Undefined variable: username in C:\wamp\www\watchedit\includes\config.php on line 37
Notice: Undefined variable: key in C:\wamp\www\watchedi...
Ok i want to load a Avatar with my users regso they can upload and make a profile page i have user reg and everything and im using a flat file in php?
...
I know the title isn't amazingly descriptive, sorry.
Basically I'm in the midst of creating a website where users can search for and buy website layouts, wordpress/joomla themes etc. Now users will be able to credit their account from paypal and use this 'site credit' to buy themes etc. Now this can be done with IPN, but for people sell...
Hello, my mysqli_fetch_array(mysqi_query($db, $query)) doesn't appear to be getting the correct information from the database, and therefore, the PHP application is not working as it should.
Here are the queries,
<?php
if($_GET){
$current = mysqli_fetch_array(mysqli_query($db, "SELECT * from `tbl_user` WHERE `userid` = '".$_GET['useri...
Hi,
I have the following situation
Multiple cameras send images at random intervals via FTP to a predetermined folders.
EG:
recordings/camera1/images/ - for first camera
recordings/camera2/images/ - for second camera
etc
Each of them save images in .jpg format and then close FTP connection.
What I need to get done is to call a PHP scri...
This is a terrible question because I don't have a simple way to reproduce it. However, I'm using the Zend Framework to connect to my MySQL database on OS X. Sometimes a call to the prepare function on a mysqli object returns null. The stated return values for the prepare function are false or a statement object.
I can't figure out w...
Hello, here's the code:
if ($_POST) {$content = stripslashes($_POST['content']);
$by = $_SESSION['exp_user']['username'];
$dt = date("F j, Y, g:i a");
mysql_query("UPDATE tbl_intmsg SET time = ".$dt.", by = ".$by." AND content = ".$content."") or die(mysql_error());
For which I recieve error:
You have an error in your SQL syntax; ch...
When creating an sfPropelRouteCollection, how can I edit the action names that the collection will generate?
For example:
# Routing for "product" CRUD
product:
class: sfPropelRouteCollection
options:
model: Product
module: product
actions: [new, create, edit, update, delete]
...
Im doing research on which one of these to use and I can't really find one that stands out. Eaccelerator is faster than APC, but APC is better maintained. Xcache is faster but the others have easier syntax.
Anyone have recommendations on which to use and why?
Thanks
...
I have a date such as 2009-06-30 (30th june, 2009). I want to calculate a date which appears 2 months, and 3 days before or after the first date. Or, 3 months, 6 days, before or after, etc. How can I do this? Is there an easy way using DATE_SUB() or DATE_ADD()
...
I'd like to set a variable in my Symfony action that holds the rendered template data for that action. I'm returning some JSON content with the action, and I'd like to store what the action would be outputting into the JSON and return it.
public function executeAjaxPriceAdditionCreate(sfWebRequest $request)
{
$this->form = new ProductP...
I have search in Google but couldn't find an answer. Please define what is stdClass.
...
Is there a similar or equivalent function in Python to the PHP function htmlspecialchars()? The closest thing I've found so far is htmlentitydefs.entitydefs().
...
I'm writing an application that downloads an XML string from a URL and POSTs that to another URL (that's set up to handle an incoming "XML" field). I've got the first part right - it downloads the XML and I can alert() it and all that, but I'm unable to figure out how to POST that data to a server.
function pull() {
var myLoader = n...
This isnt actually a programming related query but again - I've set up a free social networking site on a small level. However I need to know what procedures do I need to follow to make sure that in a bad situation I can recover with minimal embarrasment.
Everything like what conventions should I follow when I need to :
Make updates t...
So I have seen some comments on various web sites, pages, and questions I have asked about separating php and html.
I assume this means doing this:
<?php
myPhpStuff();
?>
<html>
<?php
morePhpStuff();
?>
Rather than:
<?php
doPhpStuff();
echo '<html>';
?>
But why does this matter? Is it really important to do or...
Does anybody have a good function for validating email addresses by SMTP in PHP?
Also, is it worth it? Will it slow down my server?
--> EDIT: I am referring to something like this:
http://onwebdevelopment.blogspot.com/2008/08/php-email-address-validation-through.html
which is meant to complement validation of the syntax of the email...
I use a very simple query with "Like" to find product by its name
SELECT p_pid, p_name, p_cat
FROM products
WHERE p_sid=346 AND p_name LIKE 'product name here in utf-8 encoding, can be various languages'
LIMIT 1
When I run this query from code with valid product name, I get no results. If I copy the query (echoed by php to the browser...
I asked another question about HTML and PHP separation as I have seen references to it on tutorial and examples pages but I found that separation of HTML and PHP it something different than what people are actually commenting on and I think that is PHP modes.
That is breaking out of PHP or not. Should It be done? Is it important?
Is it...