I just don't see the problem. Need some new eyes to review it. Two files included test.php and test2.php to var_dump. Help!! Cut, Paste and Run - Thanks
test.php:
<?php
ini_set('error_reporting', E_ALL );
ini_set('display_errors', "1");
?>
<style type="text/css">
div.tabcontent{
visibility: hidden;
position:absolute;
left:20px...
I have a command line php app that I need to distribute to a client. I just want to give them an executable, not instructions for installing php ;)
What is a good php compiler for windows that includes support for php 5, curl, TLS, and a few other libs I use?
I need to control memory and time limit usage, so I must be able to use a cu...
I have a PHP app running on IIS7 server 2008. It has a COM object that I'm not able to bind to. The error is...
Failed to create COM object 'name': Catastrophic failure
... where 'name' is the name of my COM object. The COM object is designed to read/write registry settings, and I've given it permissions to function to the best of my...
The code below generates the text for the e-mail that is sent when a user requests a new password:
<?php echo __('Your password has been reset, your new login information can be found below:') ?>
Email: <?php echo $sfGuardUser->getEmailAddress().PHP_EOL; ?>
Contraseña: <?php echo $password; ?>
As you can see there are two empty line...
I need to make sure that every users accessing my web application can do that from one machine only, so 100 users would mean 100 machines. What would be the best solution? Is detecting and storing IP during first login good idea? I think IP might change even during lifetime of the session is that right? I was also thinking of storing coo...
I am looking for a really simple PHP image gallery system that allows file uploads and provides easy integration into any existing PHP script. I only found full galleries with database backend and templating systems for integration and the too simple ones that just take a folder with (FTP uploaded) images and show it but don't provide th...
I use HTML Purifier to clean input in my CMS. Many of my clients like to have PayPal donation buttons in their site, but HTML Purifier strips the forms out. I noticed that HTML Purifier has a HTMLPurifier_HTMLModule_Forms class, but I don't know if that does what I want. If it does, how do I enable it?
Thanks!
Looks like I might h...
I am currently working on a PHP project which includes extensive database usage. The basics are: I have a PDOFactory class which follows the Factory pattern and an abstract SQL class with static methods (just a container for those methods) which in turn talks to PDOFactory
As I said, the project involves extensive database usage, so the...
Hello SO:
I am a bit rusty at PHP, so bear with me. I am making a simple email form that validates a few key pieces of data. One of these fields is the submitter's zip code. To validate this, I figured a regex would be simple since I am pretty confident the validation can be done in one line. Behold:
preg_match("^([0-9]{5}|[0-9]{5}\-[0...
Hi everyone,
I was wondering if there was an API i could use to send free sms messages. I've made a social networking website for africa called. www.veepiz.com
I really would like this feature but almost every provider needs payment. yet i see lots of websites offering this. i also read you could use jabber API and still do this.... ...
I have a cookie that I use on my app. It looks like this:
+-------+-------+-----------------------+-------+----------+
| Name | Value | Domain | Path | Expires |
+-------+-------+-----------------------+-------+----------+
| foo | bar | my.domain.tld | / | Session |
+-------+-------+-------------------...
Is it feasible to allow users to login to my web application (php/mysql) using thumb scanner? USB scanners seems available and not too expensive, but has anyone got experience with it? How to make it work with php so users instead of filling in regular username/password fields would actually be able to login by scanning thumb. Are there ...
We have web application that is almost 100% web service driven. We create & host oem versions of this web app for various vendors. Presently we are using asp.net & lots of user controls for the UI.
I am looking for solutions to providing the oem builds. Presently we turn features on & off server side, all configured in a database. I...
hi all of you, I just read about unset variable through php manual.
The php manual says
"unset() destroys the specified variables"
This def seems perfect until I came across static variable...
"If a static variable is unset() inside of a function, unset() destroys the variable only in the context of the rest of a function. Follow...
Hi--
I'm writing a PHP script that I want to disable from web access (I will ask users to move it out of the web root and execute via CLI, but you never know if they'll listen!)
Is there a simple function that occurs to anyone to make the page die if it's requested by a browser?
Thanks for any ideas.
...
Hi guys.
I am using Flex and php to develop my project. Everything works great in my local machine. However, when I upload my files to my server (godaddy.com). I got the error when loading my flex application.
The pop-up error message is
send failed
channel.connect.failed.error
Netconnection.call.Badversion: url:
http://mydomail/...
Hi, I'm modifying a wordpress plugin (Related Posts by Category) to make it instead "Related Posts by Taxonomy". I've created multiple taxonomies (elements, colors, and mood) that I'd like to include in this query, but can only seem to make it work with one taxonomy (elements). The code below only returns related posts that have the same...
Hi, my preg_replace replaces my whole string instead of just the bit where the expression fits.
Code:
http://beta.yapaste.com/bd
This is what I want replaced:
<table id=\"post24100391\" style=\"width: 100%;\" class=\"p4\" >
Thanks for help.
...
I'm working on a rather intensive rewrite and given a choice of the following options:
JSP / Java running on Tomcat
PHP running under Apache
Ruby (running under I'm not sure, ROR?)
A couple of basic questions I would like to know about the above.
Speed is a concern. We have a MongoDB backed database, so we shouldn't need to be waiti...
<marquee behavior="alternate" scrolldelay="1" scrollamount="2">
<?php do { ?>
<?php echo $row_Recordset1['Name']; ?>:
<?php echo $row_Recordset1['Text']; ?>
•
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</marquee>
<?php mysql_free_result($Recordset1); ?>
...