Questions tagged as 'php'

1
answer

How to solve this CakePHP problem on Mac?

Warning: require(/Applications/XAMPP/xamppfiles/htdocs/cake-teste/bookmarker/vendor/autoload.php): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/cake-teste/bookmarker/config/bootstrap.php on line 23 Fa...
asked by 18.07.2015 / 19:10
1
answer

Error printing echo php into div

I am an amateur programmer and I have a problem printing a php echo inside a div. I have a file that, when accessed (one time only) will start the installation of the database: mysqli_report(MYSQLI_REPORT_STRICT); try { $mysqli = new...
asked by 01.03.2015 / 15:56
2
answers

Error reading dynamically generated JSON with file_get_contents

I have this code that generates a json file to me header("Content-Type: application/json; charset=utf-8;"); $codigo = $_GET['cod']; //variável para parametro que será passado ao servidor via URL $sql1 = mysql_query("Select nome, valor fro...
asked by 24.02.2015 / 03:39
1
answer

php script without permission on root document

I would like to create a log with page visitor information, but the script is not writable. How to proceed?    PHP Warning: fopen (log.txt): failed to open stream: Permiss \ xc3 \ xa3o   denied in /var/www/html/index.php on line 30    ...
asked by 27.02.2015 / 23:30
2
answers

Capture and reduce values of multiple divs and inputs

I got it with the help of @ QMechanic73 , make a parser on a remote site, and capture the values between the span tags that are within several div with their given id , and span with their class and values b...
asked by 24.02.2015 / 19:58
1
answer

Session error in user-level validation

Well, I'm doing a simple dashboard with user level where I move to the session with an array of three values, so that's fine, the functions that validate the form, validate the user of the database, if the user is logged in or not, function that...
asked by 27.02.2015 / 19:23
1
answer

Back button with searched records

I have a button that at the moment is just a button: <button type="button" name="voltar" id="voltar" class="btn btn-default" style="margin-left: 30px">Cancelar</button> $('#voltar').click(function() { alert('voltar');...
asked by 27.02.2015 / 19:55
1
answer

Get return XMLHttpRequest send

Good afternoon, I'm using the following code to upload images: function uploadImage($form){ $form.find('.progress-bar') .removeClass('progress-bar-success') .removeClass('progress-bar-danger'); var formda...
asked by 15.05.2015 / 20:20
2
answers

Mysql automatically change data [closed]

Good afternoon, I wanted to implement a system that would cause my database to automatically change the value of one of the fields of an element when the expiration date field was higher than the current system date. I've already tried to implem...
asked by 12.05.2015 / 15:14
1
answer

How to upload in PHP data coming from a Form with support for text and an image?

In my project I have on a page a form to collect data that will be inserted in the database and in a folder of the server. My problem is that in this form I have a support for uploading images. Then in the PHP part to move this information to th...
asked by 25.03.2015 / 12:35