Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Call Another Page


What function can I use to call another page with php?


View 7 Replies (Posted: August 27th, 2001, 05:38 PM)

Sponsored Links:

Related Forum Messages:
Call Particular Page Content Using Page Id Where Post_type="page"?
I am facing some problem in wp code.I want to show a particular page content through page id using wp function.I am using code given below.I want to fetch content having page id 37.

<?php
global $post;
$args = array('numberposts' => 1,'post_type' => 'page');

[code]...

Posted: Feb 5 at 8:41

View 1 Replies!   View Related
I Need To Call A Php Page.
This is what I'm doing:

I have a menu in the header that will be on all the pages.  But I want to call the menu remotely as a seperate php page since I will undoubtedly be changing the menu in the future... and who wants to go back and change each page individually!

Posted: April 20, 2007, 12:51:13 PM

View 6 Replies!   View Related
Call A .php Page
I have a custom made template which is done using html. I also have phpproxy which uses .php and I would like on my index.html page to call the index.php in the table created for text content. i have tried to use the include comand however it doesnt have any effect.

Posted: March 16, 2007, 06:04:06 PM

View 1 Replies!   View Related
Call A Another Page On Different Url?
how I can call another web page. I don't want to read the page I just need to send it information like test.php?action=thisI don't need to read or store I just need to pass it info so it can handle some site changes on the other site.

Posted: April 04, 2011, 12:56:34 AM

View 1 Replies!   View Related
Call Session_start() On Every Page?
do I need to call session_start() on every page? and session_register("SESSION") to keep the variable session? when i've tried putting session_start() on any page...when i hit the back button it gives me an expired error.

Posted: June 28th, 2000, 02:15 PM

View 2 Replies!   View Related
Use ?id=3 To Call A Function In The Same Page? :S
i have a script which displays information from a mysql table (index.tcos) and then creates a link using the rows id on clicking this link i want it to delete that row from the table so what i need is a way of saying Code:

Posted: August 08, 2007, 06:27:57 PM

View 4 Replies!   View Related
Call Code From JSP Page?
I am trying to call a piece of PHP code from my JSP Page. How do I do that? I normally use servlets but I need this PHP code for creating a particular report since it sorts the table fields dynamically which I am unable to do with my servlet.

Posted: Mar 11 09 at 16:26

View 1 Replies!   View Related
Call Css For Page Get From File_get_content
I am using the following code

<div id="content"> <?php
$homepage = file_get_contents("[URL]");
echo $homepage;
?></div>

The page appears fine but its without the style sheet. How do i call those style sheets? the link which appears are not Valid (it appears through my domain). How do i fix it? The code that i was using for iFrame which is not working is below

[CODE....]

Posted: Jan 12 at 13:13

View 2 Replies!   View Related
Call .net Function From Page?
I have this function in .net code:

public class StringGenerator
{
public static string GenerateString(string hash)
[code]....

I want to be able to call this from PHP page. I see that it possible. but I can't code the code to find this dll, even with strongly named dll. the dll file is in the same folder as the php page.

Posted: May 26 10 at 3:29

View 3 Replies!   View Related
A Call To The Db Every Page Load?
Make a log in script using PDO.Here is the code:

PHP Code:<?php session_start();
//Get username and pass from form
$host = "host";
$db = "db";

[code]...

I was also wondering about page checks, is it good enough just to see if the session user is set and that the user agent match or should I make a call to the db every page load?

Posted: October 6th, 2009, 12:37 PM

View 1 Replies!   View Related
Redirecting - Call Another Page If A Condition Is Met?
Is there a way to call another page if a condition is met?

For example - in psuedocode:

"if variable X equals "1234", goto thispage.html.

otherwise, goto thatpage.html"

Posted: August 11th, 2000, 04:17 PM

View 1 Replies!   View Related
How To Call Script From Html Page?
Is it possible to call a php script from an html page? I have a
TestPage.php that I want to convert to TestPage.html - but still call a php
script from it.

This is how my TestPage.php looks now:

<?php
setcookie("mycookie",time(),3600,"/");
?>
<html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
<head>
<title>TestPage.php</title>
</head>
<body>
content here
<?php
include 'myscript.php'
?>

The site is hosted on a LAMP server - Apache 1.3.27
Is there any way to make this an html page and still call myscript.php?

Posted: July 17th, 2005 07:15 AM

View 21 Replies!   View Related
Db Call Is Causing Page To Be Blank
I've got a page that pulls the data from the config table, and allows you to edit it inside a form. It uses the following db call: Code:

Posted: 10-11-2006, 04:42 PM

View 1 Replies!   View Related
Jump Menu Call Page
Is it possible to use a jump menu to call a page within a page? To be clearer. I can place an " include ('whatever.php'); " within my page which is fine. But i would like this include to be a variable set by the options within a jump menu. So when I select from the menu the include will swap from its default to the newly selected one. Am I making sense?

Posted: 10-21-2005, 04:11 PM

View 8 Replies!   View Related
Use URL Argument To Call An Image Into A Page?
I have a basic CSS/HTML layout and I want to insert an image placeholder in the layout. Then, users could call any image they wanted to appear in that spot. The image would be defined by an argument in the URL. For example, if someone went to...

/page.php?img=othersite.com/images/picture.png

I would want it to take picture.png and show it on the page on my site (the "src" part if the "img" tag would be a variable set by the url= section of the URL). Unfortunately, I have no idea how to do this and all of the search terms I've though of turn up millions of unrelated results.

Posted: Dec 10 10 at 20:33

View 3 Replies!   View Related
Javascript Call A Page When A Div Is Clicked?
I want to call a PHP page when the user is clicked on a <DIV> using AJAX. At the same time I want to change the Text of the DIV as LOADING.....I don't know much about AJAX, so please give me details about that also.

Posted: Jan 26 at 14:26

View 3 Replies!   View Related
Javascript - Use AJAX Call To A Page?
I'm working on an assignment which determines the client timezone offset , passes the same to a PHP script, which contains a code to fetch the timezone identifier for that client's area.Now for determining timezone offset, I have used JavaScript. However, I need some way to pass this to PHP. I used AJAX call for the same.

var url = "index.php";
url=url+"?client_timezoneoffset="+offset;
xmlhttp.open("GET",url,true);
xmlhttp.send(true);
[code]....

Posted: Jul 31 10 at 9:40

View 3 Replies!   View Related
Call The Function While The Page Is Getting Loaded
I need to call the php function while the page is getting load.

Means when I click a link or menu of the page Homepage.php, then it will redirect to the page called History.php. Here before loading the page History.php, it sholud call the function to get the data from the database.

Posted: May 24 at 6:04

View 4 Replies!   View Related
Call A Function If Page Is Loaded
I made two divs (one contains manu, and other is target div, where pages are loaded from menu) i loaded a from in terget div. this form adds values to database using php. the next pages respondeds as data is saved successfully... in target div now i want to call a javascript function right after text appears "data is saved successfully". this function takes the user to the next form...

Posted: Apr 17 at 11:32

View 1 Replies!   View Related
Call A String From Another Page Function?
Can you do that? I just tried but it doesnt seem to work. I have dbc.php included at top of my page, and in dbc.php at the bottom i created this function:

function getUserInfo($id) {
$thaString = mysql_query("SELECT * FROM users WHERE id = '$id'");
$thaString2 = mysql_query("SELECT * FROM users_profile WHERE uID = '$id'");
$showUR = mysql_fetch_array($thaString);
$showURP = mysql_fetch_array($thaString2);
}

[Code]...

I dont get any result, is there a smarter way to do this, if so how?

Posted: Aug 20 10 at 22:52

View 4 Replies!   View Related
Call A Form Input From Another Page?
I have a form on a page that submits to a controller with a POST value. I have a situation where I would like to run that some code just as if the form were being submitted with the input POST value to the controller but run it from another page that is not using a form input. Is there a way to mimic the form?

I assume I can do it with a header and a GET variable, but I would rather stay away from that if possible. Does that make sense to anyone other than me?

Posted: Oct 14, 2010, 18:32

View 2 Replies!   View Related
Call A Function On Page Close?
Is it possible to call a php function on page close? If yes, could you explain how and where to call?

Posted: November 21, 2009, 09:50:29 AM

View 3 Replies!   View Related
Use Ajax Twice On One Page To Call Different Pages?
On a page I have a requirement to call 2 different php pages using ajax. this code works fine, but if i add another is seems to conflift and im insure how.

the calls are in different areas of the page.

<html>
<head>
<script type="text/javascript">
function showHint(str)
{

[Code].....

Posted: Jul 23 10

View 2 Replies!   View Related
Call Remote PHP Script On HTML Page
I have (almost) completed a php script. The client has an existing site and the pages have some graphical elements that need to be there. Hence whenever the htm page is called, i want the php script to run at a particular location on the page and insert the result there before sending the page back to the user.

I am trying to avoid having to copy and paste the php code onto every page and save all pages with the php extension.

Do I (I am Java-speaking here) declare it as a class and the procedure as a method with parameters? and place the script in the cgi-bin. Then make an instance of it on the page and call the method and pass the parameters to the phh script from there?? i was not able to locate an 'import' declaration to achieve this.

Posted: March 27th, 2003, 10:21 AM

View 5 Replies!   View Related
Call A Php Function By Clicking A Link On A Page
What i needed to do was call a php function by clicking a link on a page. Simple right?wrong. Everyone on here says to everyone that it can not be done... when if fact "it can". here is how i did it. Quote:

<a href="?Event=true>

^---html code

and in my php script i had an if statment with this. PHP Code:

if($_POST['Event']==true)Function();

which then went and excuted the Function Function within that script.

Posted: 01-23-2006, 05:48 PM

View 3 Replies!   View Related
Retaining SetTimeOut() Call Even After Page Reload?
I've my site pages structure as

1) index.php which calls addline.php using ajax and the html returned is appended to the index.php

2) the addline.php calls another page more.php using ajax which again appends the returned html to it

