I'm having some issues with passing an email address in a url to a symfony app.
The url looks like
example.com/unsubscribe/email/[email protected]
It will always result in a sfError404Exception, except when the period is removed. After doing some googling around, the only solution I've yet seen is that htaccess is bypassing the url beca...
I've almost got a basic set of helper functions done for accessing ADO through PHP. I'm running into a problem when trying to execute a stored procedure with the adExecuteNoRecords option set for $cmd->Execute(,,adExecuteNoRecords);
I've tried null's for the first two parameters, new VARAINT(), new VARIANT(null), new VARIANT(VT_EMPTY), ...
I'm trying to gain access to a file on a client computer so that i can then later attach it to an outgoing email (resume.pdf)
Ive found a few clips of code but I'm having trouble getting it to work for me.
the code below seems to demonstrate all the things ill need to gather about my file but i can't quiet seem to get it to work yet. ...
I want to know how gmail chat allows the user to connect to AIM and then chat as if he were logged on to AIM.
Is this easy to make?
How can it be done?
Does anybody know of any similar open source tools?
Thanks!
...
Hi, so I'm in a little over my head right now and want to verify that i've been given good advice as for how to build this simple CMS site. It's a book site and there's going to be a few image galleries (for example, one for characters) where the user clicks different thumbnails and a span with text descriptions and large images are reve...
how would I sort these two products by say "id:17 value:### "
{"id":"16","value":"L-AOC000"},{"id":"17","value":"6.00"},{"id":"18","value":"10.00"},{"id":"19","value":"7.52"},{"id":"20","value":"4.75"},{"id":"21","value":"3.50"}
{"id":"16","value":"L-AOC001"},{"id":"17","value":"7.00"},{"id":"18","value":"11.00"},{"id":"19","value":"6....
Hi guys,
I am trying to figure out the best way to write a PHP function that will recursively build a multi-dimensional array with an unknown number of sublevels from a mysql table. Its purpose is to create a data structure which can be looped through to create a navigation menu on a website, with each menu item possibly having a submen...
I am trying to make the viewgit interface work for my projects.
However I am running into this curious issue with PHP exec:
These 2 unix commands work from inside my viewgit/ directory:
/viewgit-> GIT_DIR=/usr/local/apache2/htdocs/repo/.git git rev-list --header --max-count=1 c19e231ad87413798b6a1387a98ec814836fda1e
19e231ad87413798b...
hi all just wrote this:
<?php
function unicodeConvert($str)
{
header('Content-Type:text/html; charset=UTF-8');
$entityRef = array('"' => """, "&" => "&", '¢' => "¢", '¤' => "¤", '¦' => "¦", '¨' => "¨", 'ª' => "ª", '¬' => "¬", '®' => "®", '°' => "°", '²' => "²", '´' => "&acut...
Hello, given a direct link to an image, how do I store the actual image on a folder I have created on my server, using php?
Thanks
...
Right now I'm running 50 PHP (in CLI mode) individual workers (processes) per machine that are waiting to receive their workload (job). For example, the job of resizing an image. In workload they receive the image (binary data) and the desired size. The worker does it's work and returns the resized image back. Then it waits for more jobs...
In my CakePHP 1.2.5 app, I have a Profile model that belongsTo a User model. The User model has a username field, and when performing a find() on the Profile model, I want to always automatically retrieve the value of User.username too. I figure it would make sense to modify my Profile model's beforeFind() method to automatically conta...
Hello, here is the description variable I am echoing from my table:
$description = mysql_result($result,$i,"description");
sometimes the $i'th record is empty and doesn't have any data in it/no description.
What I want to do is echo "No description available" for records that are empty
if (isset($description)){ echo "No description ...
I have tried everything I can think of for the last two days. I'm truly lost. I need to get this line of code to change based on my database. I have tried everything I could find on php.net and many forums.
$Myday=>array('/index.php?day=$Myday&year=$MYyear','linked-day'),
Any ideas or help would be much appericated
$SQL = "SELE...
how do I restrict access to scripts using a permission scheme? I have thought of the ff:
store permissions as arrays with keys in the power of 2 (2, 4, 8, 16) and use bitwise operators to compare user permissions with permissions required to access the script
store permissions as strings and assign a set of permissions to a script. if ...
I am using PDO to do prepared queries in php with MySQL. The query executes with no errors but one parameter does not pass it's value properly. It come sup as a blank field, but not NULL. It's really weird as it seems that I entered the code the same as the others which of course work fine. Really frustrating.
$f_name = $_POST['f_name']...
hello, I am trying to get strpos to search string variable $string for the phrase "test" and if it doesn't contain test another variable $change is redefined as $string2 (where $change has been defined previously)
if (strpos($string, 'test') == false) {
$change = $string2;
break;
}
but unfortunately it doesn't work.
Is there a ...
Hello, I've created a miniature 'web server' that simply returns one message to any request sent to it on port 80. I can connect to it via http://127.0.0.1/ but when I try to connect to it with my actual IP address, nothing comes through.
Code:
# config
$conn_ip = "127.0.0.1"; // probably localhost
$conn_port = 80; // port to host...
Hi
I am working to add 1 month to date() and save it in my field on database.
I use this
$query2 = "SELECT * ,DATE_ADD(`date_joined`,INTERVAL 30 DAY) AS expire FROM `set` WHERE ID='$idno'";
$result2 = mysql_query($query2);
"expire" is the field i want to save as +30 days.
date_joined is current date.
but it doesn't work.
expire ...
I have the following code:
if (include_once(dirname(__FILE__).'/file.php')
|| include_once(dirname(__FILE__).'/local/file.php')
)
{
This causes an error because PHP tries to include "1" (presumably dirname(__FILE__).'/file.php' || dirname(__FILE__).'/local/file.php')
Commenting out the second line makes this work as intended,...