Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^8: [OT] Re: (OT) HTML video tag is not working in cgi

by Anonymous Monk
on Jan 29, 2016 at 00:28 UTC ( [id://1153948]=note: print w/replies, xml ) Need Help??


in reply to Re^7: [OT] Re: (OT) HTML video tag is not working in cgi
in thread (OT) HTML video tag is not working in cgi

Maybe shouting will help :D

file:// IS NOT THE INTERNET, file:// IS NOT HTTP, file:// IS NOT CGI, file::// IS NOT THE INTERNET

http://.... is the internet

http://....cgi is the internet

http://....mp4 is the internet

Your webserver maps ...cgi to a directory on your harddisk ( like /home/foo/bar )

/home/.../cgi-bin maps to http://.../cgi-bin

/home/.../public_html/foo.html maps to http://.../foo.html

https://httpd.apache.org/docs/2.2/howto/public_html.html#cgi / Apache Tutorial: Dynamic Content with CGI

FYI

Every perl/CGI problem can be solved if you work through these checklists, when you find a problem on the list, use a solution from the list, when you find a problem not on the list (rare), post the error message and problem description here

CGI Help Guide, Troubleshooting Perl CGI scripts, CGI to mod_perl Porting. mod_perl Coding guidelines.. cgi101 brian's Guide to Solving Any Perl Problem, CGI Help Guide , Troubleshooting Perl CGI scripts ... More generic advice :) On debugging, verify everything, talk to teddybear ... checklists and more

Because https://httpd.apache.org/docs/2.2/howto/public_html.html#cgi / Apache Tutorial: Dynamic Content with CGI and more

Copy/paste from Re: To call a .pl file when a button is pressed on a GUI created using Perl CGI (webserver) for the links below

Its simple, you need a webserver

Why? Because webpages and CGI needs a webserver, thats how it works

Its weird that so many folks manage to create a GUI using Perl CGI without understanding this

learn about the internet,Web Programming: For Beginners, to get an overall picture of how the internet works, how tcp/ip, sockets, html, ajax, all fit together....

See also Mojolicious::Lite +and jQuery +AJAX + Mojo::Template

And a copy-pasta for you:)

Also, there are checklists for that , Basic debugging checklist , brian's Guide to Solving Any Perl Problem, CGI Help Guide , Troubleshooting Perl CGI scripts

Yes, work through these checklists, when you find a problem on the list, use a solution from the list, when you find a problem not on the list (rare), post the error message and problem description here

brian's Guide to Solving Any Perl Problem, CGI Help Guide , Troubleshooting Perl CGI scripts

So examine your server configuration and compare to https://httpd.apache.org/docs/2.2/howto/public_html.html#cgi / Apache Tutorial: Dynamic Content with CGI

learn about the internet,Web Programming: For Beginners, to get an overall picture of how the internet works, how tcp/ip, sockets, html, ajax, all fit together.

Explicitly using Options to permit CGI execution, Apache Tutorial: Dynamic Content with CGI - Apache HTTP Server Version 2.2 : Explicitly using Options to permit CGI execution

... let the deep links from the following explain Re: Cron revisited/Re^2: Perl Module Not Working In Crontab explain, and here they are:

  • Comment on Re^8: [OT] Re: (OT) HTML video tag is not working in cgi

Replies are listed 'Best First'.
Re^9: [OT] Re: (OT) HTML video tag is not working in cgi
by Your Mother (Archbishop) on Jan 29, 2016 at 03:07 UTC

    ⇧ ++ 👍

      So how can i map the local drive like /home/../test.mp4 of course it is not the http:://home../test.mp4

        As hippo said earlier here read url mapping, specifically the sections

      • Files Outside the DocumentRoot
      • User Directories
      • poj

        This is done by configuring your web server. Read the web server documentation and follow the steps there.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1153948]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-23 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found