i wanted to get my server to grab a thumbnail (video capture) of an FLV
using PHP, and ffmpeg-php is not an option (at the moment, can't spare the
possible downtime, many money-making sites involved).
i installed ffmpeg. Fedora Core 4 users try this:
yum install ffmpeg
I went a more circuitous
blackwater dev wrote:
> Let's say I have 100 rows in the database, I need to loop throw them
> ten at a time and for each set grab the max and min ages...I then need
You really want the min/max of just the 10 on screen?...
Okay. [shrug]
At that point you need to use a sub-query -- which is only
Let's say I have 100 rows in the database, I need to loop throw them
ten at a time and for each set grab the max and min ages...I then need
to return a multi-dimensional array of all the ranges...I basically
want to do this but of course this query won't work:
***this is just pseudo code***
I wou
tion to use to grab the page. for the string
>
> http://us2.php.net/manual/en/function.fopen.php
>
> There are some good samples on the page
>
>$dh = fopen("$url",'r');
>$result = fread($dh,8192);
>
> Hope this is what you need.
>
Hope this is what you need.
Warren Vail
> -Original Message-
> From: Adam Williams [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 10, 2004 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] grabbing source of a URL
>
>
> Hi, I don't kno
[mailto:[EMAIL PROTECTED]
> Sent: Friday, December 10, 2004 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] grabbing source of a URL
>
>
> Hi, I don't know what functions to use so maybe someone can
> help me out.
> I want to grab a URL's source (all the code from
Hi, I don't know what functions to use so maybe someone can help me out.
I want to grab a URL's source (all the code from a link) and then cut out
a block of text from it, throw it away, and then show the page.
For example, if I have page.html with 3 lines:
hi
this is line a
this is line b
hi everyone,
im fairly new to php scripting and was having trouble grabing information
from a website.
i have been able to grab information that is in amongst other text (for
example, the word firemaking below)
---
Firemaking
7,386
61
333,575
---
but the number i want to grab is the
* Thus wrote Ashley M. Kirchner:
>
>I have a capture script that runs every 2 minutes and dumps an image
> into a folder. I'm trying to write a script (which will get included in
> another) that will grab the last image in the folder and pass it on.
>
>The images are saved as 'capture.
I have a capture script that runs every 2 minutes and dumps an image
into a folder. I'm trying to write a script (which will get included in
another) that will grab the last image in the folder and pass it on.
The images are saved as 'capture..jpg' where is the
timestamp of the
I've tried this code and it works wonders.
$string = "/tgwedding/users/client1/sites/testgrabid.php";
$thisarray = explode("/", $string);
foreach($thisarray as $item) {
if(ereg('client', $item)) {
$found = $item;
$num = ereg_replace('client', '', $found);
}
}
echo $num;
///
Hi all
Ive been try for sometime now, and too tried googling for an answer, to grab the
STDOUT of a command.
In this case the binary command is readbar
The general output of readbar executed on its own is as so:
Code 39->10005802
IATA 2 of 5->2
IATA 2 of 5->8
1 barcodes found
I b
On Aug 3, 2003, "Micah Montoy" claimed that:
|Anyone know of a way to use a variable that isn't defined until further down
|the script at the top. I have a counter and once everything runs through
|the script, the count is complete, I need to display this at the top above
|the displayed results.
Ok, this is completely off the top of my head, and there is more than
likely a better way, but if you HAVE to do this, then I guess here's an
option:
1. turn on ob (output buffering at the top of the script
2. where you want the counter to be, echo something unique like
[EMAIL PROTECTED]@
3. on
You can't get the intended value from a variable that hasn't been
defined yet, obviously because you haven't given the variable a value.
If you are trying to make something like a counter you may consider one
of the following:
1. Insert the value into a database like MySQL or PostgreSQL,
2. Wr
Anyone know of a way to use a variable that isn't defined until further down
the script at the top. I have a counter and once everything runs through
the script, the count is complete, I need to display this at the top above
the displayed results. I thought about and tried a function but I still
Source all the way...
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original Message-
From: Joel Rees [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 4:36 PM
To: Ow Mun Heng; [EMAIL PROTECTED]
Subject: Re: [PHP] Grabbing info from other Sites
to:[EMAIL PROTECTED]
> Sent: Monday, July 14, 2003 3:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Grabbing info from other Sites
>
>
> Hello
> The only way I can imageine is using curl and doing standard post get
> requests. But this will put you at the mercy of the
> In php, I don't see anything right offhand.
http://www.php.net/curl
--
Joel Rees, programmer, Kansai Systems Group
Altech Corporation (Alpsgiken), Osaka, Japan
http://www.alpsgiken.co.jp
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
> The site really does
> need Login.
>
> The thing is this, I'm developing for an internal site, (My dept) but I need
> to access other dept's site to get info but unfortunately They won't give me
> access to query the db directly. Prefering me to go through the site and
> input accordingly to gra
Hello
Webservices is the use of SOAP over HTTP to bring a Service to the web.
There are a lot more technologies involved like WSDL and UDDI but
basically it is a way of providing the functionality of a
programm/application to the web over a well defined interface. Since it is
an additional lay
Ow Mun Heng <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Mind my ignorance but what is webservices??
hmm... I was wondering that myself...
http://www.w3.org/2002/ws/
A google search on 'Web Services stock quote' returns some interesting
pages.
>
> Cheers,
> Mun Heng, Ow
> H/M Engineering
> West
Hi,
Mind my ignorance but what is webservices??
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 3:28 PM
To: [EMAIL PROTECTED]
Subject: Re:
Hello
The only way I can imageine is using curl and doing standard post get
requests. But this will put you at the mercy of the other dep. since a
change in design may force a change in your logic.
If you can, try to build a separate interface for your app which you can
use to interface the bac
t.com
_
- Original Message -
From: "Ow Mun Heng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 13, 2003 7:43 PM
Subject: [PHP] Grabbing info from other Sites
Hi,
I have this need/want to grab information from sites for my own
usage
pyrighted??)
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original Message-
From: Michael Geier [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 9:47 AM
To: Ow Mun Heng
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Grabbing info from other Sites
assuming the login isn't necessary (which it probably is), you could use
something like Snoopy (http://sourceforge.net/projects/snoopy/) to POST/GET the
required web page and process as required.
Quoting Ow Mun Heng <[EMAIL PROTECTED]>:
> Hi,
>
> I have this need/want to grab information
Hi,
I have this need/want to grab information from sites for my own
usage and wondering how to do it.
Here's an example.
1. Log into finance.yahoo.com (assuming I need to log on)
2. Type the list of shares I want
3. Let Yahoo process it
4. Use PHP or some other scripting languag
ot;Luis Lebron" <[EMAIL PROTECTED]>; "Php-General (E-mail)"
<[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 12:39 PM
Subject: RE: [PHP] Grabbing image information from an html string
> if (preg_match('/(href|HREF)="?(\S+\.(jpg|png))">?/',$
if (preg_match('/(href|HREF)="?(\S+\.(jpg|png))">?/',$line, $matches)){
$filename[] = $matches[2];
}
-Original Message-
From: Luis Lebron [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 7:07 AM
To: Php-General (E-mail)
Subject: [PHP] Grabbing im
Let say I have an html string that looks like this:
Title
foo bar bar fooSome more text.
I would like to pull the image filenames from the html and end up with
something like this
$images=array("image1.jpg", "image2.jpg")
How can I do this?
thanks,
Luis R. Lebron
Project Manager
Sigmatech, In
Try this function, Ijust wrote it for the same purpose. You just need a
unique string in front of the stuff you want, and one after it. You
can usually get a string of code on either end that will do this. The
function will open the URL, find the anchor strings you told it, then
strip them
someone gave me the following expression which uses another program and it
works fine for them... is there something similar with php?
wget --timeout=90 -q -O- http://www.BoM.GOV.AU/products/IDO30V01.shtml | sed
'1,/>Melbourne //;s/<.*//'
thanks,
adam.
"Evan Nemerson" <[EMAIL PROTECTED]> wrote i
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
If the target is in well-formed XML (XHTML is an example), you could use XSLT
to say 'i want the third column of a particular row - in this instance,
Melbourne'. However, since few people actually adhere to standards, you're
probably going to need a
I have the following website that i want to grab info from:
http://www.bom.gov.au/products/IDV60034.shtml
Say I wanted the current temperature for Melbourne from this table, what
line of code would I need to tell it to get that info - ie, an ereg()
expression...
i'm wondering whether there are w
If you're using MySQL:
mysql_insert_id
If you're using MSSQL, you need to execute SELECT @@IDENTITY right after
your insertion operation. The result will give you the ID of your last
insertion. This won't work well if you're doing a bulk insert, though.
On Mon, 2002-10-07 at 15:46, Jason Young
e.com/'));
?>
PHP.net example always RTM...
B i g D o g
- Original Message -
From: "Kelly Meeks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 1:53 PM
Subject: [PHP] grabbing content of a web page...
Howdy,
I know there has to be a
fopen('http://www.yahoo.com","r";);
---John Holmes...
- Original Message -
From: "Kelly Meeks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 3:53 PM
Subject: [PHP] grabbing content of a web page...
Howdy,
I know
File() or fgets()
-Original Message-
From: Kelly Meeks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 12:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] grabbing content of a web page...
Howdy,
I know there has to be a way to grab output of an url on another site?
Let's sa
Howdy,
I know there has to be a way to grab output of an url on another site? Let's say you
wanted to get the output of yahoo.com (just for example)?
Is there any way you can stick that into a variable, and then manipulate it?
Thanks,
Kelly
ckson" <[EMAIL PROTECTED]>
> To: "1LT John W. Holmes" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, May 06, 2002 3:07 PM
> Subject: Re: [PHP] Grabbing ALL $_POST var at once.
>
>
> > John ---
> > Thanks for your re
]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 3:07 PM
Subject: Re: [PHP] Grabbing ALL $_POST var at once.
> John ---
> Thanks for your reply, but let me rephase the question.
> Let say I have a form with 50 fields on it do I have to:
>
> echo $_POST['one'
D]>
To: "1LT John W. Holmes" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 1:07 PM
Subject: Re: [PHP] Grabbing ALL $_POST var at once.
> John ---
> Thanks for your reply, but let me rephase the question.
> Let say
On Mon, 6 May 2002, David J Jackson wrote:
> Thanks for your reply, but let me rephase the question.
> Let say I have a form with 50 fields on it do I have to:
>
> echo $_POST['one']
>
> .
> .
> echo $POST['fifty']
>
>
> Or should I, could I use extract()?
You can use extract if y
John ---
Thanks for your reply, but let me rephase the question.
Let say I have a form with 50 fields on it do I have to:
echo $_POST['one']
.
.
echo $POST['fifty']
Or should I, could I use extract()?
Thanks in advance,
David
p.s I said it was UGLY :)
> ?>
>
> If that's too ha
Rasmus Lerdorf wrote:
> See either extract() or import_request_variables() in the manual.
Rasmus --
I appreciate you taking the time to reply to my posting.
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> $From = $_POST['from'];
> $Two = $_POST['two'];
> $Subject = $_POST['sub_ject'];
> $Comments = $_POST['comments'];
> echo "$From";print "\n";
> echo $Two;print "\n";
> echo $Subject;print"\n";
> echo $Comments;print "\n";
> ?>
>
Why do you waste time assigning a variable to a variable...Is it
On Mon, 6 May 2002, David J Jackson wrote:
> The code below works (but its ugly), but I know there has to be a why to
> grab all the $_POST[] at once and then parse them out?
>
> Isn't there a why for me to access them directory without reassigning them?
They're just variables. You can print th
See either extract() or import_request_variables() in the manual.
-Rasmus
On Mon, 6 May 2002, David J Jackson wrote:
> The code below works (but its ugly), but I know there has to be a why to
> grab all the $_POST[] at once and then parse them out?
>
> Isn't there a why for me to access them di
The code below works (but its ugly), but I know there has to be a why to
grab all the $_POST[] at once and then parse them out?
Isn't there a why for me to access them directory without reassigning them?
TIH,
David
$From";print "\n";
echo $Two;print "\n";
echo $Subject;print"\n";
echo $Commen
Hi,
iam trying to grab info from a webpage.
This snippet is the part that does the actual searching...
$site = "www.whatever.com/something.html";
$open = fopen($site, "r");
$search = fread($open, 2);
fclose($open);
$search = ereg("$begin(.*)$end", $search, $content);
What i find strange is
parse the html (oh my god).
Regards
Joseph
-Original Message-
From: Donny Yap [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 September 2001 4:55 PM
To: Joseph Blythe
Subject: RE: [PHP] Grabbing dynamic pages
Yes,
This shouldn't be too hard to do; work out what type of data it is you
lto:[EMAIL PROTECTED]]
Sent: Friday, 7 September 2001 3:02 PM
To: Joseph Blythe; [EMAIL PROTECTED]
Subject: Re: [PHP] Grabbing dynamic pages
On Fri, 7 Sep 2001 14:44, Joseph Blythe wrote:
> Hey all,
>
> I got a bit of a problem I need to be able to grab info (which has been
> approve
u","r";);
Thanks again,
Joseph
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 September 2001 3:18 PM
To: Joseph Blythe
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Grabbing dynamic pages
This script worked fine for me here:
http://www.asx.com.au
On Fri, 7 Sep 2001 14:44, Joseph Blythe wrote:
> Hey all,
>
> I got a bit of a problem I need to be able to grab info (which has been
> approved) from the Australian Stock Exchange Website (www.asx.com.au)
> all they say about this in the information they sent me is:
>
> "To obtain your share pri
This script worked fine for me here:
http://www.asx.com.au/scripts/nd_ISAPI_50.dll/asx/research/CompanyInfoSearchResults.jsp?searchBy=asxCode&allinfo=on&asxCode=asx&companyName=&principalActivity=&industryGroup=0","r";);
while(!feof($fp)) echo fgets($fp,1024);
fclose($fp);
?>
Firewall in the way
Thanks all (c:
> Why don't they make this available via XML? Parsing HTML is painful.
Was my exact question to them (c:
> That just shows a chart. How are you supposed to parse anything out of
> that?
Hehe I provided the wrong url should something like:
http://www.asx.com.au/scripts/nd_ISAP
> "To obtain your share price data you will need to get your IT department
> to write a java object or a com active x object to strip out the unnecessary
> html so that you are just left with your share price information."
Why don't they make this available via XML? Parsing HTML is painful.
> I
Hey all,
I got a bit of a problem I need to be able to grab info (which has been
approved) from the Australian Stock Exchange Website (www.asx.com.au) all
they say about this in the information they sent me is:
"To obtain your share price data you will need to get your IT department
to write a j
I want to open a particular directory that stores images and I want the images to be
added to drop down box, was wondering if someone could help me with some code for
that. I want to set it up this way so that people can just upload images there and
they would be available on each load of the
$data = file("myfile");
$data = array of the lines from myfile ( they still contain the newline
character )
Wagner Tomy
Editus Luxembourg S.A.
- Original Message -
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001
I am grabbing lines of a file using:
$buffer = fgets($fd, 4096);
How can I grab the line up to \n or does this do it? Like if the line is only a few
characters, it will only grab up to \n?
And if the line up to the \n is a huge message will I still be able to grab all of it
with the 4096?
J
I have a commerce program that can send arguments to other programs via
the command line. Perl can grab those with $ARGV[0], $ARGV[1]...and so
forth. As far as I can tell, PHP can't grab these without a shell
script picking them up and explicitly sending them to a PHP script.
is there some othe
I'm trying to get the number of a file where the filename=
article00x.html.
The dir looks like: 2001/article001.html, article002.html...
Currently I'm grabbing it using the following code:
$path_info = preg_split("/\//i", $PHP_SELF,-1, PREG_SPLIT_NO_EMPTY);
$current_file = end($path_info);
$curre
if register_globals setting is on (in php.ini) then $foo will be
available, otherwise use the predefined variable HTTP_GET_VARS :
index.php?foo=blah
print $foo;
print $HTTP_GET_VARS['foo'];
http://www.php.net/manual/en/language.variables.predefined.php
http://www.php.net/manual/en
PROTECTED]]
Sent: Sunday, April 29, 2001 1:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP] grabbing variables from the query string
Hi,
How do you grab variables from a query string in a URL?
I've used this with ASP and it would be done as follows:
firstName = request.querystring("fName&quo
Hi,
How do you grab variables from a query string in a URL?
I've used this with ASP and it would be done as follows:
firstName = request.querystring("fName")
I've tried different variations of this in my PHP pages but I can't seem to
get it to work. I've looked in the PHP manual but can't fin
Hello Dallas,
(DK == "Dallas Kropka") [EMAIL PROTECTED] writes:
DK> (Note: I know about using $HTTP_REFERER But how can I take that
DK> info and strip it, if that is what I need to do?)
I've never done this, but I think the basic idea would be to determine
what the query strings of each spide
Ok, I need either a tutorial or someone who has done so in the past to tell
me how to do this I want to log and reference the key words used to find
my site from referring search engines... like so:
AltaVista:
211 3d studio max tutorials
81 body jewelry
69 matches
Mail list logo