PHP - How to Rename an Image File on Upload

PHP
This is a complete script I am using that creates 3 different re-sized images from my original upload. Right now it renames the 3 output files with th...
1 year ago

php not echoing html

PHP
i have a table which is not showing, its showing the actual text. Here is the code: <?php $form ="<form action='log.php' method='post'> <...
1 year ago

Jquery: Parsing HTML

PHP
I need help in parsing href tags. Currently, everything is being parsed as text, however I need to parse the links so that I can send it to the php pa...
1 year ago

How resize image with custom ratio using Intervention image manipulation library in laravel

PHP
I want to resize an image with custom ratio (width:height)=(5:1) Using Intervention image manipulation library in laravel. It's not a problem if the...
1 year ago

Ruby 3DES implementation vs PHP mcrypt, different results

PHP
I'm trying to migrate some legacy PHP code to ruby, and I've encountered a problem with some 3DES encryption. This is the PHP implementation using mcr...
1 year ago

UTF-8 problems PHP/MySQL

PHP
I've always used ISO-8859-1 encoding, but I'm now going over to UTF-8. Unfortunately I can't get it to work. My MySQL DB is UTF-8, my PHP document i...
1 year ago

Ionic + ngCookies + PHP authentication, how secure can it be?

PHP
I'm developing a mobile app where I wish to implement a simple user authentication, and as i'm new to hybrid mobile developing with its front-end rest...
1 year ago

Error 500 after submitting the form in codeigniter

PHP
I'm a newbie in CodeIgniter, so this question might sound too dumb. Using these MVC, i get Error 500. Any ideas? Controller <?php if (!defined(...
1 year ago

jQuery Ajax sends empty escaped data

PHP
I'm developing a mobile application which would connect to a site API. I am sending the data through jQuery Ajax, but on escaping the data to be URL f...
1 year ago

Get The Time In Php For Chat

PHP
UPDATE: I fixed the problem. $date = new DateTime(null, new DateTimeZone(date_default_timezone_get())); $date->setTimeZone(new DateTimeZone('Amer...
1 year ago

PHP language detection

PHP
Im a hobbycoder that is trying to build his first multilangual site I use this piece of code to detect users language. If you havent chosen a languag...
1 year ago

How to use wget in php?

PHP
I have this parameters to download a XML file: wget --http-user=user --http-password=pass http://www.example.com/file.xml How I have to use that in...
1 year ago

How to get last key in an array?

PHP
How can I get the last key of an array?
1 year ago

Get key of the last element in an array

PHP
Hay, i have an array which contains a set of arrays, here's an example. array( [0]=>array('name'=>'bob'), [2]=>array('name'=>'tom...
1 year ago

how to insert data to table by store procedure with session value?

PHP
This is a stored procedure in mysql database. I tried mysql_query($connection, "CALL xyz") but shows me error. by store procedure I want to insert d...
1 year ago

PHP MySQL select issue

PHP
i have a database called emplyees structured like this: id name entrydate totalhours 1 test 11/11/2015 8 2 test2 11/11/2015 7 3 ...
1 year ago

Handling "The openssl extension is missing: in XAMPP

PHP
I tried to Install composer on my PC (Windows 8 Pro 64x and XAMPP 3.2.1), so I downloaded Windows Installer and run it But I got this error: The ...
1 year ago

unserialize() [function.unserialize]: Error at offset

PHP
I am using Hotaru CMS with the Image Upload plugin, I get this error if I try to attach an image to a post, otherwise there is no error. The offendin...
1 year ago

Retrieve exit status from php script inside of shell script

PHP
I have a bash shell script that calls a few PHP scripts like this. #!/bin/bash php -f somescript.php php -f anotherscript.php I want to compose a...
1 year ago

How can I insert multiple children along with parent record using Laravel Eloquent

PHP
I am trying to create a simple shopping application using Laravel, I am using LaravelShoppingCart plugin to store items in the user session. When the ...
1 year ago