Of Course!
You can use the fopen functions or curl functions depending on what and how
you want to manage the data once you get it.
Look at the manual in both of these sections and it will show you how to do
it.
BTW: What you are talking about doing is building a caching webserver.
Apache
go look at the tutorial for using php with flash to retrieve variables from
a database. it's pretty self explanatory and clear in how/what to do.
-Original Message-
From: Joshua Patterson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 10:35 AM
To: 'PHP'
Subject: [PHP]
There is a header you can send which has a page expires time which will
prevent the posting page from being reposted. Do some research on this and
see what you can come up with.
-Original Message-
From: Clemson Chan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 1:57 PM
www.zend.com
-Original Message-
From: Stephen Craton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 2:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Keeping your published script safe?
Hello,
I have many scripts published at various script sites and I just got a
report of
make the directory outside of the web server root path and create some PHP
routines to display the directory data as you see fit. PHP can see the
entire file store, whereas the webserver can only see data below it's root.
That way you keep security and can also display the data.
-Original
Speed
Accessability
Features
Security
Performance
Simplicity
Reusability
Indexing
Record-Locking
To name a few.
however, in your situation, it's an existing application which is working
great and which no one has any complaints over. If it ain't broke, don't
fix it.
For your next application,
1) Large Includes
200K of includes? Piece of cake! Remember, it is the server that is doing
all of the work, not your clients. The issue is how many requests can your
server simultaneously process and is there enough overhead to do it. With
respect to speed, your server will cache the files
Are sessions domain specific?
What I mean is this.
Suppose I have two websites:
secure.web.com
www.web.com http://www.web.com
and both web sites point to the same set of data.
If I looking at web page http://www.web.com/index.html
http://www.web.com/index.html and have a set of
PROTECTED]]
Sent: Wednesday, September 18, 2002 11:06 AM
To: David Buerer
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP] Sessions /Cross Domain
Domains are specific, and so you do not get the same sesion variables.
here's are
ways around this, but you need control of the content of both servers.
Cheers,
Rob
OK y'all, go ahead and shoot me, but this is what I'd do:
$mystring=enters $56.55 for example;
$mynumber=$mystring+1-1;
$mynumber now equals 56.55 If you want the . to go to, use the other
methods.
-Original Message-
From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
True, but isn't unless just a negated while?
q.e.d.
while ($c==$a OR $c==$b)
{
blabla
exit 0
}
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: unless something...
There
Look into the LIMIT command, it will limit the number of rows in the result
set to the number you specify
-Original Message-
From: bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 7:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: mysql query
function
Justin, you've just asked for a way to restrict the possible number of votes
from any one person to 1, however, you don't want to find out anything about
that person!
Although I certainly understand your position, you either have to get from
them some information specific to the person, like,
(mysql_error());
$row=mysql_fetch_array($result);
$euro =$row[0];
-Original Message-
From: bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 7:50 AM
To: David Buerer
Subject: Re: [PHP] Re: mysql query
Maybe I wasn't clear. The value returned should be called euro
.
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 8:10 AM
To: David Buerer; '[EMAIL PROTECTED]'
Subject: Re: [PHP] basic voting
on 12/09/02 12:12 AM, David Buerer ([EMAIL PROTECTED]) wrote:
Justin, you've just asked for a way to restrict
really quik answer...
yes.
really long answer...
from php manual:
the return() statement immediately ends execution of the current function,
and returns its argument as the value of the function call.
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
SELECT feild1, field2, COUNT([insert field name here]) FROM tables GROUP BY
category,format
--or--
SELECT feild1, field2, COUNT([insert field name here]) as mycount FROM
tables GROUP BY category,format
-Original Message-
From: Chuck Payne [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
Ya' know guys i'm sitting here thinking about this problem because I have
the same problem on one of my sites. A bunch of inpatient stupid users whom
are click happy when they get impatient. Event a 100K upload can take to
long!
I don't like the ASP idea. It's really not a good solution. I'm
I would bet money on the fact that one of your pages doesn't have a session
start in it. Or there is a link which which requires resets the browser and
initiates the creation of new session. I've had some problems before with
javascript and top.window.location redirections that when set to
Reading the users hard drive is impossible from php, but it's really easy
with Java.
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 7:49 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Web based FTP client
Hi Mark,
I am trying to
.
_
Mark McCulligh, Application Developer / Analyst
Sykes Canada Corporation www.SykesCanada.com
(888)225-6824 ex. 3262
[EMAIL PROTECTED]
- Original Message -
From: David Buerer [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Friday
of our
obsession with security we've failed.
-Original Message-
From: Chris Hewitt [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 11:11 AM
To: Mark McCulligh
Cc: David Buerer; [EMAIL PROTECTED]
Subject: Re: [PHP] Web based FTP client
Mark McCulligh wrote:
I know how to browse
I'm using version 6 of IE and Netscape
I'm allowing the user to open/dowload a file from a secure locaiton on our
server. Under Netscape it works great! Under IE, it doesn't work at all.
IE complains about not being able to read from the server.
Anyone know of any workarounds?
here's the
stick the values in an array and use asort() to sort it.
-Original Message-
From: Rodrigo Peres [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 8:30 AM
To: PHP
Subject: [PHP] sort dinamic generated table
Hi,
I have a resume system that put a rank in it resume at runtime.
while($a) { [statments] }
while($b) { [statments] }
while($c) { [statments] }
or
while(isset($a)) { [statments] }
while(isset($b)) { [statments] }
while(isset($c)) { [statments] }
would both work well depending on your particular situation
-Original Message-
From: Richard Black
Here's a question,
Say I have a binary number like this
1101 0100 0110 0110
And I want to pull out of the binary number the third quartet (is that the
right word)
I want to know how to apply the mask
to the number above so that the result would be
Anyone ever seen this error before? What causes it? It happens on a call
to socket_bind after a successful call to socket_listen.
Any ideas would be appreciated.
Warning: socket_bind() unable to lookup host [1001]: Recursion too deep,
stack overflowed. in
clients. After listenfd receives a connection,
// the connection is handed off to a $client[].
-Original Message-
From: Andrew Brampton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 9:42 AM
To: David Buerer
Subject: Re: [PHP] unable to lookup host [1001] error
Show the code
Anyone know why I might get this error?
I was working on development of a socket server several weeks ago and it was
working fine. When I returned to it this morning, I am getting this error:
Listening on port 1482 (sucess message from socket_create)
Warning: socket_bind() unable to lookup
Yes I know it's a PHP list, but I thought someone might have an idea on how
to fixt this problem anyway.
I have a page with (2) iframes. While the source file for the iframes is
being loaded, the iframe shows up as a big white area, similar to a
textarea. How do I make it so this doesn't
I have a bunch of files which need to be kept secure. I need to allow a user
access to them them based on a criteria which I can programmatically
determine.
My question, is how can I allow the user to download or view only one file
on my computer without allowthem to just enter the URL into
Thankyou Robert, THat is a great and easy way to do it.
What if I need to initiate a download to the user?
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 2:06 PM
To: David Buerer
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP] secure files
Hey guys, you're all making this too dificult.
Windows NT, Windows 2000, Windows XP, and even Window 98 all have a built in
schedule utility. On NT, it's accessed via the AT command. In order to use
it, the Scheduler system service must be installed.
Once it's installed, tell it to call the
of
NoWhErMan's statment Since my server in on my local windows machine which
I interpreted to mean that he had control of the the machine. Maybe I was
wrong.
DAvid
-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 6:29 AM
To: 'David Buerer'; [EMAIL
Has anyone bumped into or written a set of good searching routines? I need
to search across one,two, or three fields in an MySQL database in either
exact phrase (easy) or keyword with relavence (difficult.) I'm thinking
something like a google/yahoo style search. I've tried MySQL full text
on BLOB
fields.
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 8:37 AM
To: David Buerer; '[EMAIL PROTECTED]'
Subject: Re: [PHP] Keyword exact phrase search
I only just started getting into this, but it seems that a LOT of the work
is done
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 9:08 AM
To: David Buerer
Subject: Re: [PHP] Keyword exact phrase search
Why would you have text in blob fields?
Justin French
on 16/08/02 1:25 AM, David Buerer ([EMAIL PROTECTED]) wrote:
I'd like to agree. But i've
Try this, it should work great.
$starttag='DIV'
$endtag='/DIV'
$pos_starttag=strpos(strtoupper($origstring),$starttag);
$pos_endtag=strrpos(strtoupper($origstring),$endtag)+strlen($endtag);
if($pos_starttag===False OR $pos_endtag===False) return 0;
$newstring =
on. And the thing is, I use ALL of
them ALL the time ;o)
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:27 AM
To: 'David Buerer'; [EMAIL PROTECTED]
Subject: RE: [PHP] php redirect
[snip]
This is the only way I've figured out how to do
What's ASP
I don't know if and haven't learned it so it couldn't be. After all, how
many programming languages does one need to know??
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:27 AM
To: 'David Buerer'; [EMAIL PROTECTED
John,
You made one comment which is caught my attention:
that's a no go :( Or is there a way of storing common query results?
If the results to a commonly called query are the same for a time period,
than why don't you right a routine that just stores the results into a new
database that
Create a column like.person_id with the auto_incr flag set. Every
record will be given a unique id starting at 1 and incrementing by 1 each
time. Then you can query based on person_id field to get an individual
record
-Original Message-
From: Tyler Durdin [mailto:[EMAIL PROTECTED]]
And Tyler...rest assured you would never be working for me with an attitude
like that. Nor would I ever recommend that you work for one of my clients.
It's not about making as much as you can, it's about making what is fair,
deserved, and reasonable. Someone else said that what we're providing
I can think of many reasons why displaying the pdf in the browser is a last
resort and not a first resort. Especially in situations where the reader is
not installed.
Like Tyler, I would be quite interested to see if anyone has any ideas on
how to convert from pdf to html.
-Original
I've got effectivly a glorified chat server which upon the arrival of a
message thorugh a socket connection goes off and runs a bunch of database
processed. My questions is this: How can I seperate the database
processing into a seperate processor process? I really don't want the chat
server
How to I inovoke a new Thread from the middle of a PHP script?
-Original Message-
From: Paul Maine [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 10:08 AM
To: David Buerer; [EMAIL PROTECTED]
Subject: RE: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processes
You can
it
go_do_this_in_a_new_thread($new_connection_id);
}
What do I put in place of go_do_this_in_a_new_thread()
-Original Message-
From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:01 PM
To: 'David Buerer'; [EMAIL PROTECTED]
Subject: RE: [PHP] Windows NT Server, FORK, SOCKETS
?
-Original Message-
From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:47 PM
To: David Buerer; [EMAIL PROTECTED]
Subject: Re: [PHP] Windows NT Server, FORK, SOCKETS, and seperate processe s
Either exec(), system(), or one of the functions like them (check the
manual
Select TIMESTAMP(date_column) AS mydate
Then when you display it use the date function
DATE('mdY',mydate)
-Original Message-
From: Ragnar [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 4:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Formating datevariables...
I have a
I'm trying to setup a basic TCP server which I will later expand. Right now
I get this error on the loop after it receives data the first time:
Warning: socket_read() unable to read from socket [317]: in
f:\public\www\josiah\josiah2\consultation\chat\test_server2.php on line 43
socket_read()
50 matches
Mail list logo