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.





Posting Many Times To Page


I have a situation where I need to post alot of data to a legacy system we have and it takes a long time for the system to do the inserts.

I was wondering if there is a way to post without waiting for the response, so I could do say 15 posts one right after another and it would open 15 connections but not wait for them or put them in the background. Preferably without forking if its possible.




View Complete Forum Thread with Replies

Related Forum Messages:
Looking For - Page Generation Times Script
I am looking for a good script can calculate the time taken to generate a page, including mysql queries.

View Replies !
Count The Number Of Times A Page Is Viewed?
can PHP count the number of times a page is viewed? Doesnt have to be unique views.
Wish to insert this in a db.

View Replies !
Html Page Link Prints Path 3 Times In Header
I have a website with html pages and a php page (a form). I just put in links on the html pages to the php page. When I click them I go to the php page and as bonus the path of the html page is printed at the top three times. (The text in the php page changes depending on which page I have hit the link from.) For example:

Quote: http://mysite.com/sitefolder/previouspage.htmlhttp://mysite.com/sitefolder/previouspage.htmlhttp://mysite.com/sitefolder/previouspage.htmlhttp

If I highlight and then delete this text in Navigator or Explore both browsers return me to the page written out three times at the top of the page. Here is the code that is giving me this result. Code:

View Replies !
IE Trying To Save The Php Page When Posting From Another Page
After installing Apache, and the newest PHP, I find that when i open a php page explorer reads it but if i press a submit button that posts to another page or performs any pho script internet explorer immediately says the file type was unrecognised e.g. stage_2.php was unrecognised would you like to save?

I'm unsure why this is happening, perhaps my php.ini file isnt set correctly?

View Replies !
Php Page Without Posting
I have a page (a.php) that accepts input from the user via text boxes. The action of the form is set to the same page (a.php). The When the select button is clicked the following is set <input type=hidden name="updating" value="1">. This is used to update information to a database during the repost of a.php. Is there a way to load a confirmation page after the update and pass data to it on the fly without usine the <form name="arm" method="post" action="a.php">?

View Replies !
Posting To Same Page
I have a script that pulls data from a db. I need a user to be able to update the form info and then have the from refresh or post back to it self with the updated info. I can't seem to get this to work.

View Replies !
Hyperlink And Posting To New Page!
I have a page where I have done a successful query and get search results displayed. Now I would like a link activated so that they can click on the name and go to new page with further details about that company like address hours etc.

View Replies !
Posting Back To The Same Page
I have a website that uses user authentication. The login does a post back to itself to check set usernames and passwords.

<?php echo $_SERVER['PHP_SELF']?>
sample url:  .../admin/login/index.php

This is working on a linux box where the end of the php code sends the page off to a ccc.php page for access checking. So after logging in on the index.php page, you eventually get returned to admin/ccc.php.

I reused the same code on a windows box and the .../admin/login/index.php takes me to .../admin/login/index.php/admin/login/index.php

does anyone have a clue as to what might cause this?

View Replies !
Posting To The Current Page
Is it possible to post a value to the current page and display it when the page reloads?. For example if I am on 'page1.php' and usign a form to post a variable to 'page1.php', would this be possible. Possible code below: Any other suggestions if this wouldn't work? This is code for page1. php

<?php
echo $_POST['selection'];
?>
<form action="page1.php" method="post">
<select size=1 name="selection" onchange="this.form.submit();">
<option value="goalkeeper">Goalkeeper</option>
</select>
</form>

View Replies !
Posting Checkboxes From Forms To An Array In New Page
what is missing or wrong in my statements from page1 to page2 becoz the values for the checkbox or hidden fields in an array from page1 doesnt get transferred. Code:

View Replies !
POSTing Data To A Page Without Using A Form Submit.
I'm trying to send data to a remote script (a credit card processing
third party) from my site using POST.

Currently, I'm doing it using the ususal form dynamically built with
my values.

This is less than ideal because I want to perform local processing
(updating order status in the local database) and then to proceed to
the remote script, with resultant values, without relying on the user
pressing a [submit] button. Code:

View Replies !
Times
I'm currently storing start and end times (hh:mm:ss) for shows in a
radio schedule using MySQL and processing the data with PHP.

I need to add one second to the end time to ensure it is formatted
correctly (e.g. 09:29:59 to 9:30am) however I just cannot see how to do
it *correctly* - with PHP or MySQL. I may well be overlooking something
but I would be grateful if anybody could help and point me in the right
direction.

View Replies !
A:M/P:M Times
Does anybody know how I can get my time to become A:M and P:M style? Code:

View Replies !
Set Run Times
i want a script to run at a certain time each day, i.e. 00:00 midnight.

View Replies !
Looping Too Many Times
I can't seem to get this loop working properly.
Here is the script:

