Questions tagged as 'php'

1
answer

How to allow accentuation return in JSON using PHP?

Attached to the photo of my JSON return Ihavefollowingcode:<?phpheader("Content-Type: text/html; charset=UTF-8",true); $array1 = array(); $contador = 0; $estado="online"; if (!$enlace = mysql_connect('meuHost', 'meuUser', 'Mi...
asked by 24.11.2015 / 10:40
1
answer

Form does not send messages

I have a bootstrap form of which I'm using jquery to do the firing. I'm using the following code: Form <form class="contact-form" name="contact-form" method="post"> <div class="col-sm-5 col-sm-offset-1"&...
asked by 23.11.2015 / 18:31
2
answers

Get general project directory, php

How can I get the root of the project folder with PHP? My searches have me use DIR however this returns the direction depending on the location of the file, and I want the project root, much called www, htdocs etc ... Assuming this organ...
asked by 11.11.2015 / 01:36
2
answers

How can I make a link from my site open only when clicked on the same page? [closed]

I'm trying to make a plugin editor for html, css, js and php files, my problem comes after it reads all the files it creates a link to edit my created file and goes to another page only that I want that when the link is clicked it instead of red...
asked by 24.11.2015 / 22:41
1
answer

store SQL query in Session for further processing

I would like to store a SQL query in a session, that is, all fields and their values. I'd say there are 12 fields, and about 150 records on average. The idea is not to query the database every time you need it, but only once and the others...
asked by 31.10.2015 / 21:57
1
answer

Doubles Simple School System

Well I'm doing a job for college, I'm already in the middle, but to do the final part I need: The teacher can register a pdf / image, in his area. And the student on his page can see / download this attachment. What I have so far only s...
asked by 16.11.2015 / 03:08
1
answer

cURL 100% look identical to my request using regular browser

I need to do some standard functions that I always do manually, and I would like to automate this. I tested it with iframe , but without success, it does not read the document nodes. I thought of using the cURL library, so I get the conten...
asked by 20.11.2015 / 15:33
2
answers

Folder Permission Error

Good afternoon, I'm having a folder permission error, my code mounts the gallery writes the first photo as a cover sheet and then creates a folder inside the directory stipulated by me, and the same places the images of the gallery inside. It...
asked by 17.11.2015 / 18:21
1
answer

Display Wordpress User Profile information on the page, only when its field is filled in

I created fields for social media in the profile editor for a template. I tested on static links and they are working correctly: function author_social_media ($profile_fields){ $profile_fields['facebook'] = 'Facebook URL'; return $p...
asked by 19.11.2015 / 19:19
3
answers

How to sort from what has more records to what has less

I have a table where id_produto and ip will be stored. I'll mount a "module" where the system will pull some of the products that have had the most visits, so what I need to do is pull the products that have the most records in the...
asked by 19.04.2016 / 04:19