Sponsored Content
Full Discussion: Open php script in same tab
Top Forums Web Development Open php script in same tab Post 302929181 by Corona688 on Thursday 18th of December 2014 12:32:34 PM
Old 12-18-2014
"open" opens a new window, to change the current one, window.location.assign("url")
 

10 More Discussions You Might Find Interesting

1. Programming

open .php file

hi all i saved myfile.php to the Desktop. how can i run mysite.php file by programatically. popen(/usr/bin/mozilla /root/Desktop/myfile.php","r") it is not working. can you please show me the way thank you (1 Reply)
Discussion started by: munna_dude
1 Replies

2. Shell Programming and Scripting

Tab key in a script

Hi, How do I execute/emulate the <Tab> keypress from within a script? Any pointers will be helpful. Thanks (4 Replies)
Discussion started by: innocentspirit
4 Replies

3. Shell Programming and Scripting

Using tab in script to create file of commands

from CLI pressing Tab and character like a shows result of the commands starting with a, can i use this in a script too and post the results to a file? thanks (1 Reply)
Discussion started by: tvrman
1 Replies

4. Web Development

I can't open my index.php page after insert php code

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

5. OS X (Apple)

How to make a new terminal tab open in the same directory the current one?

I want to press "apple + T" to open a new terminal tab. This terminal tab must be in the same directory as the current one. Anyone knows how to do that? Thanks a lot! (1 Reply)
Discussion started by: andrewust
1 Replies

6. UNIX for Dummies Questions & Answers

Cron tab script with parameters

hi, In a cron tab, can the command to be executed contain parametrs for the script too? E.g: ******* ./script.sh file fil2 > /dev/null Is the above valid one? Thanks You have 37 posts - you should know how and when to use code tags. You got a PM with instructions. (1 Reply)
Discussion started by: pandeesh
1 Replies

7. Programming

error in running script in cron tab

Hi I am running the following script in cron tab: #!/usr/local/bin/php <?php $handle=fopen('xmlfile.xml',"w"); $xmlfile= file_get_contents('http://diur-plus.2me.co.il/xml.aspx'); fwrite($handle,$xmlfile); fclose($handle); /* * To change this template, choose Tools |... (1 Reply)
Discussion started by: programAngel
1 Replies

8. Shell Programming and Scripting

Dividing tab blocks in bash script

Hi everyone, I have a data.xml file which only contains thousands of data (tag) blocks. A part of the file looks exactly like this; <data> Line Line Line </data> <data> Line Line Line </data> the rest of the file is simply a repetition of this part. Here each data block contains a... (8 Replies)
Discussion started by: hayreter
8 Replies

9. Shell Programming and Scripting

Cron tab time generation script

Hi folks, Everyone knows about crontab, what i am looking for a script where i will define hour,minute and day and it will generate crontab complete time entry, i have seen many website generating crontab entry and my question is that is there any shell script that can do same work. 20 09... (4 Replies)
Discussion started by: learnbash
4 Replies

10. Shell Programming and Scripting

Open gnome-terminal with multi tabs and automatically run a script in each tab

Hi All , i am trying to create an alias to open a new gnome-terminal and run some commands in each tab & to have a specific name for each tab i am using csh , tried this command gnome-terminal --tab -t "s1" --tab -t "s2" --tab -t "s3" --tab -t "s4" it opened 4 tabs but the title didn't... (0 Replies)
Discussion started by: Assem
0 Replies
Net::UPnP::Device(3pm)					User Contributed Perl Documentation				    Net::UPnP::Device(3pm)

NAME
Net::UPnP::Device - Perl extension for UPnP. SYNOPSIS
use Net::UPnP::ControlPoint; my $obj = Net::UPnP::ControlPoint->new(); @dev_list = $obj->search(st =>'upnp:rootdevice', mx => 3); $devNum= 0; foreach $dev (@dev_list) { $device_type = $dev->getdevicetype(); if ($device_type ne 'urn:schemas-upnp-org:device:MediaServer:1') { next; } print "[$devNum] : " . $dev->getfriendlyname() . " "; unless ($dev->getservicebyname('urn:schemas-upnp-org:service:ContentDirectory:1')) { next; } $condir_service = $dev->getservicebyname('urn:schemas-upnp-org:service:ContentDirectory:1'); unless (defined(condir_service)) { next; } %action_in_arg = ( 'ObjectID' => 0, 'BrowseFlag' => 'BrowseDirectChildren', 'Filter' => '*', 'StartingIndex' => 0, 'RequestedCount' => 0, 'SortCriteria' => '', ); $action_res = $condir_service->postcontrol('Browse', \%action_in_arg); unless ($action_res->getstatuscode() == 200) { next; } $actrion_out_arg = $action_res->getargumentlist(); unless ($actrion_out_arg->{'Result'}) { next; } $result = $actrion_out_arg->{'Result'}; while ($result =~ m/<dc:title>(.*?)</dc:title>/sgi) { print " $1 "; } $devNum++; } DESCRIPTION
The package is used a object of UPnP device. METHODS
getdescription - get the description. $description = $dev->getdescription( name => $name # undef ); Get the device description of the SSDP location header. The function returns the all description when the name parameter is not specified, otherwise return a value the specified name. getdevicetype - get the device type. $description = $dev->getdevicetype(); Get the device type from the device description. getfriendlyname - get the device type. $friendlyname = $dev->getfriendlyname(); Get the friendly name from the device description. getmanufacturer - get the manufacturer. $manufacturer = $dev->getmanufacturer(); Get the manufacturer name from the device description. getmanufacturerrul - get the manufacturer url. $manufacturer_url = $dev->getmanufacturerrul(); Get the manufacturer url from the device description. getmodeldescription - get the model description. $model_description = $dev->getmodeldescription(); Get the model description from the device description. getmodelname - get the model name. $model_name = $dev->getmodelname(); Get the model name from the device description. getmodelnumber - get the model number. $model_number = $dev->getmodelnumber(); Get the model number from the device description. getmodelurl - get the model url. $model_url = $dev->getmodelurl(); Get the model url from the device description. getserialnumber - get the serialnumber. $serialnumber = $dev->getserialnumber(); Get the model description from the device description. getudn - get the device UDN. $udn = $dev->getudn(); Get the UDN from the device description. getupc - get the device UPC. $upc = $dev->getupc(); Get the UPC from the device description. getservicelist - get the device type. @service_list = $dev->getservicelist(); Get the service list in the device. Please see Net::UPnP::Service too. SEE ALSO
Net::UPnP::Service AUTHOR
Satoshi Konno skonno@cybergarage.org CyberGarage http://www.cybergarage.org COPYRIGHT AND LICENSE
Copyright (C) 2005 by Satoshi Konno It may be used, redistributed, and/or modified under the terms of BSD License. perl v5.10.1 2009-07-27 Net::UPnP::Device(3pm)
All times are GMT -4. The time now is 10:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy