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.

learn more… | top users | synonyms (6) | php jobs

0
votes
0answers
4 views

imagejpg() returns all black image

I've searched for a solution to this problem until I was blue in the face. I can't for the life of me figure out why my code is returning images that are all black. Here is my code, could someone give ...
-1
votes
1answer
14 views

Hi! I'm following this book PHP 5 Social Netowrking by Michael Peacock.I'm stuck

I'm following this book PHP 5 Social Netowrking by Michael Peacock. I just tried his sample code on localhost but I'm getting the following error after creating a new database Fatal error: Error ...
0
votes
0answers
7 views

Im trying to send message using a gateway which requires login .I dont know what's the error in th code can anyone suggest?

Using curl im saving the cookie from the webpage <?php $ch = curl_init("http://www.160by2.com/re-login"); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_VERBOSE, true); ...
0
votes
2answers
12 views

Error: Unknown column 'subtract' in 'field list'

Error: Unknown column 'subtract' in 'field list' Error No: 1054 INSERT INTO order_product SET order_id = '3', product_id = '652', name = 'Несесер NORTHLAND Big', model = 'NORTHLAND Big', price = '27', ...
0
votes
0answers
10 views

PHP get input from CLI

I'm making an IRC-client in PHP for Windows. I've got it to work other than scanning input. This is the code I've got so far, it reads input from the console and then from the IRC-server. But that's ...
0
votes
1answer
20 views

Looping through results from MYSQL query and inserting into a table

I'll try asking this question again. Hopefully making more sense this time! I have an user editable cell on my webpage. I want to connect to MYSQL database and search a field for the text input into ...
-5
votes
1answer
18 views

I want to write my php code result to another text file.

I want to write my php code result to another text file. i know its very much simple but want to sollution. I want to write this code result to an text file. <?php $i=1; while($i<=5) { ...
1
vote
1answer
20 views

Generate a dynamic ul li List from DB

I don't arrived to create a dynamic Menu from a DB ><ul class="sub"> <li class='hidden'>id</li><li><a href="#">a</a></li> ...
0
votes
0answers
8 views

how to solve iis error 500 upload file using php

I am trying to upload a file to server. here is my code: <?php error_reporting(E_ALL); ini_set('display_errors', '1'); //ini_set('error_log','/httpdocs/error_log'); echo "upload_max_filesize: " . ...
-1
votes
0answers
5 views

Installation of Joomla 3.1 on Wamp 2.4 gets stuck [on hold]

I'm trying to install Joomla 3.1 on Wampserver 2.4. Server is working (also MySQL), I've already installed WordPress, but whenever I proceed to install Joomla, installation process gets stuck at ...
0
votes
1answer
10 views

php grid layout with div tags

I am a newbie in php. I am using the code below to make a php grid layout with tables but i wanted to create it with div tags. Can anyone suggest a solution to make this? This is the code i use now. ...
2
votes
3answers
33 views

Get ul li a string values and store them in a variable or array php

Im trying to store the string value's of a list item on my website into a variable/array in PHP to do some conditional checks/statements with them. Am having a bit off difficulty getting the list ...
-1
votes
0answers
19 views

Most secure way to store passwords

What is currently the best practice for storing user passwords in a database? Previously I have used hashing with SHA256 and salting. $storedpassword = hash('sha256', $salt . $password) But from ...
0
votes
0answers
13 views

Overcome Doctrine's upper integer limit?

I'm storing large numbers and have set the column to bigint. However, the value seems to be limited to 2147483647. I found this: On the line indicated above an integer, stored as a string, is ...
0
votes
0answers
8 views

SED command in PHP script (error expression #1, char 34: Invalid preceding regular expression)

This code worked for a couple of weeks, returning an error now. Any suggestions on what migth have happened? It seems the site I'm parsing made minor changes causing my parser to choke on it ... ...

1 2 3 4 5 27502
15 30 50 per page