Home >


  • Face Book Events Share CountFebruary 17

    does anyone know how to get the FB events share count in php. i get the share counts for all external links. but not for anyof the FB posts and events. big help thanks

  • Swiftmailer not flush emails on Symfony ControllerFebruary 17

    i had created a simple project for sending emails from swiftmailer, however, messages are delivered from console but not from Controller. My code is $message = \Swift_Message::newInstance('hello','test message', 'text/plain','Cp1252') ->setFrom('serv

  • Overriding the native PHP function file_get_contents to add profiling/loggingFebruary 17

    I'd like to wrap the native function file_get_contents to add completion time and URL logging for blocking calls. I currently override a WordPress class for doing this, but would like to take it to the next level and get closer to the metal. In any a

  • How can I use groups with preg_match?February 17

    I have some data that will be one of the following Word Number Word Number Word Number Word Word Number Word Word Number Word Number Word Word Number Word Word Number I would like to extract the Word(s) up until the numbers, and the numbers. Here is

  • PHP Associative array inserting as indexed arrayFebruary 17

    I need an associative array with this structure (keys are strings, values are indexed arrays), and I'm appending elements dynamically. Array( ["itemCategory"]=> Array("itemName", "itemName"...) ["itemCategory"]=&

  • PHP Slim 3 match file extensionFebruary 17

    I need to match a file extension in a route ie: .css I have tried the following, but with no success: $app->get('/api/{name}\.css', ... I can't seem to get the dot to match.

  • Uploading files through PHP only seems to work on my networkFebruary 17

    I have a script that is working on my PC and my phone but when I tried it from a laptop on another network, the files wouldn't upload. Anyone have any idea why this might be?

  • Error in json - php with spaces [on hold]February 17

    When I do json_decode with a content like this: [{"IdCode":"1","Name":"Jon Saavedra"},{"IdCode":"2","Name":"Sara Parker"}] I have a problem because the content have spaces. Is

  • Trying to insert image path into a database withPDOFebruary 17

    I'm new to PDO. I'm attempting to create a profile image uploader that allows the currently sign in user to add a picture to their profile. I'm stuck with a syntax error "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in yo

  • Send hosted images in HTML email with PHP

    Send hosted images in HTML email with PHPFebruary 17

    I have created an application using PHP mailer lclass that allows a user to upload a zip files with an HTML document and email it to a list of recipients as HTML email. I'm trying to take the next step and allow also images to be uploaded and hosted.

  • Get values from in_array statementFebruary 17

    I have an array filled with the result of a query which is as follows: $ticket[] = array( 'ticket_id' => $row->ticket_id, 'user_id' => $row->user_id, 'raffle_ticket_num' => $row->raffle_ticket_num ); Now, in a while loop, I check in all

  • Load files from Plugins directoryFebruary 17

    I need to load index.php file from each of the plugins' folders. There is the main folder "plugins" and inside there are, sub folders (plugins) e.g blog, members etc. Inside each plugin folder there is an index.php file which i need to load. How

  • Laravel Mailer - PHPUnit Testing - Mocking not workingFebruary 17

    I am trying to unit test some events that fire emails. In particular, I want to test the emails are being sent. The error is that getTransport() doesn't exist on the mocked object. I added shouldReceive('getTransport') but then I'd have to mock what

  • How can you get the contents of a SVG from a changing URL?February 17

    I'm still learning a lot of terminology with php, so I find it hard to find some answer in similar questions. I'm looking to print a custom url into a PHP statement so I can print the contents of an .svg file. I'm using drupal 7. Below are some examp

  • Enabling TLS in codeigniter email.phpFebruary 17

    I am trying to use AWS' SES to send out emails, I have verified the domain and created an SMTP account, but when I try sending from that account I always get the error: Error: email_smtp_error val: 0 My colleague tested the same SMTP credentials from

  • Send email with PHP from html form on submitFebruary 17

    When ever I test this code it always fails can anyone help? <?php if(isset($_POST['submit'])){ $to = "<<<___myEmail___>>>"; $from = $_POST['email']; $name = $_POST['name']; $subject = "Contact Form: LewisDerbyshire.co.u

  • Redirecting non logged-in users from .html pages?February 17

    I am doing some patchwork on an old and outdated site. It's based on PHP but there is no framework, and a bunch of pages are static (.html). I created a simple login system for the site, but now the client wants the system to work for the static page

  • Laravel 5: InvalidArgumentException in DateComparator.php line 38February 17

    I keep getting this error randomly. If I'll refresh the page it will work fine. Can someone show me what could be the problem? Whoops, looks like something went wrong. 1/1 InvalidArgumentException in DateComparator.php line 38: "now - 3.0E+12 seconds

  • XHTML input for PHPmailerFebruary 17

    I have used PHPmailer to send email to users upon registering to the site. Now, everything works as should, however, I find myself doing painstaking work adding the HTML elements in. Here's an example piece of HTML code: <p>This is a paragraph</p

  • Can't figure out to let Xdebug work in combination with PhpStorm and XAMPPFebruary 17

    I followed this steps, recommended by Xdebug based on phpinfo(): Download php_xdebug-2.4.0rc4-5.6-vc11.dll Move the downloaded file to C:\xampp\php\ext Update C:\xampp\php\php.ini and change the line zend_extension = C:\xampp\php\ext\php_xdebug-2.4.0

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 13 q. 0.464 s.