EbrahemSamer

EbrahemSamer

Member Since 2 Years Ago

Experience Points
10,300
Total
Experience

4,700 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
64
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 3
10,300 XP
Nov
28
1 day ago
Activity icon

Replied to What Is The Perfect Way To Secure Html Data Returned From Database ? PHP Native

thanks

@tray2

so if I used I will not need any additional security

Activity icon

Started a new Conversation How To Link Two Databases In Different Domains ? ( PHP Native ).

I wanna connect mydomain with two similar databases and when any change happen in any table in one of them, the same table in the other database should changes.

Is there any way to get this done using PHP & MYSQL

Activity icon

Started a new Conversation What Is The Perfect Way To Secure Html Data Returned From Database ? PHP Native

I am using TinyMCE Editor to write some articles But I am using posted data without any protection.

when I store article data

$content = $_POST['content'];

I do not use filter_input(INPUT_POST, 'content')

Because it converts html to string

...

When I display data I use

$content = $_POST['content']; `` echo $content;

``

without any serialization..

I wanna secure data and in the same way want html to display as it is.

Nov
25
4 days ago
Activity icon

Started a new Conversation How To Show Related Topics In Blog ? PHP Native

I've posts that have column tags and stored like that (tag1, tag2, tag3)

I want in the single post page to show the related topics depends on the post tags.

How can I do this...

Forexample: I want 10 posts that have at least one of these single post tags.

Nov
19
1 week ago
Activity icon

Started a new Conversation Should I Put All Script In The Footer And Include Footer In All Pages ?

I've some slow web pages while loading content and I did know that many script have unused bytes.....

is this the reason why I've slow web page or there are other reasons ?

Nov
15
2 weeks ago
Activity icon

Started a new Conversation How To Sanitize Html Content From Database ? PHP Native

I am using trix editor to insert text in database and I am inserting data without filtering .. because filter data is removing the html content and I need this .....

How to make this process secure, I mean How to insert data in database with html in secure approch.

And how to get it back in secure

` // was using this but skip html

$title_ar = filter_input(INPUT_POST, 'title_ar', FILTER_SANITIZE_STRING);
$title_en = filter_input(INPUT_POST, 'title_en', FILTER_SANITIZE_STRING);

// now using this but not secure.

$desc_ar = addslashes($_POST['desc_ar']);
$desc_en = addslashes($_POST['desc_en']);

`

Nov
11
2 weeks ago
Activity icon

Replied to What Is The Best Blog Editor For Admin Dashboard ?

@automica I've no idea I mean like editor in wordpress

Activity icon

Started a new Conversation What Is The Best Blog Editor For Admin Dashboard ?

1- I've admin dashboard and I wanna write articles using text editor like the one in wordpress ....

what is the recommendation editor and the easiest to work with ?

2- when using it is there any security warning after getting the information stored in database because when you write an article, html elements will be inserted in the database so what should i do while getting them back.....

my website in PHP thanks.

Nov
10
2 weeks ago
Activity icon

Started a new Conversation How To Insert Break Line In Database And Read It Back As Newline ( PHP NATIVE )

I have description textarea and It will be long

user will add description of product and the features of it.

I wanna when user hit enter and the cursor went down one line and insert after that, the database record that so when i display this description back, I wanna get this break line..... I do not wanna description to be long line....

thanks in advance.

Nov
06
3 weeks ago
Activity icon

Replied to How To Prevent Access Folder In Cpanel ( Or Protect Using Password ) ?

@jlrdw this access from browser, but I want to prevent accessing from cpanel, I do not wanna any one to see or change the code in this folder

Activity icon

Replied to How To Prevent Access Folder In Cpanel ( Or Protect Using Password ) ?

Yes, we're more than one person working on a project but I do not wanna all of them to access specific folder @jlrdw

Activity icon

Started a new Conversation How To Prevent Access Folder In Cpanel ( Or Protect Using Password ) ?

I wanna set password to protect folder inside cpanel and all files in it...

I do not wanna any person access the folder or change any file in it ...

how to achieve that ?

Nov
04
3 weeks ago
Activity icon

Started a new Conversation How To Change The Document Root Of Alias ( From Cpanel ) ?

I have a domain ( domain.com ) and I've a addon domain ( addondomain.com ).

when I create an alias to point to the addondomain, By default it points to public_html/ ( document root ).

I wanna change this public_html to be addondomain/ ?

Oct
26
1 month ago
Activity icon

Replied to How To Make A Subdomain Like Sa.domain.com And Display Specific Data On It ? PHP

But when I redirect subdomains to the original one, the url changes.... @automica

Oct
25
1 month ago
Activity icon

Started a new Conversation How To Make A Subdomain Like Sa.domain.com And Display Specific Data On It ? PHP

I've website ex: ( domain.com ) displays products and I wanna make subdomain like ( sa.domain.com ) to display products that in "Saudi Arabia" for example.

How to make this subdomain and make it display only specific data from the original website domain.com...

I can copy all website to the subdomain but I think there is a better idea ??? PHP Native

Oct
18
1 month ago
Activity icon

Started a new Conversation When I Try To Print PDF File Using Iframe I Got Cross Origin Frame Error. PHP

Blocked a frame with origin "http://domain.com" from accessing a cross-origin frame.

I am using this code ( stackoverflow code ) but I tried more than one and the same problem occur....

