Questions tagged as 'php'

1
answer

Content crawler for external pages with PHP [closed]

I was given the mission to create a script that will capture the price, image and content of products from some sites indicated by the application administrator, taking into account that the structure of each of these sites is different, and tha...
asked by 06.03.2014 / 19:38
4
answers

Every N replicates display X in PHP

I'm exercising the knowledge in PHP and I've had a question. How do I display a text after N DO loop repeats? <?php do { ?> <div class="fotos"> <h1><?php echo $titulo_da_foto; ?></h1> <img src="...
asked by 19.03.2014 / 18:48
3
answers

Find information from the bank table with PHP every 10 minutes [closed]

I need to fetch information from a database table every 10 minutes using PHP language. Does anyone have any idea how I can do this?     
asked by 21.03.2015 / 16:56
1
answer

problems updating a table

I'm a beginner in php. does anyone know why it is not working? It does update correctly integer values, but if it is a string of letters does not work html He will type here a url to do the update <input type="text" id="url_video">...
asked by 26.03.2015 / 06:26
1
answer

Receiving data in JSON with cURL

I'm sending a cURL, to a URL that will return a JSON response. I'm not sure how to do this, but I'm not sure how to do this, but I'm not sure how to do this. return page is blank. How do I get the page returned in JSON? I tried something like...
asked by 02.04.2015 / 16:07
1
answer

Custom Field in Woocommerce does not return the result

I'm having a problem with WooCommerce. I added a field that does not have the default WooCommerce that would be to add the amount of products that go into the product's master box. The code I'm using in my function.php is as follows: &l...
asked by 13.08.2014 / 21:43
2
answers

Traversing Array within a String

I am creating a system that saves text and variables inside a .txt file and I need to add the results of an array inside this file as well. Code: $produtoImpressao = $_SESSION['produtoImpressao']; //Array de produtos $fp = fopen("manifes...
asked by 12.08.2014 / 20:13
1
answer

Find the next "less than" value in an array

I have the following array and I need to find the next smaller value than the one defined in $valor : $seq = array(500, 490, 430, 370, 350, 240, 100, 90); $n_seq = count($seq); $valor = 400; // ASSUME DIFERENTES VALORES if ($valor &g...
asked by 05.04.2014 / 14:05
2
answers

PHP display image from mysql

I am developing a CMS where the user can insert articles and if you want to upload an image to that same article, the text uploads work correctly but the images do not, the only thing that appears is the name of the image in the site where the i...
asked by 08.04.2014 / 17:38
4
answers

Is it possible to check the size of a string inside an array?

I have an array that is built by the selected chekbox results ... It returns with var_dump : array(3) { [0]=> string(7) "BXT0022" [1]=> string(7) "BXT0010" [2]=> string(7) "BXT0024" } If you have something in the...
asked by 07.04.2014 / 01:08