3) Again more.php calls another file update.php and in the update.php, I've my following js codes

var number = parseInt("<?php echo $delFlag; ?>");
if ( number == 1) {
// Calling updateLine() function after 5 mins
timer = setTimeout("updateLine()",1000*5*60);.............

All the time, my location is still index.php. The javascript function works properly if I do not reload the page. If I reload the page, it doesn't work. I want the setTimeOut() call to be active in the background even after the reload takes place. It should trigger the function call after 5 mins.

Posted: Feb 3 at 8:05

View 1 Replies!   View Related
Call A Singleton Method Many Time Over And Over On A Page?
In PHP if I create a singleton method for like 5 different caching classes (memcache, apc, session, file, cookie)Then I have a main cache class which basicly routes my set() and get() methods to the appropriate caching class. Now lets say I need to use the session, cookie, memcache, and file cache all on the same page. My main cache class would then need to create a new instance 1 time for each of these cache types using a singleton.SO I would then need to call my singleton methods many times on a page, if I were to set/get 30 different calls to the cache on 1 page, it would call the singleton method that many times.I am wondering if it is bad practice or not very good to keep calling my singleton over and over on a page?UPDATEBelow s some code I have started, in it you can get a better example of what I am trying to do... If I were to add something to memcache 40 times on a page, it would call the singleton method for ym memcache class 40 times

[code]....

Posted: Jan 20 10 at 0:05

View 1 Replies!   View Related
SSL Cert For A Single Page With MySQL DB Call?
I have a one page site which (based on the $_GET{} variable) redirects a customer to one of two websites.I am not collecting any sensitive information but am wondering if I need to get an SSL certificate for that site based on my sensitive DB data 'potentially' being exposed?The get value will be used in a MYSQL query, if there is a match, redirect to A - if no match is found, redirect to B.

Posted: Feb 19 at 1:19

View 4 Replies!   View Related
Zend Framework - Call Something At The End Of Building A Page
I am using Doctrine2 + ZF. The EntityManager has a flush method, which should in the common cases only be called at the end of the page generation. Is there a hook or a destructor emulation in Zend Framework? 2

Posted: Mar 17 at 22:30

View 2 Replies!   View Related
Javascript - Call Page Via JQuery / Ajax
Let's say I have a PHP page and inside that PHP page I just have <?php echo "Hello World!"; ?> and I want to use JavaScript (preferabbly jQuery) and AJAX to CALL that php page and return it's output

Posted: Sep 9 10 at 20:32

View 2 Replies!   View Related
Call Ajax File On Page Load
I just built a news feed with Ajax and now I want to run the ajax feed on page load.  How do I tell it to grab the ajax file and not the php in the file itself?  Is this done with a javascript event? Should I even load the ajax file on page load or only when I am clicking through tabs to load different versions of my news feed? Ideally I should have this backed up with php. I'm not sure the best way to implement this sort of thing.

Posted: June 09, 2011, 03:51:05 PM

View 8 Replies!   View Related
Call The Information Stored In Page Class?
I have a class named Page with a private property currently called _pageData which stores all the information (such as title, content, keywords etc).

However, this to me doesn't look so good when I refer to it $this->_pageData. I want to think of a better name, and I'd imagine there would probably be a standard or 'best practise' name/prefix/suffix for these sorts of things. I thought about '_assets'.

May I ask what you have used in the past, an unambiguous name that hasn't made you down the track add some data to it and go "Oh no, now my array has data in it that's outside the scope of the variable name". This has happened to me a few times so I'd like to see what has been proven to work.

Posted: Dec 18 08 at 0:37

View 2 Replies!   View Related
Check Whether The Page Is Call From Http Or Https ?
Just wondering, will it be possible we can check whether the page is call from http or https in php?

Example:
If I call to a page call customer.php by the following link http://customer.php, will it be possible to check in php and tell the page is from http.. also if I call the page from the following link https://customer.php, will it be possible to check in php and tell the page is from https??

Posted: May 24 at 5:04

View 3 Replies!   View Related
Call Function After Page Load Completed?
I am trying to call a function after the page has been sent to the browser, but I haven't found a way to do so.I have tried both register_shutdown_function and __destruct but it does not work. This is the structure I have:

register_shutdown_function('MyClass::Save');
MyClass::Initialize();
CreateAllOutput();

MyClass::Save has a sleep(20) inside.

The shutdown function gets called after the CreateAllOutput(), but the truth is that the loading bar on the browser only finishes after the Save function has been executed, waiting 20 seconds... I tried the same using a non static class and __destruct having a sleep(20) inside, and the same happens.Is there a way of getting the function to only be executed after the output has all been sent to the browser?

Posted: Jul 8 at 13:51

View 1 Replies!   View Related
Assigning $_SESSION - Call The $random In Another Page?
Is it possible to call the $random in another page? i used the $random as a filename in the image that was converted from movie to jpeg.
 
$random = rand(1000000, 9999999); 
$_SESSION['random']=$random;    

im planning to use the $random from page1.php in page2.php in these code to filter the url that im planning to display.

$sql = mysql_query("SELECT * FROM image WHERE url = '" . $random. "'") or die(mysql_error());      

my problem is i cant pass the $random from page1.php to page2.php..

Posted: Mar 25 10

View 10 Replies!   View Related
IPhone - Call A Page Asynchronously And Be Sure It Has Been Loaded
In one of my apps, I'd like to call asynchronously a php page I have written (http://serveradress/page.php?date=20111231), and I would be sure to know if the page could be called (no 404 error, php server down, customised 404 page, missing internet connection, or some things like that). I've planned for that to make the php page return a very simple HTML page with just "OK" in its body or title.

This would be a "phantom" call without use of any UIWebView, or if REALLY nedded, a hidden UIWebView but I'd prefer to avoid this.

Could you help me to write this call ?And be sure to know if it has been loaded ?I saw that I should probably use NSURLConnection, but I'm a little bit lost.

Posted: May 7 at 1:03

View 1 Replies!   View Related
Call Pagination Script From Html Page?
I know there are many threads related to pagination (splitting mysql data into multiple pages) and I have gone through most of them. But my query is a bit different. I am new to coding and am bit stuck with a simple issue,

I have created a pagination.php file (taking help from the internet) which gives the intended results in the browser when I click on the url - http://myhost/pagination.php (example url). The php script is usual I think for pagination, using $_GET['page'].

But I am not sure how to integrate this code into my website. I currently have a static products.html page (and few other static pages created using kompozer). I wish to now call the pagination.php on the products page and display products from my mysql db page by page. How do I do that? How do I give value to the 'page' parameter in this case?

Posted: 06-11-2009, 12:50 PM

View 9 Replies!   View Related
A Cookie Value With CURL To Call The Main Page?
Website that depends on a complex cookie being set.In an effort to fix problems before they become big problems, I want to monitor that the cookie is getting set correctly with a cron job.I can setup the cron job just fine, but I can't figure out how to get the value of the cookie.By visiting the main site the cookie is set automatically, and I've also made a special script on that server that only gets me that cookie value and spits it out.I am trying to use cURL to call the main page, and then right after that, call the get-cookie.php page which should then have cookie data to display.

Here is how I am trying to do it now:
<?php
$c = curl_init();
// making the initial call to the real website

[code]...

Posted: January 19, 2011, 02:45:02 PM

View 3 Replies!   View Related
Jquery - Page Move On Top After An Ajax Call?
I make this code that, after 9 seconds, it call an ajax function, and print the result elaborated from the server to the client.

This is the JS code :

function changeSponsor() {
$.ajax({
type: 'POST',
cache: false,
url: './auth/ajax.php',

[Code]....

the result is printed on a div at the top of the page. when the result is printed to the client (after, as said, 9 seconds), and I am at the bottom of the page, the page go automatically at the top. I don't want this.

You can see an exemple at this link : open this page, go to the bottom (is not so long this page) and after few seconds (9). You will se the page scroll at the top.

Posted: Oct 21 10 at 16:35

View 2 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved