Tagged Questions
PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.
0
votes
0answers
2 views
Installing Mongo Driver on MAMP
I have downloaded, compiled and installed the latest mongo driver for php & it's been placed at:
/opt/local/lib/php/extensions/no-debug-non-zts-20090626/mongo.so
How would I go about adding ...
0
votes
0answers
4 views
I can't associate my Images to MySQL
I have Pictures which are located at Images/, and the Thumbnails at Thumbnails/, Whatever my problem is that I can't associate my uploaded images to an SQL table, I want to do so to make the ...
0
votes
0answers
5 views
Unwanted lines printed between cells using MultiCell in TCPDF
I am using the MultiCell function in TCPDF and having unwanted lines printed between rows.
How can I remove these?
0
votes
1answer
18 views
php Form calculater how can i fix this
OK i am making a form that calculates line 1+ line 2 +*.01% then adds line 3+ line 4 then gives a total. I am having a problem with *.01 it works with just the first two but when i add the last two it ...
0
votes
1answer
3 views
Alternative to finfo(FILEINFO_MIME)->buffer() in Linux command line
Instead of using finfo on files to retrieve the content-type you can execute a command in linux
if(PHP_OS == 'WINNT'){
$finfo = new finfo(FILEINFO_MIME);
$content_type = ...
2
votes
0answers
19 views
Running a php script as a background process using unix
I am trying to run the php script (below) named daemon.php as a back ground process using unix.
#!/usr/bin/php
<?php
$count = 0;
while(true){
$count = $count + 1;
...
0
votes
0answers
7 views
how to use zend framework getFileInfo with a base64 image?
i am sending an image from canvas to an zend action using ajax/.
the image looks like data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAADwCAYAAABxLb1rAAAgAElEQVR....
i am parsing the image like ...
3
votes
0answers
23 views
Manipulate a PHP array to match array requirements of a function and call function recursively
I'm working on trying to automate the update of certain records in our SugarCRM system from a CSV file I will be receiving each month.
Background/Introduction
I am using the code below that is ...
0
votes
6answers
47 views
Is this a good way to sanatize php $_POST inputs?
I have been using this code on my website for a long time, and just want to make sure I am correctly sanatizing my PHP $_POST inputs...
foreach($_POST as $key=>$val) //this code will sanitize your ...
3
votes
2answers
28 views
Understanding / improving a barebones MVC framework
I realize this topic has been asked and addressed repeatedly, and although I've read through countless similar questions and read through countless articles, I'm still failing to grasp a few key ...
-2
votes
2answers
27 views
two right joins on same PHP page?
I have two queries on the same PHP page. They are as follows:
$query1 = mysql_query("SELECT * FROM debates RIGHT JOIN users ON debates.UID=users.UID
ORDER BY timestamp DESC LIMIT 0, 10");
...
0
votes
0answers
25 views
Problems with regexes when porting from Ruby to PHP
I have two bits of code that seem to be correct translations of one another. They unfortunately appear to return different values.
Code in Ruby:
def separate(text,boundary = nil)
# returns array ...
0
votes
1answer
17 views
Google App Engine PHP file permissions
App Engine applications can be implemented using the php programming language since May-16-2013.
It seems that the PHP process on google-app-engine does not have enough permissions to create folders. ...
-1
votes
0answers
13 views
Image quality option for thumbnails creation
I'm trying to find a way to put image quality option at this code but i'm really stack. I need a parameter to reduce the thumbnail image quality on this code
Image::makeThumb($new_path, 600, 0, ...
-3
votes
1answer
17 views
Godaddy PHP error message
At http://beta.brianjblair.com/ I get:
Warning: include(/ap/js.php) [function.include]: failed to open stream: No such file or directory in /home/content/63/10105363/html/beta/index.php on line 11
...