View Replies !
Intersection Of 2 Times In Php
I have to do a script that calculates the intersection of 2 times. I
write it in php instead of explaining:

$time1_from = "2006-02-01 08:00";
$time1_to = "2006-02-01 20:00";

$time2_from = "2006-02-01 06:00";
$time2_to = "2006-02-01 18:00";

I want the script to calculate that there are 8 hours common in those
two times. And the script should work for any 2 times. And of course,
where there is no intersection, the return value should be 0.

View Replies !
Changing Between Times
does anyone know to convert a time string in the form
dd-mm-yyyyThh:mm:ss i.e 2006-08-01T15:45:11-00:00 to a normal unix time
stamp or something that at least I can use to compare to a unix
timestamp.

View Replies !
Download Times
I need to count how many times a specific file has been downloaded. I dont know if this will happen on the client or server side.

View Replies !
Php Dates And Times
I have a mySQL database that contains a DATETIME type column. An example entry would be "2001-08-07 17:30:58". I've pulled that value out of the table and am storing in a variable called $endtime.

I want to test $endtime and do one of two things. If the datetime in the variable has not yet arrived, I want to print the time remaining to the screen. If the datetime has arrived I want to do something to my table. It will look like this:

if ($endtime has not arrived) {
//echo "time remaining";
} else {
//mysql operations}

View Replies !
Ftp_put Times Out
I've got a script which uploads a few files to a remote server. The
problem is the ftp_put command hands and the script eventually times
out. What is even more strange is sometime it works fine.

When it's not working i've check the connectiion and done a manual
upload with a proprietry ftp program and all is fine.

View Replies !
How To Run PHP Script At Certain Times?
I am experimenting with web crawling and spidering and the spider script i have needs to be ran manually. how would i set it to run at certain times? automatically?

View Replies !
Dates/Times
I'm making a really basic forum.

When users post I want it to say "Latest post: (TIME) (DATE)" in say 22:00, then date as DD/MM/YY

When I insert it into the database do I want my field to be configured as "DATE" and a field configured as "TIME" or should I use VARCHAR? But I also noticed it doesn't insert it in DD/MM/YY, it does MM/DD/YY or something weird?

To insert do I just do time() and date()?

View Replies !
I Need TO Be Able To Tell HOW MANY TIMES AN MP3 FILE WAS HIT!!!
I am simply trying to figure out how many times a certain MP3 file was hit, and then store this number in a database. Every time the MP3 file is pulled/hit/requested by someone, i want this to increment by one.

This is probably vcery simple for someone with a little more PHP/MYSQL experience than me.

View Replies !
Times With Unix/PHP
I must first admit that I have little experience in dealing with times, and I'm not sure where to begin.

I have recorded a timestamp of the current time, but when I echo this time, it reads five hours ahead of the current timezone I'm in (which is -6 hours GMT and the server is -8 GMT).

I first assumed that this time was GMT -1, but then I began thinking about daylight savings time and what not, and that just got me even more confused. point me to a good article about dealing with time, or maybe give me a quick rundown of what I need to do to make the time display correctly for my current timezone (whether it's DST or not)?

View Replies !
Dates And Times
I admit it ... I am not so hot with database functions.

Could someone teach me how to get 15 minutes before NOW()?

i.e. SELECT userID, page, ip, happened FROM tracker WHERE happened > NOW() - 1500 ORDER BY id DESC LIMIT 0,100

I think I need something like this:
SELECT userID, page, ip, happened FROM tracker WHERE happened > DATE_SUB(CONCAT(CURDATE(), CURTIME()), INTERVAL 15 MINUTE) ORDER BY id DESC LIMIT 0,100

I am not sure if the above works or not ... I don't get any errors, but nothing changes. Are both queries correct?

View Replies !
Query Add 1 X Times
I want to have a form that says

My name ______________
number of entries _____

If I chose 20 entries I want to have a script query the last numerical entry and add 20 entries into mysql If I chose 40 then add 40 and so forth.

View Replies !
Mysql_query Times Two....
$data = mysql_query("SELECT * FROM news_posts WHERE upper($field) LIKE'%$find%'");

If I want the above query to select * Form two tables at once would i just seperate them by a period?

View Replies !
Multiple Times
I have a php program called from a menu where I put in information. When submitted, the form returns to the meny and leaves the screen with just the menu. I need to make 40 - 50 entries using this program (form). I put three buttons on the form, Submit-normal submit button so database can be updated, Complete - close the form and return to menu and Cancel - does the same a complete. I would like a method to keep the form on the page after submit is clicked with a "clean" form to continue making entries until the complete button is clicked.

View Replies !
Response Times
How can I create a script that displays the response times of the retrieved records from a database.

View Replies !
2 Times Same Query
I've a query quite important to execute. I've to fill an array with all result, so the query is called once wich returns all ID's Then I call the same query a second time as I shown only 10 results in my page.

View Replies !
Compare Times
I have a session variable $_SESSION['generale']["order_time"] that contains the string "22:00:00" taken from a TIME field in a DB i need to be able to compare that with the current time that i get with date("H:i:s"); when i compare them using PHP Code:

if(date("H:i:s")>$_SESSION['generale']["order_time"]){

it doesn't work, so i guess i need to do something to the times before being able to compare them.

View Replies !
Result Displays Seven Times In A Row
I'm trying to list out songs of a specific album and I think my code is fine. The only problem is that all the songs are displayed seven times. Everything else is fine.

View Replies !
How Many Times A String Occurres
How would i know how many times a {{text}} occurs in a string?

View Replies !
A For Loop That Loops 1.5 Times
Below is some code from a page of mine that is supposed to process form data. The data is made up of checkboxes that a user randomly selects when they want to delete a file from a list of files.

dbmysqlconnect_pgs();
for ($x = 0; $x <= count($checkbox); $x++)
{
$query2 = "SELECT name
FROM proposalinfo
WHERE propid='$propid'
";
$results2 = mysql_query($query2) or die("Error in query 2");
while($query_data = mysql_fetch_array($results2)) {
$name = $query_data["name"];
}
$query4 = "SELECT filename
FROM files
WHERE fileid='$checkbox[$x]'
AND propid='$propid'
";
$results4 = mysql_query($query4) or die("Error in query 4");
while($query_data = mysql_fetch_array($results4)) {
$filename = $query_data["filename"];
}

//THIS IS WHERE THE ARCHIVE OF THE OLD FILE IS PROCESSED
$query3 = "INSERT INTO archives
(date, userid, propid, filename, fileid)
VALUES (NOW(), '$userid', '$propid', '$filename', '$checkbox[$x]')
";
$results3 = mysql_query($query3) or die("Error in query 3");

$query4 = "SELECT date
FROM archives
WHERE fileid='$checkbox[$x]'
AND propid='$propid'
";
$results4 = mysql_query($query4) or die("Error in query 4");
while($query_data = mysql_fetch_array($results4)) {
$date = $query_data["date"];
}

//THIS IS WHERE THE RENAME OF THE FILE IS PROCESSED
$oldfilename=$filename;
$oldname="./" . $name . "/" . $oldfilename;
$newfilename=$oldfilename . $date;
$newname="/overflow/pgs_archives/" . $name . "_archive/" . $newfilename;

copy("$oldname", "$newname");
unlink("$oldname");

//THIS IS WHERE THE DELETE OF THE DB DATA IS PROCESSED
$query5 = "DELETE FROM files
WHERE fileid='$checkbox[$x]'
AND propid='$propid'
";
$results5 = mysql_query($query5) or die("Error in query 5");

$query6 = "DELETE FROM fileinfo
WHERE fileid='$checkbox[$x]'
";
$results6 = mysql_query($query6) or die("Error in query 6");
}

indentheader(&#3920;',',&#3920;','header3','The selected files have been deleted from the system.');

The problem I am having is that this will only execute 1.5 times before failing. The failure is at query3. Basically if you selected two or more checkboxes you will only delete one of the entries. Query3 runs by itself just fine and works the first time. Anyone have any ideas?

View Replies !
Query (dates And Times)
Struggling with a query here.

table name : holidays
fields : holname (format varchar)
holdate (format date 2004-01-01)

The table is populated with all the holidays for the next 5 years. I am
trying to select only 1 of each holiday for the current year, AND if todays
date is past a holiday for the current year, then select the following years
holiday.

For example, today date would return easter, mothers day, etc. AND next
years valentines (because it is past 2004-02-14).
Does this make sense ?

View Replies !
Execution Times/Modules
I am encoutering the following performance problem with php 3.0.16, the latest apache, running with compiled in php_mod on a sun ultra1.

i have written a set of php class files, which i use througout the site. the execution time of my skripts is very fast, but it seems that the class files i require (about 30k) slow down the performance enourmously. when i benchmark the site using ab with a php file which simply does html output and nothing else. its really fast, if i require my class files and do nothing else than the html output, the performance drops incredibly (no db connection, no computation, nothing)

i always thought that php_mod also keeps a byte code for the required pages in memory (like for example perl_mod). but now i doubt that. it seems that every request, forces php_mod to reload and recompile (or totally interpret ?!?!??) every file needed. is there anyway to increase performance when using multiple phpclass files? I know of conditional includes, but thats IMHO not a pretty solution.

View Replies !
How Many Times A File Has Been Downloaded
I'm looking for some help on implementing a script that will keep track of how many times a specific IP address and/or user has downloaded a file. Any ideas where I can start this search?

View Replies !
Looping? Don't Know How Many Times Needed?
I want a page to print out a lineage table. So, I have the first dragon's mom ID and dad ID, and then I want it to print out that dragon's mother's mother ID and dad ID, and that dragon's mother's mother's mother ID and dad ID, and so on.

View Replies !
Find A Way To Subtract Two Times
I have spent the last few hours trying to find a way to subtract two times, none of the information that I find seems relevant to what I am trying to do...  A technician is filling out a form, posting the time he logs in and the time he logs out, both of which are being recorded in the database.

But prior to the UPDATE, I need to calculate how many hours he was there, e.g. 2.5 hours, then post that also ... then multiply that times his hourly rate and post that also, which ultimately gives the times he was there, how many hours total and how much his time cost against the work, but I think I'm getting off subject... here's my latest failure for code. Code:

View Replies !
Run Code Every 3 Times In A While Loop
I need a certain block of code to run inside a while loop every 3 times its run but I cant figure out how to write it. I came up with a sort of static fix but I need it to be more expandable. Here is what I've got inside the loop so far.

if ($num == 3 || $num == 6 || $num == 9 || $num == 12 || $num == 15 || $num == 18 || $num == 21 || $num == 24 ect...) {
echo('</tr><tr>');}

The loop output 3 profiles with images and names on each line and then goes to a new line for the next 3 using tables. Is there a way to write this so it runs every 3 on to infinity and not have to input the numbers manualy?

View Replies !
Number Of Times To Hit MySQL
Is it standard or unadvised to put a mysql entry into a loop where it could potentially loop a couple hundred times?

View Replies !
Session_start() Is Run For Multiple Times.
is it ok if the session_start() is run for multiple times. if run in multiple times what will happen?

View Replies !
Using Same Recordset Multiple Times
I've created a recordset and want to use it to populate the contents of multiple drop-down menus. To do this once is easy enough, but the number of drop-down menus is created dynamically based on a number entered on a previous page.

I've done a 'do while' loop to create all of the drop-downs, and nested another 'do while' loop inside the <SELECT> field to populate the contents from the recordset. However, only one drop-down menu populates, the others stay blank.

I've run into similar problems before, and it seems that I can't use the same recordset more than once. Is that correct, or have I made a fundamental mistake? Code:

View Replies !
Display The Number Of Times
Say I have a picture thats a link, or a text link. how would i, in php display the number of times it was clicked. for instance:

*link* hits:# here

btw i sux at php and have like 5 books on it but nothing really sticks. anyone know video tutorials for it? i used a video series for visual basic and became really good.

View Replies !
Quantifier Matches 0 Or More Times
quantifier matches 0 or more times. is this normal to be true or false

preg_match ("/tras*hformers/" , "trashforsmers"); // FALSE (tutorial says it should be true

preg_match ("/tras*hformers/" , "trashformersss"); // TRUE

i'm wondering couse i found one tutorial, and now when i test it looks like it's wrong. i guess the whole pattern must be true AND then after the pattern if any 's' were found it will also be true.

View Replies !
Show Number Of Times
What I am wanting to to is to have a database that has multiple values stored in it and be able to show the number of times a certain value is found in a specific column. For example

A|B|C
-------
1|2|4
2|2|5
5|6|9

the number of times 9 is found in column C is 1.

View Replies !
Addind To A Variable At Specified Times.
Lets say i have a variable --> $count = &#39100;' now every 10 minuts i want $count to increase by 10, for a maximum of 3000. any suggestions on how i can do this?

View Replies !
Script Running 3 Times
<?php
if($page=="" || $page=="Home") {
include("includes/Home.php");
} else {
if(file_exists("includes/$page.php"))

include("includes/$page.php"); 
} else {
include("includes/404.php"); 
}
}
?>

I use this code for including the main pages of my site while keeping the banner and such constant. Code:

View Replies !
Add Two Times Together To Equal A New Time
I am trying to add two times together to equal a new time. I have the following

$Arrive = 03:45:00
$duration = 00:30:00

$depart2 = date("H:i:s", strtotime("+1 hour".$Arrive));

$depart2 would now be 04:45:00

how can I add the duration to this number to give me the final time of 05:15:00 .

View Replies !
Counting How Many Times A Word Is Used
I'm having some trouble counting the number of times the word "[imgstart]" appears in my $text variable. If I could have some help, with a script that can output the amount into a $count variable.

View Replies !
Adding Times / Percentages Etc.
I am trying to do the following add time fields from a db together so that I can work out the total number of hours. The field in the db that I want to add is a TIME field, how do I add this together? When I add then tohether normally such as PHP Code:

$total_time += $row['time'];

I get a integer, how do I solve this?

View Replies !
How Many Times Article Read
how to count number of times particular article read.I am planning to keep next to article title like Number of times viewed : #*$!x .

View Replies !

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