On Tue, 18 Feb 2003 13:35:14 +, you wrote:
> i wanna make an internal site search, i wanna search my internal html
>pages and php pages..and i have no clue how to do thatany help!!!
Choices
1. Embed a Google search that only searches within your site. Eg
http://www.google.com/searc
On Tue, 18 Feb 2003 14:19:16 +, you wrote:
>On Tue, 18 Feb 2003 13:35:14 +, you wrote:
>
>> i wanna make an internal site search, i wanna search my internal html
>>pages and php pages..and i have no clue how to do thatany help!!!
>
>Choices
>
>1. Embed a Google search that only se
On Tue, 18 Feb 2003 17:38:28 +0100, you wrote:
>At last I got safe-mode turned off (Gott sei dank!). But I'm still having a
>problem. I can only read Mysql DBs. I can not open a DB to update.
You have to connect to MySQL with a username and password.
First check that the user you're connectin
On Tue, 18 Feb 2003 09:23:52 -0800, you wrote:
>Greetings all,
>
>Is there an easy way to pull out the schema of a MySQL for viewing??
You want the tables and the relationships between them? Not easy to get
the links because of the lack of foreign keys in MySQL.
If you want a table, "DESC tablen
On Tue, 18 Feb 2003 13:10:33 -0500, you wrote:
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 18 Feb 2003 16:02:59 -0500, you wrote:
>http://www.psikon.com/vartest.php
>http://www.psikon.com/vartest.phps
>
>how can I get rid of that null character or am I forced to use sub_str in
>this case?
You changed the string to be "abcd\0f" on line 8. You didn't remove the
character, you set
On Wed, 19 Feb 2003 12:57:42 +, you wrote:
>
>I wonder if it is possible to retrieve emails from an email account
>say in hotmail, yahoo, or any other email provider.
>
http://people.freenet.de/courierdave/
http://httpmail.sourceforge.net/
http://www.geocities.com/ballarke/Projects/HttpMail/H
On Wed, 19 Feb 2003 13:56:49 +, you wrote:
>One questions though - if I delete a topic, I need to delete all of its
>child messages and all of the child comments from each message. What is
>the best technique to do this? This has been driving me up the wall as
>it seems to involve some kind
On Wed, 19 Feb 2003 14:16:47 +, you wrote:
>>Otherwise, yes, in MySQL you have to recurse down the tree deleting
>>comments.
>How would I go about recursing down the tree? Has anyone done this before?
I have, but it's been a while. Something like (pseudo-code) .
def delete_comments(a) :
On Wed, 19 Feb 2003 14:59:27 +0100, you wrote:
>I'd like when a customer fill in a form to recover his IP address, is there
>a PHP function to do that ?
echo ($_SERVER["REMOTE_ADDR"]);
Be warned: This is NOT a reliable way to identify a user. These days you
are probably /more/ likely to get the
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote:
>I'm using PHP & MySQL to generate a RTF document. I use this header:
>
>header("Content-type: text/rtf");
>
>Of course, the header scares the poor browser. The browser bawks and says, unknown
>file type, and instructs the browser to save the file.
>
On Thu, 20 Feb 2003 06:20:26 -0500, you wrote:
>Is there a way to encrypt a URL that will still work when clicked on, BUT
>not show the customer where the file actually resides?
It's not possible to "encrypt a URL" and leave it readable. URLs are
plaintext.
>Is it also possible to have it expir
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote:
>I'm using PHP & MySQL to generate a RTF document. I use this header:
>
>header("Content-type: text/rtf");
Sorry, I should have mentioned
header("Content-Disposition: attachment; filename=myfile.rtf");
as well. Rather easier :)
--
PHP General Ma
On Thu, 20 Feb 2003 14:41:09 +0100, you wrote:
>Im have a "script.php" which needs to be able to tell if it has been
>included in an .shtml file or not...
>
>e.g. if included is true: do this, else: do something else
>
>I could ofcourse do something like this:
>
>
>
>but it would be nice to totall
On Thu, 20 Feb 2003 11:33:19 -0500, you wrote:
>Is it possible to display the contents of a given folder, list them , and
>make them links?
http://www.php.net/manual/en/function.readdir.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 20 Feb 2003 17:44:51 +, you wrote:
>When using a php script to pull recorda from a db how can I cut the records
>at 1/4 of the total and arrange them alaphabetically according to a certain
>field? Thanks in advance.
http://www.mysql.com/doc/en/SELECT.html
LIMIT and ORDER BY.
This
On Fri, 21 Feb 2003 08:05:47 -0800 (PST), you wrote:
>Where can I set the session data size?
AFAIK, the only limit to the amount of data stored in a session is the
filesize limit of the underlying OS. What's the problem exactly?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Fri, 21 Feb 2003 10:37:42 -0700, you wrote:
>>Quoting Steven Kallstrom <[EMAIL PROTECTED]>:
>> I am creating dynamic drop down lists... I would like to have an
>> option appear in the drop down list, but have it greyed-out and not be
>> selectable... I know you can disable selects, but I
On 22 Feb 2003 03:28:22 -, you wrote:
>Let's say I need to take one of 20 actions depending on a form selection. I
>could use a switch statement with 20 cases, but I could also do something
>like:
>
>// Pretend this comes from a form
>$formchoice = "mars";
>
>
>$response = array(
> "mars" =>
On Sat, 22 Feb 2003 15:25:36 +0300, you wrote:
>I need forward a html file in my php.
>
>If I use include, it comes a part of .php result. In the navigation window
>shows that myscript.php
>
>But I want to show that destination.html.
Not absolutely sure what you're asking for, but I think you wan
On Sun, 23 Feb 2003 10:30:27 -0600, you wrote:
>1. Have the counter dump visitor info to a text file, then run a cron job on
>that nightly to process the data and perform a full analysis.
Consider what will happen when two people hit the counter at exactly the
same time. You'll have to code to de
On Sun, 23 Feb 2003 18:55:06 -0500, you wrote:
>Could someone tell me why this code prompts a parse error. I have tried it
>several different way. The statement is called from within a function:
>
>print "action=\"$_SERVER['PHP_SELF']\">\n";
echo ('' . "\n");
works for me (moved the variable out
I suspect this can't be done in PHP. However...
Is it possible to pass additional parameters to the callback function
used by array_filter()?
I guess I'm looking for something functionally equivalent to this Python
code:
from string import count
list = ('apple', 'avacado', 'banana', 'blueberry'
I wrote a simple function to randomize the order of an array. In
pseudo-code, it looks like this :
def _array_rand (a) :
for i = 0 to len (a)
j = rand (len (a))
temp = a[i]
a[i] = a[j]
a[j] = temp
return(a)
Can anyone tell me if I'm missing the obvious here
On Mon, 3 Mar 2003 14:00:43 -0500, you wrote:
>Maybe I'm off my rocker, but I don't see how this can't work. I'm trying to validate
>an ICQ number, and assuming a valid one is between 7 and 9 numbers. My line of code
>is this:
>
>if(ereg("^[0-9]{7,9}$", $_REQUEST["icqnumber"])) {
>print("a-o
On Mon, 03 Mar 2003 13:09:39 -0500, you wrote:
>Anyone know of any pre-built modules or whatnot that provide some news
>content and/or links and captions via PHP/MySQL that can be integrated with
>minimal disruption to a site? (A prerequisite being that it acts legally in
>terms of gathering t
On Mon, 03 Mar 2003 14:50:00 -0500, you wrote:
>I thought the code below the header() redirect would not actually be
>executed unless the user was logged in and allowed to proceed. Is this how
>PHP is supposed to work? Is there any way to prevent the script from
header() isn't a goto - it just ou
On Mon, 03 Mar 2003 12:04:37 -0800, you wrote:
>I have a database that holds a start date and an end date and I have a form
>with a start date and an end date. The report would be to get everything in
>the database's date ranges that overlap the form's date range. I am having
>trouble figuring out
On Tue, 04 Mar 2003 18:32:33 -0700, you wrote:
>I know, it can't be done in PHP. That's not exactly what I'm here
>for. I have a client who would like to redirect people to a polite
>'upgrade your browser' page whenever people visit his site (which has
>been developed in PHP no less). My
On Thu, 13 Mar 2003 09:13:35 -0500, you wrote:
>Then split the variable where there is a "S". The problem showed up when
>there is another "S" in the field. I only want to split the first "S" at the
>beginning of the field. Isn't there an additional value to add to the split
$line = 'S12345';
if
On Tue, 1 Jul 2003 15:41:47 -0700, you wrote:
>What would the best way to rotate text 90 degrees? Using php's image
>generator? Some fancy HTML I don't know about? Or something else?
CSS
http://www.ssi-developer.net/css/vertical-text.shtml
But as to browser support *shrug*.
--
PHP Gen
On Mon, 7 Jul 2003 10:18:04 -0700, you wrote:
>if (isset($theme)) {
> print("Current theme is $theme");
> require "content/header_$theme.php";
>} else {
> print("$theme");
> require "content/header.php";
>}
>
>now one would think that if it didn't return true that the else
>statement wouldn't
On Mon, 7 Jul 2003 17:36:26 +0100, you wrote:
>I want to write a function (as I have written in several other languages) that
>obtains it's arguments dynamically (using func_get_arg()) and then assigns to that
>argument. Think of the way that scanf() works -- that sort of thing.
>
>I have distille
On Mon, 7 Jul 2003 21:07:14 +0100, you wrote:
>check sessions
>if session is not set
>check cookie
>if cookie is not set
>checkip
>if ip is not set
>do a reverse ip check
>if that too comes clean then allow the person a vote
>
>as you can see i am trying my best to make sure that the visitor only
On Mon, 7 Jul 2003 23:37:58 +0100, you wrote:
>On Mon, Jul 07, 2003 at 06:20:42PM +0100, David Otton wrote:
>> On Mon, 7 Jul 2003 17:36:26 +0100, you wrote:
>>
>> >I want to write a function (as I have written in several other languages) that
>> >obtains
On Tue, 8 Jul 2003 09:35:10 +0100, you wrote:
>> Hello, i need a function that gets a internal file say news.php, and
>follows
>> the urls from its copied location,
>>
>> say if i am in
>> /pages/
>> and i need a file from
>> /pages/php/wow
>>
>> i put
>> include('php/wow/news.php')
>> But the new
On Wed, 09 Jul 2003 07:00:38 -0500, you wrote:
>I've got a problem. I have a form that the user fills out and then
>hits submit on and it sends an e-mail. My problem is that I have one
>AOL user that claims that when ever he goes back to the form, it
>doesn't present the form - it just sends the
On Wed, 9 Jul 2003 19:02:21 +0930, you wrote:
>can you use your windows logon as set it as a variable in php??
>
>eg I log onto a windows machine using brenton can i use a php script to set
>that as a variable, I have seen a similar type function before but i have no
>idea how it works, I know win
On Fri, 11 Jul 2003 00:53:32 -0400, you wrote:
>foreach ($profileArray[$i][attributes] as $key => $val) {
> $singleProfileHTML .= $key . "=\"" . str_replace("'", ''', str_replace('"',
> '"', $val)) . "\"\n";
>}
>
>The parsing error occurs in the "$singleProfileHTML.." line. I'm completel
On Sun, 13 Jul 2003 13:32:00 -0400, you wrote:
>The upload process, already collects info on file types when you upload.
> From the manual ->
>
>> $_FILES['userfile']['type']
>>
>> The mime type of the file, if the browser provided this
>> information. An example would be "image/gif".
>>
>
On 13 Jul 2003 17:01:24 -0400, you wrote:
>I'm trying to replace newlines with something else. For this example
>I'll use as the thing to replace a newline with. This is what I
>tried and it doesn't work.
nl2br() in the specific case
>$article = str_replace("\n", "", $article);
>
>What am I d
On 13 Jul 2003 17:27:04 -0400, you wrote:
>Perhaps. When getting text from a form field, what is substituted for a
>newline (i.e. when someone hits enter).
You can work it out for yourself. Run over the string, displaying each
character as it's ASCII equivalent with ord(). Eg
for ($i =
On Mon, 14 Jul 2003 00:24:03 -0400, you wrote:
>Looking for opinions. Can a spoofed uploaded file hurt a script or a
>webserver??
>Reason why Im asking is because, I looked over the magic.mime file on my
>server, and I see that it
>doesn't support flash files (I may be wrong), of which I curren
On Mon, 14 Jul 2003 12:04:54 +0200, you wrote:
> if ($user!='monganl') is what I have
>
>this is what I want to do
> if ($user!='monganl' or 'wilsonma')
>
>what would be the proper format for this!
if ($user != 'monganl' || $user != 'wilsonma')
however, this condition would never fire, as $user
On 14 Jul 2003 13:11:11 +0200, you wrote:
>Anyway, as you can see my problem lies with the SQl when the last
>element is reached, then it should NOT add another "and" or "or".
The short answer is "implode()".
>Any help with my "logic", ie, how do/would you guys do this?
if ($_POST[any_all] == "
On Tue, 22 Jul 2003 17:08:50 -0400, you wrote:
>I am trying to count in mySQL the number of entries in the field "day" where day=2 or
>3.
>
>Then I want to check just to see if that returned a value greater than 0 or not.
>
>I am using the code below, but having a problem, I keep getting 0 as th
On Thu, 31 Jul 2003 15:38:41 -0500, you wrote:
>I am having problems while transfering information to another page. I
>am using $PHP_SELF and I am getting errors here is a bit of code so you
>can see what I am saying:
>
>echo "$file\n";
>
>This is what the browser is saying...
>Notice: Undefine
On Thu, 31 Jul 2003 20:26:25 -0400, you wrote:
>Does anyone know any headline news retrieving script/library specially
>something able to check with several news sites? I'm planing to roll my own
>but I want to see different approaches.
RSS.
The BBC (for example) have RSS feeds, and most journ
On Sun, 3 Aug 2003 21:51:53 -0400 (EDT), you wrote:
>Im using PHP to write to XML files, but I am having some problems. A lot
>of users are cutting and pasting content from text editors like word,
>which uses odd quotation marks, dashes, etc. which PHP writes to the XML
>file, and then the XML par
On Sun, 10 Aug 2003 22:11:09 +0100, you wrote:
>I have a sql statement which brings about 15 records... inside the while
>loop i am trying to get data from another table by passing an id, the
>problem is i am only getting the first record .. not the whole 15 records..
>
>any suggestion??
>
>functi
On Sun, 10 Aug 2003 10:50:03 -0400, you wrote:
>In a language that I used to program in - for development we used to be able
>to make a function that basically just executed everything inbetween:
>
>Print "This is html printed" Print "this is more
>code";
>
>
>So basically everything in between h
On Thu, 7 Aug 2003 10:59:01 -0500 , you wrote:
>Thank you for your reponses. The problem is there are thousands of spots on
>the plot.
>The locations are random.
This may be one of those "you can't get there from here" problems, and
you'll have to rethink the presentation of your data. What's th
On Sun, 10 Aug 2003 17:32:21 +0800, you wrote:
> I have this peculiar problem, my header
>
>header( "Refresh:2;url=$g_prog_path/$l_refresh_url" );
>
>is set up correctly to be the FULL pathname. It works on some PC but now on
>some others. I'm using IE on win98/2000. The offending one is IE6
On Wed, 6 Aug 2003 11:33:54 -0500, you wrote:
>Basically in the class I have methods that perform a task, and return true
>on success, or false on failure. Easy enough. If it returns false however, I
>want to display errors for the user. The best way I can think of doing this
>is adding a member v
On Thu, 7 Aug 2003 02:17:21 +0200, you wrote:
>> for some reason over 90% of all posters to this list has been
>> > blacklisted by spamcop...
>>
>> And how do you know this?
>
>I use mailwasher pro which queries spamcop for all mail i recieve and
>automatically blacklists it so i wont have to both
On Wed, 13 Aug 2003 10:54:58 +0200, you wrote:
>
> I want to choose a file at random from a
> directory which adheres to certain naming scheme.
> I can't get it to work. It's probably something
> simple...Here is a relevant snippet:
>
>http://www.php.net/)
To unsubscribe, visit: http://www.p
On Sun, 10 Aug 2003 18:04:00 -0400, you wrote:
>First of all, I understand the argument about having a testing, development
>and live servers, however, in the real world not every client can afford
>that hardware and it is not always feasable for smaller websites to have all
>the equipment.
The
On Wed, 13 Aug 2003 16:03:43 +0530, you wrote:
>Thanks for the message. Actually I tried only html files in the beginning.
>Let me explain my problem.
>
>I want to open a new window in a link with a function as
>function newwindow()
>{
>window.open("/home.php?userid=user1","Homepage");
>}
Th
On Wed, 13 Aug 2003 14:18:13 +0530, you wrote:
In your first post you say
> When go to a new page from login page the address bar has
>localhost/regsuccess.php?password="ASD"
But in your second,
>Method Not Allowed
>The requested method POST is not allowed for the URL /products.html.
On Fri, 15 Aug 2003 00:20:58 +0200, you wrote:
>Hi,
>I am thinking of making a program for personal use which does a very simple
>thing, just displays listings under categories,
>eg:
>under main category "Auto" there would be "cars","bikes" etc
>under "banking" there would be "financing","loans"
On Sat, 16 Aug 2003 07:58:27 +0200, you wrote:
>I have folowing function which they are a member in a class.
>
>function foo(){
>something
>}
>
>function zoo(){
>something else
>}
>
>
>and i have a array such:
>
>$test = array(1=>foo,2=zoo);
>
>and i want to call the fuction foo() and zoo somethin
On Sun, 17 Aug 2003 15:47:04 -0400, you wrote:
>I'm trying to take a paged result set and divide it into two chunks for
>displaying on the page. Basically making something that looks like a typical
>thumbnail gallery. I'm limiting my result set to 6 records and want to
>display it as 2 rows of 3 c
On Sun, 17 Aug 2003 23:13:24 -0400, you wrote:
>I was wondering.
>http://www.php.net/date
>gives me/redirects to:
>http://www.php.net/manual/en/function.date.php
>
>How do they do that?
>What $_post[??] is that? Or is it a sevrer (Apache, I suppose?) thing?
I don't know how php.net does it, but I
On Mon, 18 Aug 2003 08:03:25 -0400, you wrote:
>How do I remove empty array values?
That could mean a lot of things. I'm going to assume you have a simple
indexed array and want to remove any entries where array[index] == FALSE,
and reindex the array.
The most elegant way is to copy all the valu
On Tue, 19 Aug 2003 08:15:00 -0500, you wrote:
>I will definitely agree that there are a few inconsistencies in the
>function naming... more than likely due to the many many contributors,
>and a lack of strict naming conventions.
My pet hate:
bool array_walk (array, function)
array array_map
On Wed, 20 Aug 2003 00:25:32 +0200, you wrote:
>is it possible to remove an element of an indexed array such as this exemple
> $A = array('a', 'b', 'c', 'd', 'e', 'f');
>in a way that we can optain this result :
> $A = array('a', 'b', 'd', 'e', 'f');
>
>something like that perhaps ?
>a
On 20 Aug 2003 15:11:26 +0200, you wrote:
>i'd like to use full power of Excel.Sheet COM object. Does anybody know
>where can I find full documentation of Excel.Sheet COM object ?
Uh... MSDN?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odeopg/html/deovrworkingwithofficeappli
On 20 Aug 2003 09:57:20 -0500, you wrote:
>I've seen this a few times in some code examples...
>
>XXX::XXX
>
>What do the 2 colons signify?
Static method of an object.
Calling a method of a class without first instantiating an instance of the
class.
/* Class A has method B */
cl
On 20 Aug 2003 11:31:02 -0400, you wrote:
>On Wed, 2003-08-20 at 11:11, Curt Zirzow wrote:
>> * Thus wrote Damian Brown ([EMAIL PROTECTED]):
>> > www.phpexpert.org
>> > Programming Help
>> > and General Programming Topics
>>
>> Is this a joke?
>
>Looks like an email harvester. Why does it need an
On Thu, 21 Aug 2003 16:12:16 -0400, you wrote:
>This time, without a period. For example, if I get a '1', I would like to
>format it to be '01' in two digit.
printf ("%02d", 1);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 23 Aug 2003 15:06:32 +0200 (CEST), you wrote:
>In my mysql db i have a colum called names;
>
>In names their are:
>
>Frank
>Frank
>Bob
>Alice
>Bob
>Alice
>Jim
>Alice
>Frank
>
>I want to make a random selection (max 3 value's for example).. Only it may not
>produce two times the same name.
On Sun, 24 Aug 2003 14:42:01 +0200, you wrote:
>I have a mailing script that sends individualised mails to users(some
>users even get more than one mail).
>I have a template html mail file. I individualise this by using
>str_replace function.
>It is really slow.
>Can anyone point me to some perf
On Sun, 24 Aug 2003 15:38:13 +0100, you wrote:
>Second tip is that sprintf() should be faster than str_replace(). Compare:
>
>$text = "Hello %s";
>$name = "John";
>
>echo (str_replace ("%s", $name, $text));
>echo (sprintf ($text, $name));
Thinking about it, straight concatenation should be faster
On Sun, 24 Aug 2003 14:54:41 -0400 (EDT), you wrote:
>I'm building a small web application for a friend using PHP. He'd like to
>use MS Access to keep the data in, and update the data on the site by FTP'ing
>Access files he edits on his machine up to the web host.
>
>The web host is unix-based (F
On Tue, 26 Aug 2003 11:48:22 -0700, you wrote:
>I want to password protect a directory with a .htaccess file. But i don't
>want to use the (ugly) browser popup login window.
>
>Is there a way that php sends the password/login data to apache so that the
>browser popup won't show up?
Chapter 16 in
On Tue, 26 Aug 2003 08:44:59 -0700, you wrote:
>I have an application that consists of some 30 php modules. Each one links
>to another, as you can imagine. How can I create a security mechanism that
>only allows the modules in my system to be called from one-another? I do
>nto want any of the
On Fri, 21 Mar 2003 22:49:05 +0100, you wrote:
>I am currently trying to understand how to place content on a different site
>without giving away my code. SOAP seems to be the solution. I am absolutly
First off, I have to say this is a social problem, not a technical one.
If you're worried about
On Sat, 22 Mar 2003 09:34:03 -0500, you wrote:
>When validating user input to remove quotes and other characters that
>can be used for hacks, does one need to be concerned about the high-
>ASCII characters which have 'quote' meanings (e.g. 0x91 - 0x94). I
>presume not, but just wanted to verify
On Sat, 22 Mar 2003 09:31:14 -0500, you wrote:
>First off, there are multiple encryption methods out there -- PHP
>crypt() and the mcrypt functions, and MySQL encrypt(), for encryption;
>and the md5 etc. functions for hashing. Is there any information on
>best practices here, particularly in u
On Sat, 22 Mar 2003 17:50:30 +, you wrote:
>OK, I can bypass my oversight by stripping out apostophes from the
>variable values. There has to be a better way please.
http://www.php.net/manual/en/function.mysql-escape-string.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
On Sat, 22 Mar 2003 12:59:19 -0800, you wrote:
>Yes I know but my aim is to make a php script which checks automaticly
>if the php and the shell functions I need are available.
If you look at the output of phpinfo() you'll see a whole bunch of
variables that are set differently depending on the
On Sun, 23 Mar 2003 14:09:26 +0100, you wrote:
>And please note that I've seen that it happens only when
>$row_Recordset1['Prezzo'] > 1000
What's the largest number you can get from the table? Exactly? 1000 is
suspiciously close to 1024. Is it possible that your table is using a
smaller data type
On Sun, 23 Mar 2003 10:51:43 -0500, you wrote:
>My question was about input. What happens if someone enters an ASCII
>147 or 148 in a form field, for example? Will PHP interpret them as
>quotes? Or is only an ASCII 34 seen as a quote. If the former, will
>addslashes() add shashes to them?
On Sun, 23 Mar 2003 12:15:25 -0500, you wrote:
>Not sure why things like this are so difficult. I have an authentication
>script which allows users access to certain pages based on their user level.
>If they click on a link to go to a page their not allowed to, I want to be
First, why are the pa
On Sun, 23 Mar 2003 21:21:39 +0100, you wrote:
>The following short script retrieves a file over HTTP:
>
>$url = 'http://www.example.com/';
>implode('',file($url)); // or file_get_contents()
>
>Now I'd like to find out which file was really retrieved, for instance
>http://www.example.com/index.ht
On Thu, 27 Mar 2003 00:10:34 +0100, you wrote:
>Ray Hunter wrote:
>They are two:
>1/ php+apache/linux webserver (reachable from outside)
>2/ iis/w2k running web service (behind firewall)
>
> > You can also create scripts that receive post data and then submit that
> > data to another server via p
On Fri, 28 Mar 2003 20:12:27 -0800, you wrote:
>I'm a total newbie to programming, but I picked up PHP last month and redesigned my
>website (I think it's great).
>
>What I want to do now, is create a price comparison engine of online bookstores using
>PHP and whatever web services the vendors s
On Fri, 4 Apr 2003 11:16:49 +0100, you wrote:
>How could I have individual pages for each member who registers?
>(ie) Pages only that member can see.
>
>Would this be easy(ish) to do or should I study PHP a little more first?
This is a very general question. Yes it's possible, and yes you should
On Sat, 5 Apr 2003 09:40:19 +0300, you wrote:
>I tried something like this:
>
>$arrayA = array(5,4,3,2,1);
>$arrayB = $arrayA;
>array_multisort($arrayA);
>echo $arrayA[0], "";
>echo $arrayB[0];
>?>
>
>
>The output is:
>1
>1
>
>I think it should be:
>1
>5
It's not a bug (ie this is expected behavi
On Sat, 5 Apr 2003 13:18:08 +0300, you wrote:
>David, thank you very much. I suspected smth. like this, but still, it is
>weird: PHP already has the "&" operator (?) for assigning by reference.
The reference operator
$b = &$a;
forces $b and $a to be references to the same variable now and forev
On Fri, 30 May 2003 21:47:03 -0400, you wrote:
>Hi all, I've got a really tough question, I am building an application that
>allows PayPal's shopping cart to have multiple items, but also multiple
>prices for the same item, but a different style or size or color, and Im
>quite stuck on how I wo
On Sat, 31 May 2003 11:39:41 +0100, you wrote:
>Is there any way getting the time taken to parse a script?
>
>IE:
>
>This page took 0.13 seconds to generate.
Call microtime() at the beginning and end of the script.
$timeTaken = $timeEnd - $timeStart;
see
http://uk2.php.net/manual/en/function.m
On Sun, 08 Jun 2003 16:25:19 -0400, you wrote:
>I have Function A containing a preg_replace_callback calling Function B.
>The code works quite nicely.
>
>Now, is there a way for the callback function (B) to receive *additional*
>arguments
>(from A), so that, for example, it may optionally perform
On Sun, 8 Jun 2003 13:31:25 +0300, you wrote:
>AGES AND TRYING TO FIND A GOOD RSS CREATOR , PLEASE HELP, NOTE THAT I TRIED
>http://www.phpclasses.org . PHP Classes Repository
>
> BUT I DIDN'T MANAGE
>
> PLEASE HELP ME
A simple RSS document is pretty easy to generate. It's just text...
On Mon, 09 Jun 2003 07:13:43 +0200, you wrote:
>Does anyone have a good regular expression for capturing all http URL in
>a string?
>now i'm using ?(http://[a-z0-9-/_;&=+-\.\?:@]+)\b?mi
>in one of my programs, that is, all strings beginning with http:// and
>contain chars like a-z0-9 ...
>
>does
On Sat, 14 Jun 2003 08:02:57 -0400, you wrote:
>I just installed php/mysql on my windows machine, now when I try to run
>a script I get this:
>
>Use of undefined constant s_UID - assumed 's_UID' in
>c:\inetpub\wwwroot\php_test\inc\session.php
>
>And then some Undefined variable: s_UserInfo.
>
>An
On Tue, 17 Jun 2003 06:00:28 -0500, you wrote:
>I have a site with hundreds of downloadable forms in MS Word format.
>Right now to download a form you have to right-click and choose "Save
>Target As..." to download the form. Is there a simple script that I
>could put in that would trigger the d
On Tue, 17 Jun 2003 17:00:26 +0200, you wrote:
>I'm embedding an SQL query constructed in Javascript to an URL and opening
>it in PHP where I try to execute it.
I can't believe anyone hasn't jumped on this yet :)
Please be very, very careful. There's a big big hole there.
>Problem is, the strin
On Tue, 17 Jun 2003 19:25:39 +0200, you wrote:
>I have the following code:
>if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) { $modpath
>= "themes/$ThemeSel/";}
>
>At home on my PC (WinXP+PHP4.3.2) this code works without warnings.
>But in my office (Win2000+PHP4.3.0) I always
On Tue, 17 Jun 2003 12:41:34 -0600, you wrote:
>I'm a relative newbie to PHP coming from the Zope/Python/DTML world. Does
>anyone know of a good way, short of a javascript, to redirect from index.html
>to index.php. Also, can I use PHP to test for browsers, then redirect them
>to the appropr
1 - 100 of 352 matches
Mail list logo