EbrahemSamer

Member Since 3 Years Ago

Experience Points
11,030
Total
Experience

3,970 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.

  • Community Pillar

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

Level 3
11,030 XP
Mar
31
2 weeks ago
Activity icon

Replied to How To Know Whick Page User Came From When Viewing Product ( PHP ) ?

@bugsysha I think its not accessable in https it can be manipulated >>>> I think

Activity icon

Started a new Conversation How To Know Whick Page User Came From When Viewing Product ( PHP ) ?

I've an ecommerce website and I wanna track whick page the users use to view products.......

when user view or purchase a product i wanna know which page he came from ex: related products, hot products or home page....

Is there another soultion other than storing cookies in user device ?...

thanks.

Mar
16
1 month ago
Activity icon

Started a new Conversation How To Track Every Click On A Product And Any Link In A Pricing Comparison Website ?

I've tried google analytics and It can track users activity.

I heard about Google enhanced ecommerce but its realy confusing and I heard also about Google tag manger.

I do not know what to use and how and what the difference between them.....

If there any tutorials please put it here......

thanks..

Mar
01
1 month ago
Activity icon

Replied to How To Prevent Reverse SEO Attack ( Many Requests To Same Url ) ( PHP Native ) ?

@martinbean Sorry I did not mean spam.... I mean it will be a problem with crawlers because script keep requesting the same url so this may make a problem in indexing the website may be...

anyway thanks.

Activity icon

Started a new Conversation How To Prevent Reverse SEO Attack ( Many Requests To Same Url ) ( PHP Native ) ?

Hello...

I've website which has search input for users to search products (https://www.domain.com?search=anyword)

and this page index has meta tag robots indexed and follow

the problem is:

SEO person told me that anyone can make a script and scraping this link and make very much requests using

diferent search words and this will make google engine think that may be spam or something and will remove it from....

Question:

How to prevent this kind of SEO Attach

Feb
11
2 months ago
Activity icon

Started a new Conversation How To Make A New Line When Downloading Excel From Datatable?

I am Using data table to print data from database.

I've two buttons [ Excel, PDF ] to download Data

In Excel I have a long string and I wanna divide it and make it in a new line in Excel.

I tried to add "\n" br tag but They're not working and I gor the string in one tall row..

Here is the definition of my datatable

`

$('#example23').DataTable({
    pageLength: rows_count,
    dom: 'Bfrtip',
    "order": [[ 0, "desc" ]],
    buttons: [
        {
            footer: false,
            exportOptions: {
                columns: dewans_export_array,
                stripNewlines: true,
            }
        }
    ],
    "language": {
        "search": "البحث:"
    }
});

`

Jan
31
2 months ago
Activity icon

Started a new Conversation How To Fix 400 Bad Request While Create Local Domain PHP Native?

I have multi local website but working on localhost like chat.com, blog.com and so on

I wanted to add one more but It says Bad request Your browser sent a request that this server could not understand.

vhosts

` <VirtualHost *:80> ServerName online_cv.com DocumentRoot "C:\xampp\htdocs\ccccc"

<Directory "C:\xampp\htdocs\ccccc">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
`

and i added 127.0.0.1 cccc.com in apache hosts

Jan
23
2 months ago
Activity icon

Started a new Conversation How To Remove Filename.php Part From Url And Get Parameter ? ( PHP Native )

Hello,

I have product.php file which get parameter slug ( the slug of the product )

like: www.domain.com/product.php?slug=the-product-slug

I want the same functionality without updating my code

to be like: www.domain.com/the-product-slug

How to remove filename with extension and parameter slug

Activity icon

Started a new Conversation How To Generate XML Sitemap? ( PHP Native )

Hello

I am developing website that compare electronics products prices in amazon and noon .....

Client ask me to do something I do not understand ......

He told me to "" Add feature to add all products and main pages and category pages into Generated XML Sitemap and give it order to auto regenerate by corn every day at 3 Am.""

Any Ideas

Jan
18
2 months ago
Activity icon

Started a new Conversation How To Hide Sensitive Data From User In Front-end ?

Hello ,

I am developing website and I am wondering about some thing.......

When user update any thing in the website like comment or his profile... sometimes I add the id for the updated thing hidden in the form or in the url and when the user click update I take this id and make the query....

But this id .... User can change it using inspect element and click update and this may be not good because another row in the database will be updated in this case.....

So what should I do .... encrypt this id or what ?

Activity icon

Awarded Best Reply on Why Is The Scroll In Bootstrap Table-responsive Does Not Work On Iphone And Safari ?

@fylzero its out side the table and I am using datetable plugin and it works fine in browser and phones but the problem in only iphone

Activity icon

Replied to Why Is The Scroll In Bootstrap Table-responsive Does Not Work On Iphone And Safari ?

@fylzero its out side the table and I am using datetable plugin and it works fine in browser and phones but the problem in only iphone

Activity icon

Started a new Conversation Why Is The Scroll In Bootstrap Table-responsive Does Not Work On Iphone And Safari ?

Hello,

I am using bootstrap and i have very long table and in any browser, it shows part of this table and i can scroll by side to show the rest of the content of this tabel.

on iphone i can not make this scroll on the screen , Iphone just show the front content and not the rest of the tabel, how to fix this problem....

Jan
13
3 months ago
Activity icon

Replied to Bitdefender Blocked My Website.

I checked and I found that i can run my website using http and https ( both ), so I forced browser to work with https only...

I will see if this solve the problem thanks alot Tray2

Activity icon

Replied to Bitdefender Blocked My Website.

server (inmotion)..... this happen on client browser......

@tray2

Activity icon

Started a new Conversation Bitdefender Blocked My Website.

I got this message when I tryied to login to my website.

bitdefender Endpoint Security Tools Blocked this page this page you are trying to access contains a malicious attack attempt.

How can i access the website and stop seeing this?

Dec
10
4 months ago
Activity icon

Started a new Conversation How To Use SQL To Select Categories That Have Products In It ?

I've categories table

id - category_name

and products table

id - product_name - category_id

I want to get all categories that have products in it using sql query

Dec
05
4 months ago
Activity icon

Started a new Conversation How To Merge Two Select Queries Depending On Each Other ? PHP Native

Hello,

I've users table

id, email, super (0 => if user is an admin).

user may be an admin and supervise other users ( clients ).

user may be a client and supervise other users ( employees ).

user may be an employee and no one can be under an employee.

I want admin to has the ability to view all his clients and all employees under each client......

Can I make something like that in SQL Queries

PSEUDO CODE

SELECT * FROM users WHERE super = 2 AND ( SELECT * FROM users WHERE super = each id FROM THE FIRST QUERY )

Nov
28
4 months 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 months 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
4 months 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
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
6 months 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.