<script>
$(function() {
    var ua = window.navigator.userAgent;
    var msie = ua.indexOf('MSIE ');
    var trident = ua.indexOf('Trident/');
    var edge = ua.indexOf('Edge/');
    var url = 'agency.pdf';
    var pdf ='';
    var style = 'position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden;';

    if(msie > 0 || trident > 0 || edge > 0){
        pdf = '<object data="' + url + '" name="print_frame" id="print_frame" style="' + style + '" type="application/pdf">';
    }
    else{
        pdf ='<iframe src="' + url + '" name="print_frame" id="print_frame" style="' + style + '"></iframe>';
    }

    $(document.body).append(pdf);

    setTimeout(function(){
        window.frames["print_frame"].focus();
        window.frames["print_frame"].print();
    },2000);
});

</script>
Oct
13
1 month ago
Activity icon

Replied to How To Print PDF Or Word Files From Printer Using Native PHP ?

ok thanks. I will check the link.

Activity icon

Replied to How To Print PDF Or Word Files From Printer Using Native PHP ?

no print it as a paper using the printer @sinnbeck

Activity icon

Started a new Conversation How To Print PDF Or Word Files From Printer Using Native PHP ?

Is it Available to print files (pdf and word) that stored on the server using PHP ?

I want when I click on print button ..... code generates the file from server and print it as a paper on printer.

Sep
23
2 months ago
Activity icon

Replied to How To Send An Email In A Specific Day Using PHP Native ?

thanks but I want it using php native not laravel

Sep
22
2 months ago
Activity icon

Started a new Conversation How To Send An Email In A Specific Day Using PHP Native ?

I want to send email notification to user some day but I want do that even if the user is not using the website.

How to make my website send email automatic in some day ??

Sep
16
2 months ago
Activity icon

Started a new Conversation In What Language Should I Learn Data Structures And Algorithms ?

I've Learnt the basics of C++ ( operations, conditions, arrays, loops, pointers, recursion ).

I know OOP ( inheritance, objects, constructors, Encapsoltion ) I've built more than project using it ( PHP ) not ( C++ ).

I want to be good at algorithms and data structures. Should I learn it using C++ or any language.

I've enrolled in this course :

https://www.udemy.com/course/js-algorithms-and-data-structures-masterclass/

Should I continue learning it or learn another using C++.

thanks and if you have any recommendation course to learn DS and algoritms please comment.

Sep
08
2 months ago
Activity icon

Started a new Conversation How To Prevent 504 Gate Way Time-out Error ( PHP Native ) ?

I am executing File that fills table in the database, After finishing exection I am headering to another file to do the same and fills another table and so on..

I want to do this may be on 30 file to affect on 30 tables in database..

After 3 or 4 files 504 Gate way Time-out Error appears.

Is there a solution to make php run any time I want ( not just 60s ) ? How can I solve this...

Sep
03
2 months ago
Activity icon

Started a new Conversation How To Scrap Websites That Using Ajax To Get More Information IN PHP ?

I want scrap website and I did that but there is a see more button to load more information....

How to scrape these extra information.

[ I can not get the ajax request link.. ]

Activity icon

Started a new Conversation How To Send Image Or PDF File In Whatsapp Using PHP ( Not Laravel ) ?

I tried to send a text using whatapp API and it works But what if I wanna send a PDF file Or image file ?

Aug
08
3 months ago
Activity icon

Replied to What Is The Best PHP Web Scrapper ?

@tisuchi Yeah I know this list But I have no experience using any of them

I do not know what is the best and what would help my in my situation

Activity icon

Started a new Conversation What Is The Best PHP Web Scrapper ?

I am building website that compare between products prices...

These products I want to collect them from website like amazon.com and other similar websites

What Options I have and what is the best to use....

Aug
06
3 months ago
Activity icon

Replied to Why Span On Iphone Seperate Arabic Characters ?

`$colored_names have an array of words that must be colored ( search words )

I replaced what user typed with the result came from database.

"العلي" can not be replaced because that is the user typed in the search form...

Anyway thanks, I'll try to figure it out..... @s4muel `

Aug
05
3 months ago
Activity icon

Replied to Why Span On Iphone Seperate Arabic Characters ?

I updated the question

I hope to see it and reply on me, thanks. @s4muel

Aug
04
3 months ago
Activity icon

Started a new Conversation Why Span On Iphone Seperate Arabic Characters ?

I've search form in my web application and when the results came from the database , some arabic words like

التعليم

this word displayed in IPhone like that

التعلي م

how to solve this problem... I am using php and mysql

this is it's html

$the_fullname = $result->fullname; for($i = 0; $i < count($colored_names); $i++) { $the_fullname = str_replace($colored_names[$i], "<span class='text-info'>" . $colored_names[$i] . "</span>", $the_fullname); }

the colored span includes ( العلي ) and the rest is ( م )

and It display like that ( العلي م )

and Charset utf8 and tables DB Collations UTF8_general_ci

Jul
23
4 months ago
Activity icon

Started a new Conversation What Heppen When Session Dies ( PHP ) ?

I am Using this logic to keep session active

if (session_status() == PHP_SESSION_NONE) { session_start(); }

But Sometimes when I leave my computer for one hour and get back and refresh the page, System logs me out

Or the loading page works for ever...

How Can I prevent this.

Jul
22
4 months ago
Activity icon

Started a new Conversation Declare Multiple Variables In PHP ?

I've downloaded php package and I found this syntax wihch cause an error

-------

[$variable1, $variable2] = $this->someMethod();

is this valid in PHP, What does it mean ?

Jun
23
5 months ago
Activity icon

Replied to How To Make Mysql Treat ا ( Alef Character In Arabic ) Like أ ( Hamza Character In Arabic ) ? )

@ahmeddabak I've 0.5 million row and I do not know exactly what words have ( hamza ) to store them....

should I select them first and store them in database like you said ?