Questions tagged as 'php'

2
answers

Get a value inside the HTML cURL

I want to get a value that is inside the html of a page <a href="https://www.site.com/user.asp?ref=fvFCF9D8N4Ak"> I want to get only the value ref=fvFCF9D8N4Ak I'm using cURL and php and thought the solution was a regex....
asked by 11.12.2014 / 22:06
1
answer

Ajax and PHP for uploading images + information registry

I've been beating since yesterday with an upload of images in AJAX. I am going to publish the advances that I had in study and the difficulties that I still have in case someone can help me:) My script as I always did (without images) was bas...
asked by 19.06.2018 / 15:11
1
answer

Update cart status without leaving the page | Woocommerce 3.4+

<?php global $woocommerce; if ( sizeof( WC()->cart->get_cart() ) < 1 ) { ?> <div style="width: 25%;" class="footer-section <?php echo esc_html($woo);?>"> <a href="<?php echo get_home_url();?>"...
asked by 15.06.2018 / 12:27
1
answer

How to get a file in PHP passed by $ .ajax?

I have a problem I do not know if it is when sending in $ .ajax or catching with PHP. It is not getting the $_FILES normal on the other side, it arrives as 'caminhofoto' => string 'C:\fakepath.jpg' (length=17) , gave var_du...
asked by 20.12.2018 / 15:12
1
answer

Error compiling php 5.3.28 using php-build

I'm trying to install PHP 5.3.28 using ' php-build in Linux Mint 16 (Ubuntu) more it does not compile. I am using the following command:    php-build -i development 5.3.28 ~ / local / php / 5.3.28 After solving a number of package err...
asked by 16.01.2014 / 17:15
1
answer

Integrity constraint violation: 1048 Column 'name' can not be null

I'm trying to create a system to upload PDF's and it always returns me the following error:    Error Registering! - SQLSTATE [23000]: Integrity constraint violation: 1048 Column 'name' can not be null and with all fields returns the same...
asked by 23.04.2015 / 06:52
2
answers

RegExp does not take the input value

I need to extract the value of a tag html <input value="2530317385" name="X-Tmx-session-id" id="X-Tmx-session-id" type="hidden"> I am using a Expressão Regular to return the value of input $pattern = '~<in...
asked by 22.04.2015 / 05:37
1
answer

make payment on paypal without forcing the customer to register without account

I'm using the following API to make payment via paypal. link What appears to me when I make the payment is the following: Thatis,Idonotwanttoobligetheusertocreateaccountinpaypal.IntheconfigurationfileIhavethefollowing:<?php$paypal[bus...
asked by 30.07.2014 / 13:25
2
answers

Difference between table, entity and behavior

What is the difference between table , entity and behavior in the Model context? For example, I have a table called module, I want to make a query like this $modulo = TableRegistry::get('Modulo'); $resultado = $modulo ->find()...
asked by 05.09.2017 / 16:41
1
answer

Watermark with WideImage With png

I'm trying to add a watermark via php with the Wideimage library. include 'WideImage/WideImage.php'; $img = WideImage::load($targetFile); $watermark = WideImage::load('../images/logowater.png'); $img = $img->merge($waterma...
asked by 14.07.2017 / 15:22