10-05-2016
Without seeing the code, we can only speculate why it doesn't work.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
iam geting a error with this index script. heres the error
Parse error: parse error in c:\phpdev\www\dev\compulearn\in work\index.php on line 39
Whats wrong??
------------------------
<?php
//display header and left bars
include ('header.php');
include ('left.php');
//connect... (13 Replies)
Discussion started by: perleo
13 Replies
2. UNIX for Advanced & Expert Users
I have a webpage, http://my.dns.com/~zp523/index.html,
I want all people to have read and execute privileges. I want to extend it with execute privilege. Which command should be used in chmod?
is it only give read(r) & execute(x) parameter in 'chmod ??? index.html'
thk a lot!! (1 Reply)
Discussion started by: zp523444
1 Replies
3. Shell Programming and Scripting
I have a webpage that is in HTML and PHP. In PHP I have tried using exec, system, shell_exec and passthru functions to call an Expect Script file (temp.exp). This Expect file spawns a telnet session that uses "expect/send" commands to retrieve information from an environmental unit (not a normal... (0 Replies)
Discussion started by: CCUSmith
0 Replies
4. Web Development
Hi guys
Im in the process of designing a website for my company which does the following
1) Daily execution a perl script. The perl script's output is diverted to a .html file.
2) The .html file generated from 1) sets up a centralised webpage showing options as radio buttons (the radio... (1 Reply)
Discussion started by: JamesGoh
1 Replies
5. Web Development
Hello guys,
Does anyone can help me?
I've just made my simple index.php without any code, but after insert session code to check if any user is authenticated, my index.php doesn't work anymore.
Any fresh eyes could help me to see what and where the code is wrong?
<?
if... (6 Replies)
Discussion started by: metalfreakbr
6 Replies
6. Web Development
Hi all,
What I was looking for before was a multi-user password manager, web-based! The offer of free or cheap tools of this kind is very pover. Or they are too complex (or too expensive)
I'm not a web programmer but I now decided to set up a (php) website with login and based on this login... (1 Reply)
Discussion started by: thibautp
1 Replies
7. UNIX for Advanced & Expert Users
hi,
while separated they produce the usual mail alert and i can see the output...
if i write into the php script:
<?php
system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script1.php');
system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script2.php');
system('php -f... (0 Replies)
Discussion started by: 7stars
0 Replies
8. UNIX for Dummies Questions & Answers
Hello,
i have page domain.com/form.php
the form fields on form.php are named:
name=ipaddress
name=port
and submit button is named: submit
i want to ask how the linux command will look like to submit the form filled with:
ipaddress: 127.0.0.1
port: 80
I tried various curl and... (5 Replies)
Discussion started by: postcd
5 Replies
9. Shell Programming and Scripting
Hello ,
I am trying to execute a small shell script from a PHP Webpage.
Below is the shell script : 1.sh
$ cat /home/oracle/rahul/1.sh
#!/bin/ksh
echo "`date` : Report generation in progress" > /home/oracle/rahul/report.txt
echo "Run successfully script";
Below is the PHP... (1 Reply)
Discussion started by: rahul2662
1 Replies
10. Web Development
Hello,
Scenario: Send sms from putty and display it on webpage.
I have rented an short message service from a company and set callback url to my vps. PHP is installed in my vps .
my mobile phone is: ********85**
receipent mobile phone is: 49*********
callback url is redirected to... (0 Replies)
Discussion started by: baris35
0 Replies
LEARN ABOUT OSX
universal::require
UNIVERSAL::require(3) User Contributed Perl Documentation UNIVERSAL::require(3)
NAME
UNIVERSAL::require - require() modules from a variable
SYNOPSIS
# This only needs to be said once in your program.
require UNIVERSAL::require;
# Same as "require Some::Module"
my $module = 'Some::Module';
$module->require or die $@;
# Same as "use Some::Module"
BEGIN { $module->use or die $@ }
DESCRIPTION
If you've ever had to do this...
eval "require $module";
to get around the bareword caveats on require(), this module is for you. It creates a universal require() class method that will work with
every Perl module and its secure. So instead of doing some arcane eval() work, you can do this:
$module->require;
It doesn't save you much typing, but it'll make alot more sense to someone who's not a ninth level Perl acolyte.
Methods
require
my $return_val = $module->require or die $@;
my $return_val = $module->require($version) or die $@;
This works exactly like Perl's require, except without the bareword restriction, and it doesn't die. Since require() is placed in the
UNIVERSAL namespace, it will work on any module. You just have to use UNIVERSAL::require somewhere in your code.
Should the module require fail, or not be a high enough $version, it will simply return false and not die. The error will be in $@ as well
as $UNIVERSAL::require::ERROR.
$module->require or die $@;
use
my $require_return = $module->use or die $@;
my $require_return = $module->use(@imports) or die $@;
Like "UNIVERSAL::require", this allows you to "use" a $module without having to eval to work around the bareword requirement. It returns
the same as require.
Should either the require or the import fail it will return false. The error will be in $@.
If possible, call this inside a BEGIN block to emulate a normal "use" as closely as possible.
BEGIN { $module->use }
SECURITY NOTES
UNIVERSAL::require makes use of "eval STRING". In previous versions of UNIVERSAL::require it was discovered that one could craft a class
name which would result in code being executed. This hole has been closed. The only variables now exposed to "eval STRING" are the
caller's package, filename and line which are not tainted.
UNIVERSAL::require is taint clean.
COPYRIGHT
Copyright 2001, 2005 by Michael G Schwern <schwern@pobox.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
AUTHOR
Michael G Schwern <schwern@pobox.com>
SEE ALSO
Module::Load, "require" in perlfunc, <http://dev.perl.org/rfc/253.pod>
perl v5.16.2 2009-03-30 UNIVERSAL::require(3)