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


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





Forcing A GET To Another Webpage


How can I forcefully 'push' a get request within a php? Example would be having 2 websites running on two diferent server. When I update site A, I would like update site B as well using GET. PHP Code:




View Complete Forum Thread with Replies

Related Forum Messages:
How To Move Arrays From Html Webpage To Webpage?
There are a couple techniques to move information from different html
web page to web page.
1. URL;
2. Cookie;
3. Form;
4. Session;

All the examples I found are move distinguished variables from page to
page, such as "?weight=20&name='apple'".


I need users choose from the first web page (the arrays will be
generated), then use it in second and third html web pages. How do I
transfer them (arrays) and which way is the best?

For example, if I have two arrays,

$fruit[] = array("apple", "pear", "orange");
and associative array
$myCats["Me"]="Merry";
$myCats["Pi"]="Pippin";
$myCats["He"]="Hergie";

View Replies !
Forcing IE
My CMS works fine however in order to properly view the newly loaded pic IE should be refreshed. how can I code a forced refresh?


View Replies !
Forcing The Download Box
I have a page that generates a text file (but writes the file with
the ".csv" extension) and then I redirect the user so he can save the
file

header("Location: $my_csv_file");

However, the file appears as text in the browser and I would prefer
that the gray "Download this file" box pop up. How could I pull this
off, or is this really more dependent on client browser settings?

View Replies !
Forcing Frameset
Is there a way of forcing a document to be a part of a frameset.
Search engines sometimes point to a single frame of my whole frameset.

Something like: of main.php is not inside a frame it redirects to index.php.

View Replies !
Forcing The User
The user logs in to a certain webpage (username & password). Then the user sees a html page with a link in it. This link is a target="_blank" link, so it would open in a new Internet Explorer window.

Normally the user has the possibility to go on that link (without clicking with left mousebutton), pressing the right mouse button, going on copy location, open a new browserwindow by himself (even if it is a totally other browsertype), copy the link location in it, and access the url of the link in this manner. I want to prevent this. He should only be able to open the link by pressing the left mousebutton, otherwise he should have to log in again. Is this possible, if yes - how?

View Replies !
Forcing Downloads
Trying to use PHP to download a pdf from server to local machine. Got the following:

$bs = Singleton::getInstance('BrowserSniffer');
$file = $_SERVER['DOCUMENT_ROOT'] . '/pdf/' . $location;
$filename = substr(strrchr($file, '/'), 1);
if ($bs->name == 'Mozilla') {
$content_type = "application/octet-stream
";
$attachment = ' attachment; '
} else {
$content_type = "application/download
";
$attachment = ' '
}
header('Content-Type: ' . $content_type);
header('Content-Transfer-Encoding: binary');
header('Content-Disposition: ' . $attachment . ' filename=' . $filename);
header('Content-Length: ' . filesize($file));
$fn = fopen($file, 'r');
fpassthru($fn);

But cannot get the file to download if $location has spaces. Is there any way around this?

View Replies !
Forcing Round()
I'm using a webservice to query for currency conversion rates and this returns me a value which I use round() on like round($string, 2) to force two chars behind the comma, but it doesnt output a trailing zero if there is one eg, it will return 124,1 instead of 124,10.

View Replies !
Forcing Browser
This is something im really struggling with. I have a txt file called text.txt on my server which I am wanting to force the browser to download. No matter what I try it just displays the contents of the file.

View Replies !
Forcing Download
I have files that people purchase (3D Studio Max files, that get opened by software that they have installed on their computer).

I want the following. After they've purchased, they will have access to the files to download. However when they click on the file, it should only allow them to open the file (in the software program that they've installed on their computer - i'm guessing the Operating System will handle this). Code:

View Replies !
Php Webpage And Form On Webpage!
recently signed up for a text messageing service that can use php script to send required details to specific mobile numbers, Anyways i recieved this code from the company: Code:

View Replies !
Forcing Image Download
I was just wondering if anyone had bee successful in forcing users to download images to their local machines via a prompt?

I have tried various combinations of using PHP Code:

View Replies !
Forcing Server Mode
I've been through the docs and I'm more than a little confused: I'd
like to run [some] PHP apps as ordinary CGI programs. I though/hoped
there'd be a command line switch [that I could put in my shebang line]
that'd tell PHP to run in SERVER mode, but I couldn't find it... Is
there a way to do that?

[meta question: is there a way to get Apache to use mod_php on a
shebang'ed PHP program... that'd be best, of course..:o)]

View Replies !
Forcing Downloads With A Code
i have a problem with forcing downloads with a code like the following or some similar:

$filename = $fileName;
$size = filesize("$filename");
header ("Content-Type: application/octet-stream");
header ("Content-Length: $size");
header ("Content-Disposition: attachment; filename=$filename");
header ("Content-Transfer-Encoding: binary");
readfile($filename);

i think, normaly the code is ok, but whenever i use something like this on my system (win2k/apache and freeBSD/apache) it works only with rightcklick. using normal leftclick, the downloadbox shows (and even downloads) me only the name of the source page (filemanager.htm) or rather the html-output of the base-script.

View Replies !
Forcing A Download Of A File
I would like to force users to download a file to their computer (instead of viewing it within the browser). I would also like to keep the location of the file hidden, so the address would be something like "download.php?id=34" I am thinking I can use something like this: Code:

View Replies !
Forcing Download Dialog
I'm using this code to force browser's download dialog.I have problem only with IE 6 because the downloaded file size is 0 bytes.Does anyone know why?

$fp=fopen('c:xampphtdocspesmeR.E.M.-Losing_My_Religon.mp3','r');
$name=basename("c:xampphtdocspesmeR.E.M.-Losing_My_Religon.mp3");
$size=filesize('c:xampphtdocspesmeR.E.M.-Losing_My_Religon.mp3');
header('pragma: cache');
header('pragma: public');
header('Content-Type: audio/mpeg');
header('Content-Length:$size');
header("Cache-Control: private",false);
header('Cache-Control: max-age=0');
header("Content-Transfer-Encoding: binary");
header("Content-Disposition: attachment;filename= $name");
fpassthru($fp);
fclose($fp);

View Replies !
Forcing The User To Type
I have not been able to find the answer to this on the net. I want to force the user to type in text into a text field and not be able to paste in text. This is for confirmation fields. How can I do this?

View Replies !
Forcing Upload Of Files
I have set up a php script that forces upload of an excel file by the user, thus:

header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=data_".date("d-m-y").".xls");
header('Cache-Control: public');
header("Pragma: no-cache");
header("Expires: 0");
echo $thedata;

This works perfectly, except when I move the script to my secure connection. At that point, Firefox will download the file, but IE says it doesn't fine it.

View Replies !
Forcing Function Timeout
is there any way to force a function in php to timeout. We're getting data from an external source using file_get_contents() with a URL but when its down it can take up to 2 minutes to come back and say its down.

View Replies !
Forcing Secure Page (https)
I am a novice at secure pages (just installed mod_ssl and open_ssl).

The main question I have: If a page is "secure" (https://blah) and you don't want people to get there by typing http://blah, how to you stop that?

I want users to login, but I want the login to be https://domain/login.php not http://domain/login.php. How do I stop someone from being able to access the login page insecurely?

View Replies !
Forcing Queries/php To Refresh Page
let's say I have a page listing records in a table... If I go somewhere else and later on reload this list page, it does NOT refresh the list (if more records were added to the table meantime). What should I do? Is there a way to force a refresh?

If I turn off the cache, are people still going to be able to cache the graphics (i don't want to force a reload of every element, just the page itself)?

View Replies !
File Empty When Forcing Saveas
I am trying to force saveas using array for filename.

The problem is that when I click saveas or open, the file is empty. The path to the file is fine, and the file is in the correct directory.

However, when the filename is hard coded, the file is fine.

View Replies !
Forcing A Web Browser To Stay Open
I recently developed stock check system which involves an admin panel that refreshes every thirty seconds to check for new additions to a database. If there is a new addition then a buzzer will sound alerting individuals that action should be taken. This is where the problem lies however, the computer that runs the webpage that refreshes every thirty seconds is a community computer.

People keep closing the page by accident thus rendering the system useless since the buzzer will not sound. Is their any way to check and see if Mozilla or internet explorer are open, and on a certain page? Is their any sort of toolbar system that could easily be used to run the page minimized. How hard would it be to make a .exe file to check the database?

View Replies !
How To Display Text On Browser After Forcing Download
how do i display text to my browser after i force a download? heres my working script:
Code:

$selected_file = "/home/user/somelogfile.log";
header("Content-Type: text/plain");
header("Content-Disposition: attachment; filename=" . $_SERVER[HTTP_HOST] . "_" . $selected_file);
header("Content-length: " . filesize($selected_file));
readfile("$selected_file");

what i want to do is display some text in my browser, but if i echo something after readfile(), it gets included in the download file, while i also cant echo before the download as headers need to be sent before any text .

View Replies !
Forcing Word Wrap/ordering Of Draws From Mysql
A: how do i force when i pull data to a table the text to wrap? and B: how do i control order of how it is displayed when it draws from the DB? (ie 07/25/00 11:45pm showing up at the top then 07/25/00 9:45am showing up after that)what i have right now: Code:

View Replies !
Forcing A Line Break In An Email Sent Via Php Form Script
I've successfully created a script which sends an email when the form is filled out. (yay!) But I am not happy with the formatting of the email once I receive it.

I have 10 variables passed in the email, and some of them are on a new line, but some are all on the same line. Is there a way to force a line break after each line, so there is only one entry per line? Or perhaps a way to send this as an HTML email so I can put the variables in to table cells?

example of what each line looks like:

"Last name: ".$_POST['last_name'] . "
" .

View Replies !
Visitor Stats... Forcing Uniquness (IP/Date.Time)
Im setting up a DB to collect visitor data... i want it to be unique based on a 24 hour period for giggles lets say i have this stored in my db (completely hypothetical)

127.0.0.1 | Mozilla | NT | 1.8 | 11:30pm

now lets say i refresh the page... what would my query look like such that it would check to see if what im trying to enter is unique by IP and date/time

the time bound would be midnight to midnight, not 24 hours after the first appearance of a given IP address (this way i have accurate daily collection based on my servers timezone)

i already have the data collection taken care of... its just accurately entering it into the DB

View Replies !
Login Script Forcing Me To Login Twice?
I have built a login script and for some strange reason its forcing me to login twice. Not saying the user/pass is wrong first time, it moves the headers fine, it just show the old page with the login any ideas? Code:

View Replies !
Get Webpage Url
how would I call a web page url I'm interested in the current active page Example the URL when I type this post is

http://www.phpfreaks.com/forums/index.php?action=post;board=1.0

I want to assign it to a variable

ie $url=http://www.phpfreaks.com/forums/index.php?action=post;board=1.0

View Replies !
Screenshot Of Webpage.
I remember an old topic way back about creating a script that would be able to create a dynamic thumbnail image of a live web page. I didn't follow it all the way thru and never did see if somebody created a solution. I tried searching for it, but can't find it.

Did anyone figure out if this is possible?

View Replies !
How To Parse A Webpage
I've scoured the net looking for a tutorial on how to parse a webpage but I've come up short handed. Can anyone provide me with some tips on how to get started?

View Replies !
Ideas ..with Webpage
Hello I didn't do any web page development since university ,I wanted
to create a web page for the fun of it ,an I was surprised of how easy
it is to use frontpage and dramweaver to do basic stuff ,but I wanted
to do something that I am sure it can be done but I don't really know
the way .
The webpage is not something original and it has been done before .
Xe.com is a currency converter from a currency to another currency I
have the following questions :

1) Wanted to auto detect the users country and accordingly set the
starting currency (from this currency) to the currency that his country
is using.
And also change the language to the user's language ...

2)lets say that I have users from two countries Germany and Hungary I
can create two starting web pages one with Hungarian and one with
German ..but lets say I have users from 30 different countries is not
very convenient to have to create a web page for each language there
must be a way that someone can i have a webpage that takes textiles or
something with the language strings and just displays them.

3) Lets say that the language is wrong and the user is using a computer
of the Spanish person and the user is Japanese I want to give them the
option to change the language
at any time ..do they have to install another language e.g Japanese in
this case? or only the encoding has to be changed .?

4)I wanted to give the user the option to select the currency in a
better way than dropdown box ,or a list box .. like a menu somehow but
I can't come with anything ...I don't know what guys can you
suggest I guess the list box is the obvious especially if there are
so many currencies but I would like something nicer... for example to
display the currency image at the side ..not sure..

5) If I create user login for example and I have different users that
they pay for the services how can I restrict certain currency converter
for certain users e.g. we have two users and the one user didn't pay
subscribed for the free service (he can convert Euro to dollars, visa
versa, pounds to dollars visa versa, pounds to Euro visa versa), the
user that paid can convert any currency ..

6) How can I restrict users from copying the website (using offline
explorer for example).

I was wondering what tools do I need to use to create the
website(recommended reading books?/online tutorials ),how will I be
creating the functionality that I want and how will I be resolving
every problem listed ?

View Replies !
Webpage To Email
Several times recently I've been asked to generate HTML email messages for
clients. It would be very nice to be able to render an existing webpage in
such a way that it could be included as the HTML portion of an email
message.

The problem is that web pages usually have some relative urls, such as for
images, links, stylesheets, backgrounds, etc. which wouldn't work in an
email.

Does anyone know of a way (in PHP) to translate all the relative urls in a
document to absolute?

View Replies !
Webpage Via EMail
I have developed a website in my local machine using PHP, MySql and
apache. It's not uploaded on the net. If someone asks for references,
is there a way to send without uploading on the net?

View Replies !
Webpage Screenshot?
Is it possible to fetch a webpage and take screenshot of it like it displays
in browser and then store it in jpg/gif

View Replies !
Moving To Another Webpage
Is there a way of jumping to another page from PHP. I've got a form that is submitted, and that data is entered into the database. I want the page to then go back to the original page. Can i do this?

View Replies !
Webpage Hit Counter
Where would I find a website hit counter written preferably in PHP? I
do not have shell access to the web provider so installation would
have to be via FTP only (no make or compilation)....

View Replies !
Using A PDF-creator On A Webpage
I have a webpage: www.site/page245.php.  I also have a "frame" on the right side where I have this PDF-button.

That button uses html2pdf to create a pdf. The problem is:

I need to get a hold of the address it is supposed to create a pdf of.

when I use this code: $htmlFile = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; I only get the current page, and I want the previous.

View Replies !
Backup A Webpage
Is there a way with php to backup/mirror a page? I know that I can use file_get_contents() to get the HTML from the page, however how can I get the images etc to be downloaded and stored on the server?

View Replies !
How To Restrict Webpage
how to restrict my webpage, the logged in users are only allow to access page, if not redirected to login form.

View Replies !
Reading A Webpage
I need to make a PHP script that reads the source code of a webpage (i.e. http://www.google.com/). How can this be done?

View Replies !
Check A Webpage..
I want to be able to check a webpage for a piece of text/hyperlink.. How would I do this?

View Replies !
Having A Webpage Modify Another
I am completely new at webpage building when it comes to advanced controls. I know how to put textboxes on a page with dreamweaver. What i want to do is have page1 with 2 textboxes. Then I want it to modify Page2.html page. Code:

View Replies !
Render A Webpage
I am trying to create an module/component which can take a webpage (by URL) and render it as an image. The aim is to be able to create thumbnails of any given website on the fly.

View Replies !
Webpage Freezes
I have a registration page in PHP, worked fine yesterday, today when i submit the data, it hangs the actual webpage. The data is placed into the mysql DB, and i can log in with that user id and password after i close internet explorer and open it again.

View Replies !
WebPage Creator
I need to create a form that displays webpages with personalised content. The form will be something like this

Please enter title of Webpage:
Please enter content for page 1:
.................................... page 2:

The webpages will be fairly standard over all it will only contain about 4 pages
Home with links to the other 3 pages. any ideas? I'm sorry if that description is bad, i'm not too sure how best to explain it.

View Replies !
Redirected To A New Webpage
I have a form which posts data into a mySQL database, which works fine. After submission I then want the user to be redirected to a new webpage, this is the php code I have but the redirection does not work...can anyone help me with this problem.

<?php

mysql_connect("localhost", "mypcguy2_mypcguy", "*****") or die(mysql_error());

mysql_select_db("mypcguy2_passportforpets") or die(mysql_error());

// Form Variables
$FirstName = $_GET['firstname'];
$LastName = $_GET['lastname'];

// Insert a row of information into the table "contacts"
mysql_query("INSERT INTO contacts
(pkID, fname, lname) VALUES (null, '$FirstName', '$LastName' ) ")
or die(mysql_error());

header("Location: http://www.example.com/");

?>

View Replies !
Testing Webpage
I think I've finished my website and I'd like to know if I can ask people to take a look at it to see if they get any errors but I don't know if I can do that. I wasn't able to find it in the FAQ or guidelines. So is this ok?

View Replies !
PHP Form To A Webpage
if it would be possible to set up a submission form with the following parameters:

name, email, phone number

and instead of storing the information to a database, the information is posted on a webpage or sorts? Is that possible or does it have to touch a database first?

View Replies !
Webpage Viewable Once
Does anyone know how to make a webpage viewable once. I have searched and still no luck.

View Replies !
Webpage Preview Like Ask.com
On search results from Ask.com, users can mouse over the binocular graphic next to each result to see an image preview of the page they are about to visit.

Anybody know how this is done? If so, is it possible with PHP or is this one of those dark, scary, proprietary monsters?

View Replies !
Detecting Webpage Changes
I was trying to write my own code to display the differences between two webpages but I am having great difficulty. I also cannot seem to find such an animal on the web, it's incredibly hard to search for without concise terminology.

View Replies !
Creating Webpage
I'm using FCKeditor for entering data into the database. The database will store all content.

Below the text editor I want a screenshot of how the currently stored data appears in the webpage template. How can this be created? Will I have to split the template into includes files?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved