On Wed, 20 Mar 2002, Martin Towell wrote:
> (this code not tested)
>
> $res_arr = explode("\n", $result);
> $res_num = count($res_arr);
> for ($i = 0; $i < $res_num; $i++)
> {
> list($k, $v) = explode("=", $res_arr[$i]);
> $$k = $v;
> }
> ?>
>
> this isn't going to work properly if the "val
On Tue, 19 Mar 2002, Analysis & Solutions wrote:
> On Tue, Mar 19, 2002 at 09:40:17PM +0100, Jan Grafström wrote:
>> I have read several tricks of how to remove white spaces but how to create
>> them?
>>
>> productitemspriceamount
>> book22550
>> cd-rom
On Tue, 19 Mar 2002, Kris Vose wrote:
> How would you write a regular expression that defines a phone number: ex.
>(123)123-1234.
>
> In other words how would you check to see if there were three numerics surrounded by
>(), then three numerics with a "-", then four numerics.
>
>
> This is
On Mon, 18 Mar 2002, Marc Bleuler wrote:
> Im trying to replace the first two digits (41) from a telephone no. with a 0
> (zero), like 41763334455 should end wit 0763334455. Anybody a idea howto? My
> php programming experiance is not very high so if any body could provide a
> code example
ht
On Tue, 19 Mar 2002, Leif K-Brooks wrote:
> I need a function that encodes stuff, with a key. It, of course, needs to
> be decodable too. Does anbody know/have a function like this?
http://www.php.net/manual/en/ref.mcrypt.php
miguel
--
PHP General Mailing List (http://www.php.net/)
To u
On Mon, 18 Mar 2002, Ian Wayne wrote:
> I'm getting an unhelpful error message from my ftp script. It says "Warning,
> error opening file..." The code in question runs like this.
>
> $conn = ftp_connect("ftp.mysite.com");
> ftp_login($conn,"user","pass");
> ftp_get($conn, $newName, $oldName , FTP
On Mon, 18 Mar 2002, Dan Vande More wrote:
> What does the pl mean in 4.0.4-pl1
> And 4.0.3 pl1?
> And 4.0.1-pl2 and so on and so forth?
Patch level.
Like a minor version.
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 18 Mar 2002, Erik Price wrote:
> On Monday, March 18, 2002, at 04:07 PM, Charles Williams wrote:
>> So basically I guess I just need a way of, after retrieving the info
>> from the DB, splitting the IP (range(s)) apart and then comparing the
>> IP entered to those in the array(?) to verif
On Mon, 18 Mar 2002, Charles Williams wrote:
>> Ordinarily I would suggest CIDR subnets but the sample IP addresses you
>> provided do not comply - they seem to be random numbers. Is this because
>> you need to deal with arbitrary sets of IP addresses rather than valid
>> subnets, or because you w
On Mon, 18 Mar 2002, Chuck "PUP" Payne wrote:
> On 3/18/02 3:49 PM, "Dan Vande More" <[EMAIL PROTECTED]> wrote:
>> I think awstats has everything your asking for.
>
> Where can you find that one?
As always, freshmeat.net is the place to go for a truly comprehensive
database of open source softwa
On Mon, 18 Mar 2002, Charles Williams wrote:
> There will be a form with a text box to allow IP address entries as follows:
>
> 192.168.5.195
> or
> 123.23.35.4 123.23.35.45 123.23.35.74
> or
> 123.4.34.1/123.4.34.255
> or
> 13.234.5.41/13.234.5.75 12.34.34.150/12.34.34.225
>
> The above a just
On Mon, 18 Mar 2002, Ben Edwards wrote:
> This looks good, however when I try the examples I get:
>
> %PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream 2.834646 0 0 2.834646 0 841.89
> cm 2 J 0.2 w BT /F1 5.64 Tf ET BT 11 -16.692 Td (Hello World !) Tj ET
> endstream endobj 5 0 obj <> endobj 1 0 obj
On Mon, 18 Mar 2002, Ryan wrote:
> Hi, I'm trying to create an events page, where it shows the posted
> events. I enter data using phpmyadmin. Currently, the ouput is like
> this:
>
> 2002-03-06
>
> I'm having trouble with the formatting of the date. I'm using the type
> date with the functio
On Mon, 18 Mar 2002, Mike At Spy wrote:
> Anyone have any suggestions for getting better reporting on a generic
> Parse Error? Code is falling to the end of the script, and I can't find
> a problem anywhere.
I'd guess you left a curly brace open. Try opening the file in an editor
that lets you
On Mon, 18 Mar 2002, Ulrik Witschass wrote:
> Hi, I am new to this list and to PHP, so please excuse any newbie questions
> :)
>
> Want I need to know is how to get either the ISP or the IP of the visitor of
> a page. I guess this is a environment variable, but I don't know which.
> Any help is g
On Mon, 18 Mar 2002, jtjohnston wrote:
> I need a function to traverse a pathname
> to check if the path exists, if not start from scratch
> and create (MkDir) the path.
>
> Let's say:
>
> $to_path = "c:\\aaa\\bbb\\ccc\\ddd\\";
> or
> $to_path = "c:/aaa/bbb/ccc/ddd/";
>
> if(!is_dir($to_path))
On Mon, 18 Mar 2002, Michael Zornek wrote:
> The problem is that PHP seems to be sending the HTTP headers when it
> encounters the first blank line in the code (which I do use to help separate
> the code a bit).
>
> Am I right in this assumption .. and then the big Q.. how do I do PHP
> calculati
On Sun, 17 Mar 2002, David Duong wrote:
> I mean any time you hear the word CGI it is rarely referring to PHP, always
> Perl (My most comfortable Web language). You'd think that CGI only refers
> to Perl.
Back in the day, CGI repositories had a greater representation of programs
written in C an
On Sun, 17 Mar 2002, David Duong wrote:
> Can PHP be considered CGI?
Sometimes.
CGI is a standardized interface between web servers and backend
applications. PHP can communicate with web servers using that mechanism,
but it doesn't have to (depends on the web server in use).
I think the probl
On Sun, 17 Mar 2002, Leif K-Brooks wrote:
> Right now, I have a static server time clock on my page, produced by date().
> I would like to make it move, and I was wondering if anyone has code that
> returns the server time to javascript to animate it or something?
Are you particularly concerned
On Sun, 17 Mar 2002, Markus Falk wrote:
> I run a script on my page that has worked fine before with 4.0.3 but now
> when my provider has upgraded to 4.1.2, a bunch of error messages appear. I
> get some messages about variables not being defined just as if I can't send
> variables via the adress
On Sun, 17 Mar 2002, Morten Nielsen wrote:
> I got a table where I on the left has a link to page1. Another place in the
> table I have a button, which also links to page1. Is it possible to tell
> which of the two links has been pressed.
> I need to know so I only show a specific message when the
On Sun, 17 Mar 2002, Ben Edwards wrote:
> I have a html report and am looking into using phplib to generate a pdf
> instead. I have got it installed and started experimenting with it but
> ether it is extremely convoluted or I am missing something. How would I
> create a simple list report (t
I don't agree.
First of all, picture search engines don't use filenames, they use ALT
attributes and surrounding text.
Secondly, you can still make the images available using both the database
ID and a urlencoded version of the original filename:
http://myserver.org/fetchimage.php/33445/gubers
On Sun, 17 Mar 2002, Daniel Negron/KBE wrote:
> $sql= "SELECT * FROM cd_list WHERE $searchstring LIKE '%searchstring%'
> ORDER BY artist ASC";
How about:
SELECT * FROM cd_list WHERE searchstring LIKE '%{$searchstring}%'
Then again, do you actually have a column called "searchstring" in
On Sat, 16 Mar 2002, Kevin Stone wrote:
> Is there a MySQL function that I can use to increment the integer value of a row
>entry with one query?
>
> Here's the combined PHP and SQL in psuedo code form...
> UPDATE mytable SET myval++
>
> Something like that. So I dont have to pull the value fr
On Sat, 16 Mar 2002, Philip J. Newman wrote:
> A few of us folk at PhilipNZ.com would like to know about using " and ' or ` in My
>Sql when calling information from the database.
>
> we have always used
>
> $sql = "SELECT * FROM `hyperlinks` ORDER BY `clicks` DESC LIMIT 0, 10";
>
> but where t
On 15 Mar 2002, Jim wrote:
> ** Should look like this
> GALLERY 1
> Item Name Item Desc
> GALLERY 2
> Item Name Item Desc
> Item Name Item Desc
> GALLERY 3
> Item Name Item Desc
>
> I have 2 tables: tblGalleries and tblItems. tblItems has a column
> (itmGalley_ID) that cor
On Fri, 15 Mar 2002, Andre Dubuc wrote:
> I'd like to control which php file is called when clicking two buttons on the
> bottom of a form; one called "Add Names", the other "Submit"
>
> I've tried the following with no success:
>
> ***
>switch ($
On Fri, 15 Mar 2002, Ralph Jarvis wrote:
> An obvious question for some, but I am stumped:
> I want to use multiple optins in an "if" statement...
>if(user($arbitraryVariable)==(1 or 2 or 3 or 4))
> What would be the proper syntax for this?
Sometimes I find a switch to be the most efficient (
On Fri, 15 Mar 2002, Daniel Negron/KBE wrote:
> Thank You Charlie. I also found out that I needed to put an "@" symbol
> infrom of the string. This stopped it from throwing me an error.
>
> If(@$submit) blah blah blah
Better yet, use:
if (isset($submit)) blah blah blah
That explicitly che
On Fri, 15 Mar 2002, Morten Nielsen wrote:
> I have a php file where a make a lookup in a data base. I store the result
> in a variable call $qid.
> I then have an include statement of another file where I need the data from
> $qid. Can anybody tell me how I get the data.
If it was in the global
On Fri, 15 Mar 2002, Jeff Dale wrote:
> I want to have a dropdown list populated with data from my MySql server.
>
> Any examples or websites that could help is appreciated.
function outputSingleSelect()
// $name = name to give the HTML form element.
// $query = MySQL query. Should return 2 colu
On Fri, 15 Mar 2002, Philip J. Newman wrote:
> can someone point me in the right direction for writing data to a file.
>
> d:/site/file.txt
>
> infomation:
>
> [DATE] Information
$information = 'Some information';
$filename = 'd:/site/file.txt';
if ((is_writable($filename) || !file_exis
On Thu, 14 Mar 2002, Dennis Gearon wrote:
> So, before I start, I want to make sure it is what I want. Does anybody
> have experience in using 'mod_rewrite' and can answer this question?
>
> Does all the cookie, post, and get varibles plus all headers get
> preserved in a 'mod_rewrite' action?
35 matches
Mail list logo