Sponsored Content
Full Discussion: Open php script in same tab
Top Forums Web Development Open php script in same tab Post 302926495 by Meow613 on Monday 24th of November 2014 07:42:57 PM
Old 11-24-2014
junior-helper -

Thanks.

Regratably, it does not work.
 

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
SESSION_START(3)							 1							  SESSION_START(3)

session_start - Start new or resume existing session

SYNOPSIS
bool session_start (void ) DESCRIPTION
session_start(3) creates a session or resumes the current one based on a session identifier passed via a GET or POST request, or passed via a cookie. When session_start(3) is called or when a session auto starts, PHP will call the open and read session save handlers. These will either be a built-in save handler provided by default or by PHP extensions (such as SQLite or Memcached); or can be custom handler as defined by ses- sion_set_save_handler(3). The read callback will retrieve any existing session data (stored in a special serialized format) and will be unserialized and used to automatically populate the $_SESSION superglobal when the read callback returns the saved session data back to PHP session handling. To use a named session, call session_name(3) before calling session_start(3). When session.use_trans_sid is enabled, the session_start(3) function will register an internal output handler for URL rewriting. If a user uses ob_gzhandler or similar with ob_start(3), the function order is important for proper output. For example, ob_gzhandler must be registered before starting the session. RETURN VALUES
This function returns TRUE if a session was successfully started, otherwise FALSE. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.0 | | | | | | | If a session fails to start, then FALSE is | | | returned. Previously TRUE was returned. | | | | | 4.3.3 | | | | | | | As of PHP 4.3.3, calling session_start(3) after | | | the session was previously started will result in | | | an error of level E_NOTICE. Also, the second ses- | | | sion start will simply be ignored. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 A session example: page1.php <?php // page1.php session_start(); echo 'Welcome to page #1'; $_SESSION['favcolor'] = 'green'; $_SESSION['animal'] = 'cat'; $_SESSION['time'] = time(); // Works if session cookie was accepted echo '<br /><a href="page2.php">page 2</a>'; // Or maybe pass along the session id, if needed echo '<br /><a href="page2.php?' . SID . '">page 2</a>'; ?> After viewing page1.php, the second page page2.php will magically contain the session data. Read the session reference for information on propagating session ids as it, for example, explains what the constant SID is all about. Example #2 A session example: page2.php <?php // page2.php session_start(); echo 'Welcome to page #2<br />'; echo $_SESSION['favcolor']; // green echo $_SESSION['animal']; // cat echo date('Y m d H:i:s', $_SESSION['time']); // You may want to use SID here, like we did in page1.php echo '<br /><a href="page1.php">page 1</a>'; ?> NOTES
Note To use cookie-based sessions, session_start(3) must be called before outputing anything to the browser. Note Use of zlib.output_compression is recommended instead of ob_gzhandler(3) Note This function sends out several HTTP headers depending on the configuration. See session_cache_limiter(3) to customize these head- ers. SEE ALSO
$_SESSION, The session.auto_start configuration directive , session_id(3). PHP Documentation Group SESSION_START(3)
All times are GMT -4. The time now is 10:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy