Questions tagged as 'php'

1
answer

Search for image tags within PHP string

I have a string of type: Veja o logotipo do PHP: <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Webysther_20160423_-_Elephpant.svg/2000px-Webysther_20160423_-_Elephpant.svg.png"> I need to get the path of the ima...
asked by 17.11.2016 / 18:20
1
answer

PHP return function

Although the variable url is returning content, according to VAR_DUMP, the code below exits the message "URL not existent". Why that? Where am I sinning in the code? public function getUrlcliente($cliente_id) { $parametro = "cl...
asked by 28.11.2016 / 17:41
2
answers

Add an "active" class to the link according to the page accessed?

I'm setting up a theme for WordPress , and I need to add an active class in anchors , it works as follows: I retrieve the URI from the current page and compare it to the text / value contained within the anchor that is automatically fe...
asked by 28.01.2016 / 18:48
1
answer

Infinite Loop, object orientation

Stack Overflow . Stack Overflow I have a function to list all tickets for the user who is logged in: public function list_ticket() { try { $session = $_SESSION[SESSION_PREFIX . 'email_username']; $sql =...
asked by 04.02.2016 / 19:39
2
answers

I can not return the authenticated user in Laravel

Good morning In my project, I do the default authentication provided by Laravel 5, hence it directs to my home normally when I log in. I know I logged in normally because when I put wrong data it returns error. At this time I try to get the user...
asked by 02.02.2016 / 14:46
1
answer

SQLSTATE [42S02]: Base table or view not found: 1146 Table

I have this little problem with Laravel. The old and good, problem with the S that Laravel poe in the end. I've researched a lot of forums but the given solution does not work.    SQLSTATE [42S02]: Base table or view not found: 1146 Table   '...
asked by 26.01.2016 / 20:58
1
answer

Get Showing Products from a User

Good! It's the following, I'm developing a website that consists of a user seeing the state of their equipment while it's being repaired. But I'm having trouble viewing a user's product for him. For example: The administrator inserts a pro...
asked by 25.01.2016 / 12:17
1
answer

Youtube video runtime

I've been searching and I did not find anything concrete, I know that there is the youtube API but I did not find any right source. How can I check on php whether or not the user watched a youtube video embedded in my site? Or even cou...
asked by 25.01.2016 / 10:27
2
answers

PHPMailer - Is it possible to resend an e-mail?

Is there any implementation that can be done in PHPMailer so that emails that could not be sent (due to the momentary drop in the site server that uses PHPMailer , for example) can be sent later? It can be some kind of monitoring...
asked by 22.07.2015 / 14:39
1
answer

Count Values with PHP and SQL

Well, good afternoon. I have the following question. I have a questionnaire with 10 questions, the answers to these questions can be from 0 to 5, I would like to make a while leaving counting the answers. I thought of the following way and...
asked by 22.07.2015 / 22:42