Re: [PHP] php development environment

2002-11-01 Thread Jason Wong
On Thursday 31 October 2002 18:34, Simon Taylor wrote: > Hi All, > Does anyone know if there is a good php development environment around, you > know something that will hold a list of functions/classes so you don't have > to scroll through thousands of line of code looking for a few lines of > spu

[PHP] Simple Problems taking me hours to solve!

2002-11-01 Thread Steve Jackson
This is the query I am running on my database: $query = "select orderid from receipts order by receipt_id DESC LIMIT 0,1"; $orderid = mysql_query($query); That should return the last record in the DB? Correct? I currently get a number returned which is the number plus 1. IE if 423 is the las

Re: [PHP] ^M at the end of each line when I use php to write file

2002-11-01 Thread Gerard Samuel
Im not sure, but I believe Ive noticed this when I fopen() a file with the 'b' value like fopen($foo, 'wb'); I may be totally wrong... Brandon Orther wrote: Hello, Does anyone know a way around all the ^M at the end of each line that my php file writes to on a linux box?

Re: [PHP] Simple Problems taking me hours to solve!

2002-11-01 Thread Petre Agenbag
No, it should not return what you want. When you do $orderid = mysql_query($query); all this does is actually execute the query, and returns an array containing the actual result set. What you need to do from here is to do: $myrow = mysql_fetch_assoc($orderid); Now, what you have is an associati

Re: [PHP] New Server advice

2002-11-01 Thread @ Edwin
Hello, (B (B"David Russell" <[EMAIL PROTECTED]> wrote: (B (B> Hi all, (B> (B> I am setting up a new production server. Assuming that I do not need (B> register globals, what does everyone suggest for setting it up: (B> (B> Linux machine (B> Apache (B> PHP 4.2.3 (B> (B> My real ques

[PHP] xml parser breaking on legal xml chars

2002-11-01 Thread Gerard Samuel
Im some what new to xml but I've put together a basic xml parsing script, and for some reason, on data like -> It's been a few days since... the parser thinks its 3 lines. Its parsing a new line on htmlentities like ' So with the above line the looped output is like -> Data --> It Data --> ' Da

Re: [PHP] client-side zip of POST or GET data, auto unzip on server.

2002-11-01 Thread @ Edwin
Hello, (B (B"Petre Agenbag" <[EMAIL PROTECTED]> wrote: (B> Hi (B> I'm wondering if something like this will be possible. (B> (B> I am correct in thinking that POST and GET data are sent as plain text? (B (BNot always. (POST -> SSL) (B (B> And, that being plain text, they should probably b

[PHP] Re: Require_once problem

2002-11-01 Thread Kerry Kobashi
The problem is that under Windows, case sensitivity is important on require_once require_once("DB.php") is different than require_once("db.php"); Arh! I hate you Windows. "Kerry Kobashi" <[EMAIL PROTECTED]> wrote in message news:20021101073558.1581.qmail@;pb1.pair.com... > Whats the dif

Re: [PHP] php development environment

2002-11-01 Thread @ Edwin
Hello, (B (B"Simon Taylor" <[EMAIL PROTECTED]> wrote: (B> Hi All, (B> Does anyone know if there is a good php development environment around, (Byou (B (BZend Studio ? (Bhttp://www.zend.com/store/products/zend-studio.php (B (B- E (B (B...[snip]... (B (B-- (BPHP General Mailing List (

Re: [PHP] client-side zip of POST or GET data, auto unzip on server.

2002-11-01 Thread Petre Agenbag
Hi Yes, I thought your last comment would also be "doable", but it would be nice to have this zipping done on the user' behalf. The whole reason why I *think* this is possible, is because you can unzip and process the data on the server side in an automatic way, so it *should* be possible to do thi

[PHP] Re: why does eregi match for whitespace when there is none?

2002-11-01 Thread Erwin
Peter J. Schoenster wrote: > Here is the example: > > > $string = 'asfddsaz'; > > if (eregi('\s', $string)) { > echo "Whitespace present"; > }else { > echo "NO Whitespace present"; > } > ?> > > Why does the above return true? There is no whitespace in the string. > What am I missing? Try

RE: [PHP] php development environment

2002-11-01 Thread @ Darwin
I use the Maguma Studio environment (http://www.maguma.com/). It features some pretty little colors in the code too. It also makes it easy to find what you need from all your classes and other files in a convenient style, and it is almost totally customizable. You can even customize PHP and HTML ta

RE: [PHP] Require_once problem

2002-11-01 Thread @ Darwin
Well, the way I've read it is that if you use require within control structures then all files are included, regardless of whether the script exits before it reaches its next if...elseif...else or case statement. With include that does not happen. So the general rule of thumb would be to use requir

[PHP] Apache Installation Problem

2002-11-01 Thread Ramesh Pillai
Hai! I had downloaded Apache2.0.43 from apache site and installed on my linux7.1 box, the configure/make .make install went smooth, after that I started Apache server. Now my problem is when I tried to access localhost through any browser(ie http://localhost) its saying host not found(or unknownh

[PHP] Array solution...

2002-11-01 Thread Davíð Örn Jóhannsson
I have two arrays and I have complete list of numbers in one of them, lets call it $complete[] and another that has some values of the complete one, lets call that one $part[], now if I want to return an array with all the values that are in $complete[] but not in $part[], how would I do that? R

Re: [PHP] Array solution...

2002-11-01 Thread Jason Wong
On Friday 01 November 2002 19:22, Davíð Örn Jóhannsson wrote: > I have two arrays and I have complete list of numbers in one of them, > lets call it $complete[] > and another that has some values of the complete one, lets call that one > $part[], now if I want to > return an array with all the valu

RE: [PHP] Simple Problems taking me hours to solve!

2002-11-01 Thread Petre Agenbag
Well, OK I think your problem is here: You sql *could* and probably does return more than one row. Yet, your code as it is now will only return the first row. You need to cycle through the result rows with a while statement, like this: while ($myrow = mysql_fetch_assoc($result)) { $my_id

Re: [PHP] Apache Installation Problem

2002-11-01 Thread Jason Wong
On Friday 01 November 2002 19:11, Ramesh Pillai wrote: > Hai! > I had downloaded Apache2.0.43 from apache site and > installed on my linux7.1 box, the configure/make .make > install went smooth, after that I started Apache > server. > > Now my problem is when I tried to access localhost > through a

[PHP] Need help with regexp for preg_split

2002-11-01 Thread David Brannlund
Hi, I need some help with a regexp for preg_split. I want the string str = "this is 'a string that' contains phrases"; to be split into: arr[] = "this"; arr[] = "is"; arr[] = "a string that"; arr[] = "contains"; arr[] = "phrases"; but I'm having some trouble coming up a good regexp

[PHP] Serverside script

2002-11-01 Thread Davíð Örn Jóhannsson
I need to write a stand alone script runing on a server that checks and updates a database every week, is this posable and if so could some one direct me to a tutorial or to any info on doing this. Regards, David

Re: [PHP] Serverside script

2002-11-01 Thread Petre Agenbag
Are you familiar with PHP, or are you more worried about how to "call" and execute the script from the server itself on a weekly basis ( cron job) ? On Fri, 2002-11-01 at 14:41, Davíð Örn Jóhannsson wrote: > I need to write a stand alone script runing on a server that checks and > updates a da

RE: [PHP] Serverside script

2002-11-01 Thread John W. Holmes
> I need to write a stand alone script runing on a server that checks and > updates a database every week, is this posable and if so > could some one direct me to a tutorial or to any info on doing this. Yes, it's possible. Look into cron to run your script on a schedule. ---John Holmes... --

[PHP] php4 Mac OSX

2002-11-01 Thread Pierre Vaudrey
I installed PHP 4.2.3 on Mac OS 10.2.1 , activating the PHP Module with the following commands on terminal window cd /etc/httpd" sudo apxs -e -a -n php4 libexec/httpd/libphp4.so" echo 'echo "AddType application/x-httpd-php .php" >> /etc/httpd/httpd.conf' | sudo sh -s It works fine and I would l

[PHP] Cookies

2002-11-01 Thread Shaun
Hi, When the user logs in , i create a session with session varialbles, the session cookie is saved on clients computer. When i log off i say session_unset(); session_destroy(); setcookie(session_name()); The session in the tmp is deleted , but the cookie is still there , i know this because wh

[PHP] Cookies

2002-11-01 Thread Shaun
Hi, When the user logs in , i create a session with session varialbles, the session cookie is saved on clients computer. When i log off i say session_unset(); session_destroy(); setcookie(session_name()); The session in the tmp is deleted , but the cookie is still there , i know this because wh

[PHP] how to avoid security thread when user able to press back button?

2002-11-01 Thread James Ting
hi.. a newbie here a user fill up a form with username and password passing the form through 'POST' a session was created, a user login, a user logout + session destroy, but after that if the user press back button on the browser seems like the browser will repost the username and password back t

[PHP] Help please.

2002-11-01 Thread Steve Jackson
Hi, I have been trying for most of the day to pull a variable from a db. Finally managed that. Now I need to pass the result of a function to another function. How do you do this? I assume the following if called in another page can be used? function get_shipping($shipping) { $conn = db_connect()

Re: [PHP] Help please.

2002-11-01 Thread Jason Wong
On Friday 01 November 2002 22:04, Steve Jackson wrote: Please use a descriptive subject! > I have called it in another page by doing > get_shipping($shipping) > > And then > > Echo "test $shipping"; $returned_variable = get_shipping($shipping); echo $returned_variable; Or you can use the return

[PHP] String Expression for aplpahnumeric password

2002-11-01 Thread Adam
I need a string expression to verify an alpha numeric password. This is what i've come up with , however it does not work: elseif ( (!ereg ("^[a-zA-Z]+$", $password)) || (!ereg ("^[0-9]+$", $password))) can anybody help? Thanks in advance ADAM -- PHP General Mailing List (http://www.php.net/)

[PHP] PHP & WebDAV

2002-11-01 Thread GC
I'm using WebDAV in Apache 2, whenever I try to get an html file it works fine, but when I try to get a PHP file I get an error saying it cannot get filename.php. How come I can only get html files through WebDAV? Is there a way to change this? Thanks!! -- PHP General Mailing List (http://ww

RE: [PHP] Require_once problem

2002-11-01 Thread Ford, Mike [LSS]
> -Original Message- > From: @ Darwin [mailto:superbus22@;attbi.com] > Sent: 01 November 2002 10:17 > > Well, the way I've read it is that if you use require within control > structures then all files are included, regardless of whether > the script > exits before it reaches its next if..

Re: [PHP] php4 Mac OSX

2002-11-01 Thread Matt T. Galvin
Did you install from the source code or a pre-compiled bin? (from Marc Liyanage.?) If so there is usually no php.ini file with it. If you are using Marc's binary package then create a blank php.ini file: sudo mkdir -p /usr/local/lib sudo touch /usr/local/lib/php.ini Then you wi

[PHP] OT - mysql question...

2002-11-01 Thread Kelly Meeks
Sorry for the OT post, quick mysql question... I've found a couple of cool utilites that will create basic forms from a mysql table (add/edit/delete/search), which look they could save some time coding. However, I can't connect with them because my server is setup as localhost. I How do you cr

[PHP] phpinfo

2002-11-01 Thread David Russell
Hi all, I upgraded php and apache on my development machine (Windows XP). I am now running apache 1.3.27 and php 4.2.3. When I run a phpinfo(), I get my full list of stuff as expected, except that the apache version reported is 1.3.24. Has anyone else seen this. Have I done something wrong? Th

Re: [PHP] OT - mysql question...

2002-11-01 Thread John Nichel
http://www.mysql.com/doc/en/Adding_users.html http://www.mysql.com/documentation/lists.html Kelly Meeks wrote: Sorry for the OT post, quick mysql question... I've found a couple of cool utilites that will create basic forms from a mysql table (add/edit/delete/search), which look they could save

[PHP] Get shipping problem continued!

2002-11-01 Thread Steve Jackson
Sorry to keep on at you guys but this is really getting to me now! I want to pull a shipping quantity (the very last record in the Db) into a page and am still having problems. Tried looping through the records and I can't seem to get it to return anything: function get_shipping($shippingvar) { $

[PHP] Re: Get shipping problem continued!

2002-11-01 Thread Michael T. Babcock
Steve Jackson wrote: function get_shipping($shippingvar) { $conn = db_connect(); $query = mysql_query("SELECT MAX(receipt_id) from receipts"); $myrow = mysql_fetch_row($query); $shippingvar = $myrow["shipping"]; return $shippingvar; Check http://php.net/mysql_fetch_row ... specifically, mysql

[PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread DonPro
Hi, I have a form with a checkbox like so: When I submit, the value is always shown as "ON" regardless of whether I've checked the checkbox or not. So this begets the question, How can I code my PHP form processing script to determine whether the checkbox was checked? Thanks, Don -- PHP Ge

Re: [PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread John Nichel
if ( isset ( $_POST['shipper_save'] ) ) { echo ( "It's Checked" ); } Or use $_GET['shipper_save'] depending on your forum method. DonPro wrote: Hi, I have a form with a checkbox like so: When I submit, the value is always shown as "ON" regardless of whether I've checked the checkbox or not.

Re: [PHP] php4 Mac OSX

2002-11-01 Thread Pierre Vaudrey
Did you install from the source code or a pre-compiled bin? (from Marc Liyanage.?) I installed PHP from Marc Liyanage pre-compiled bin If so there is usually no php.ini file with it. If you are using Marc's binary package then create a blank php.ini file: sudo mkdir -p /usr/local/li

Re: [PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread Tom Woody
The syntax as I have used it is (not the cleanest or best way to do it by a long run - but it works): > this will have the checkbox be checked by default, also you can do what ever other things you need to do based on the on/off conditions. On Fri, 1 Nov 2002 10:47:43 -0500 "DonPro" <[EMAIL PRO

[PHP] search

2002-11-01 Thread samug
There's no php.sql, so I'll put it here. I'm trying to do a search from mysql database like this: if (!$inquiry = mysql_query("select id,link,heading,desc from links where heading like '%$entry%' or desc like '%$entry%' or keyword like '%$entry%'",$connection)){ print "Search was unsuccesful!

Re: [PHP] php4 Mac OSX

2002-11-01 Thread Matt T. Galvin
uncompress eXtremePHP. It may get have a weird directory name. Change the directory name to xpl. copy xpl to /Users/pierreva/Sites/xpl either from the CLI or just drag the xpl dir into your Site dir cd /usr/local/lib sudo vi php.ini while in vi type /auto_prepend (this is to search to the

Re: [PHP] search

2002-11-01 Thread Robert Cummings
Echo your query and ensure that $entry has data in it, otherwise matching '%%' will match everything as you are getting. Cheers, Rob. samug wrote: > > There's no php.sql, so I'll put it here. > > I'm trying to do a search from mysql database like this: > > if (!$inquiry = mysql_query("select i

Re: [PHP] search

2002-11-01 Thread John Nichel
And you may want to try $query = "select `id`, `link`, `heading`, `desc` from `links` where `heading` like '%" . $entry . "%' or `desc` like '%" . $entry% . "' or `keyword` like '" . %$entry% . "'"; if ( ! $inquiry = @mysql_query ( $query, $connection ) ) Robert Cummings wrote: Echo your qu

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread Steve Keller
At 10/31/2002 03:00 PM, John Wards wrote: On Thursday 31 Oct 2002 3:00 pm, jianking wrote: > Who can tell me where I can get the cracked Zend Encoder 3.0 ? Are you a muppet? This list is run by the people who make Zend Encoder! FOOL Ah, my first laugh of the day. -- S. Keller UI Engineer T

RE: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread Liam . Gibbs
> > Who can tell me where I can get the cracked Zend Encoder 3.0 ? >Are you a muppet? > >This list is run by the people who make Zend Encoder! > >FOOL >Ah, my first laugh of the day. Okay, that's enough. I'm incredibly disappointed in this list. It's very helpful at times, but at other times can

php-general Digest 1 Nov 2002 18:19:05 -0000 Issue 1679

2002-11-01 Thread php-general-digest-help
php-general Digest 1 Nov 2002 18:19:05 - Issue 1679 Topics (messages 122384 through 122438): PHP-GTK 0.5.2 released 122384 by: Andrei Zmievski Re: Displaying Data of a MySQL Table in PHP 122385 by: Jason Wong php development environment 122386 by: Simon Taylor

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread John Nichel
I for one think that poster didn't enough grief. I mean, you go on and on about making a 'mistake', but it's not like his mistake was to ask a JavaScript or MySQL question in a php mailing list. He asked for an illegal version of software from those who make / contribute to the software. Tha

Re: [PHP] Who can tell me where I can get the cracked Zend Encode r3.0 ?

2002-11-01 Thread nicos
Okay enough now. -- M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "John Nichel" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I for one think that poster didn't enough grief. I mean, you go on and > on about making a 'mistake',

RE: [PHP] Who can tell me where I can get the cracked Zend Encode r3.0 ?

2002-11-01 Thread Liam . Gibbs
<> Disrespect or not, anyone ever copy a game? Or a CD or tape? Or a movie? Anyone ever download anything off the Internet? It's all the same, and I doubt any of the people on the list showing the same disrespect this person may have showed have never done that. Again, cut this poster some slack a

RE: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread Jay Blanchard
Easy Liam, the guy posted to the list asking for something illegal. It is not like he had posted something like we have all seen before where a broad question is asked and a broader answer given. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] Regular expression problem

2002-11-01 Thread Stuart
I just moved some *working* code from a Win2k server running PHP 4.2.1 to a FreeBSD server running 4.2.3 and the following code no longer works... $templatetext = preg_replace("//e", "g_includecallback(\"\\1\")", $templatetext); if (!preg_match("/([[:ascii:]]+?)([[:ascii:]]+?)([[:ascii:

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread @ Edwin
Asking for something illegal is *wrong*. But, there's always a better/proper way of dealing with this kind of person/situation. Let's get busy coding--jokes and laughs (and ...whatever) can be found somewhere else... - E -- "Do not answer anyone

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0?

2002-11-01 Thread ed
> Asking for something illegal is *wrong*. But just stealing it without asking is OK? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-11-01 Thread @ Edwin
<[EMAIL PROTECTED]> wrote: > > > Asking for something illegal is *wrong*. > > But just stealing it without asking is OK? > Tell me. if (that was a joke){ I need to rephrase myself... > Let's get busy coding--jokes and laughs (and ...whatever) > can be found somewhere else... should

[PHP] PHP Login Sessions

2002-11-01 Thread Jay Fitzgerald
What am I doing wrong here? I have a login form that visitors enter their "use"name and "use_psswrd" in to log in...the form action is this code: == session_start(); if ($_REQUEST[use_name] && $_REQUEST[use_psswrd]) { $connection = mysql_connect("SERVER","USER","PASS") o

Re: [PHP] String Expression for aplpahnumeric password

2002-11-01 Thread @ Edwin
Hello, (B (B"Adam" <[EMAIL PROTECTED]> wrote in message (B[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... (B> I need a string expression to verify an alpha numeric password. This is (Bwhat (B> i've come up with , however it does not work: (B> (B> elseif ( (!ereg ("^[a-zA-Z]+$", $password)) ||

Re: [PHP] phpinfo

2002-11-01 Thread @ Edwin
Hello, (B (B"David Russell" <[EMAIL PROTECTED]> wrote: (B> Hi all, (B> (B> I upgraded php and apache on my development machine (Windows XP). I am (B> now running apache 1.3.27 and php 4.2.3. (B> (B> When I run a phpinfo(), I get my full list of stuff as expected, except (B> that the apac

Re: [PHP] search

2002-11-01 Thread @ Edwin
Hello, "samug" <[EMAIL PROTECTED]> wrote in message news:20021101163718.65263.qmail@;pb1.pair.com... > There's no php.sql, so I'll put it here. > There's php.db, however... :) - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] uploading files

2002-11-01 Thread Shaun Thornburgh
I am attempting to upload image files to the server from a users browser using the following code, however, the images seem to get corrupted, they look completely different and the file sizes are generally smaller, also it sometimes says file upload unsuccessful, even when it does upload the file?

Re: [PHP] phpinfo

2002-11-01 Thread Matt T. Galvin
Restart apache... that should be it on XP use the Restart Script in you apache program group on unix do a /usr/local/apache/bin/apachectl graceful or just apachectl graceful if it is in your path HTH, Matt At 05:50 AM 11/2/2002 +0900, you wrote: <[EMAIL PROTECTED]> -- PHP General Mail

[PHP] Re: uploading files

2002-11-01 Thread Shaun Thornburgh
My apologies, here is the code! //copy image to server if ($image != "none") { if (copy ($image, $dir.$image_name)){ echo "File upload successful!"; } else { echo "File upload unsuccessful!"; } //new name of image $new_name = "$property_id-$category_id-$sub_category_id.jpg";

Re: [PHP] PHP Login Sessions

2002-11-01 Thread @ Edwin
Hello, "Jay Fitzgerald" <[EMAIL PROTECTED]> wrote: [snip] > === > session_start(); > > if (isset("valid_id")) > { > echo "$_SESSION[valid_id]"; > } > else [/snip] Perhaps, it's because you need to ask if (isset($_SESSION['valid_id'])) ? - E -- PHP General Mailing

Fw: [PHP] Re: uploading files

2002-11-01 Thread Kevin Stone
Confirm that you're using the proper header information in your HTML tag.. -Kevin - Original Message - From: "Shaun Thornburgh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 1:51 PM Subject: [PHP] Re: uploading files > My apologies, here is the code! > >

Re: [PHP] Re: uploading files

2002-11-01 Thread Shaun Thornburgh
Thats all fine Here is my form header "Kevin Stone" <[EMAIL PROTECTED]> wrote in message news:020201c281ec$04515820$6601a8c0@;kevin... > Confirm that you're using the proper header information in your HTML > tag.. > > -Kevin > > - Original Message - > From: "Shaun Thornburgh" <[EMAIL

[PHP] Check box with same name

2002-11-01 Thread ppf
Hi all: I am having a problem in accessing form data from multiple check box of same name with different values, like this Where

[PHP] Security - Maybe a silly question

2002-11-01 Thread SED
When I use sessions in PHP or just plain login/password in $_POST, can 3rd parties or hackers monitor the transmission, between me and user, and somehow decode the transmission and use the variables to login other time or overtake the current session? If so, how likely is for someone to manage it

[PHP] Extracting email addresses

2002-11-01 Thread jr
Hello Everyone, Does anyone have an regular expression or other way to extract an email address out of a string. I have been using: if (ereg ("^" . "[a-z0-9]+([_\\.-][a-z0-9]+)*" .//user "@" . "([a-z0-9]+([\.

[PHP] Theory question

2002-11-01 Thread Daniel Masson
Hi every1 This is a theorical question about the best way to use classes. I have a class named anything, and also theres a table named ahything .. The class attributes are the same fields of the table like this Class anything { var $something1; var $something2; var $so

Re: [PHP] Security - Maybe a silly question

2002-11-01 Thread @ Edwin
Hello, "SED" <[EMAIL PROTECTED]> wrote: > When I use sessions in PHP or just plain login/password in $_POST, can > 3rd parties or hackers monitor the transmission, between me and user, > and somehow decode the transmission and use the variables to login other > time or overtake the current session

[PHP] Re: Capitalizing names etc. part II - found a solution

2002-11-01 Thread -<[ Rene Brehmer ]>-
Hi Richard Archer, On Thu, 31 Oct 2002 12:24:15 -, you wrote about "RE: Capitalizing names etc. part II - found a solution" something that looked like this: >You should consider the fact that, even as surnames, names like >Mackintosh and Mackenzie (and as someone else suggested here 'Macon')

Re: [PHP] Theory question

2002-11-01 Thread Matt T. Galvin
Well, what you could do is write one function that gets all the values that you need and fills the variables up with them, AND write a bunch of functions that get one value at a time. Then depending on the conditions or parameters/values needed or recieved and such, you can call the fun

[PHP] Number of files in a dir

2002-11-01 Thread Shaun Thornburgh
How can i find out how many files exist in a dir? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Check box with same name

2002-11-01 Thread Philip Olson
Hello, Use an array: Note: Only checked checkboxes are passed. Access: print $_REQUEST['foo'][0]; // the first one print $_REQUEST['foo'][1]; // the second You can use named indices too: print $_REQUEST['foo']['bar']; Mix and match, have fun. Regards, Philip -- PHP Gen

Re: [PHP] Check box with same name

2002-11-01 Thread John Nichel
Add square brackets to the end of the name of each check box, ie... And on the page you submit the form too, you will be able to access this as an array... $_POST['searchStr'] or $_GET['searchStr'], depending on the method the form was posted by. ppf wrote: Hi all: I am having a problem in

[PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
hey is there a way to get the URL header? the tags etc? i couldn't find any function in the docs, but maybe i just don't know where to look. if there's a function that pulls in an entire page that;s fine too i can work with that.. any help appreciated TIA Jule Jule Slootbeek [EMAIL PROTECTED]

Re: [PHP] search

2002-11-01 Thread rija
Perhaps the table name 'desc' is reserved word for 'order by' so MySQL cannot use it as table name- So why don't you print out the mysql_error() using for example die- like this: $inquiry = mysql_query("select id,link,heading,desc from links where heading like '%$entry%' or desc like '%$entry%' or

Re: [PHP] Security - Maybe a silly question

2002-11-01 Thread rija
Yes, Between user and server, everydata pass through DNS, routeur, etc... So if you don't want someone (hackers or FBI of CIA) to decode your data, use SSL server (https://) with certificate- - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, Novem

Re: [PHP] getting HTML header from URL

2002-11-01 Thread John Nichel
Docs -> Function Reference -> Filesystem Functions -> fopen() It was hidden. Jule Slootbeek wrote: hey is there a way to get the URL header? the tags etc? i couldn't find any function in the docs, but maybe i just don't know where to look. if there's a function that pulls in an entire page t

Re: [PHP] number_format question

2002-11-01 Thread Hugh Danaher
What you need to do with the input number is to do an ereg_replace() and eliminate the commas from the string, then use the string variable where needed. Then, when you want to display the variable, use the number_format() function. Hope this helps, Hugh - Original Message - From: <[EMAIL

Re: [PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
i thought fopen() was only for local files, didn't even bother looking, but now i think about it..it makes perfect sence to open url's as well, thanks a lot! Jule On Friday, Nov 1, 2002, at 17:42 US/Eastern, John Nichel wrote: Docs -> Function Reference -> Filesystem Functions -> fopen() It w

Re: [PHP] Number of files in a dir

2002-11-01 Thread rija
cope with readdir() or dir(). I always use one of these functions and I'm wondered if there are more efficient solution to do it ! - Original Message - From: "Shaun Thornburgh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 02, 2002 9:00 AM Subject: [PHP] Number of fi

RE: [PHP] Security - Maybe a silly question

2002-11-01 Thread SED
Thank you for the reply, what do you mean by "sniffing", do you mean everbody can monitor our browsing? -Original Message- From: @ Edwin [mailto:copperwalls@;hotmail.com] Sent: 1. nóvember 2002 21:47 To: SED Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Security - Maybe a silly question Hell

[PHP] regular expression question

2002-11-01 Thread John Meyer
I've got a regexp: (EV[0-9]{2})!([0-9]{4}-[0-9]{2}-[0-9]{2})!(GR[0-9]{2}).txt My question is, will it match this: EV01!2002-11-09!VR01!GR01.txt And anything formatted like this: (EV02, and so forth). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] regular expression question

2002-11-01 Thread John Nichel
It might, you should test it to find out. John Meyer wrote: I've got a regexp: (EV[0-9]{2})!([0-9]{4}-[0-9]{2}-[0-9]{2})!(GR[0-9]{2}).txt My question is, will it match this: EV01!2002-11-09!VR01!GR01.txt And anything formatted like this: (EV02, and so forth). -- PHP General Mailing L

RE: [PHP] Security - Maybe a silly question

2002-11-01 Thread SED
I'm not very familiar to this stuff, but if I wanna use https:// do don't I need a key from Verisign (or similar) to make it work? If so, who control who is what on the internet? Regards, Sumarlidi E. Dadason SED - Graphic Design _ Tel: 896-0376, 461-5501 E-mail:

[PHP] Can't store info on a mysql database...

2002-11-01 Thread Mr. BuNgL3
Hi... My problem is that i can't store info in a mysql database... ex: I want to store this info in my database: login/passwd and i have the php code... what i'm doing wrong? : | thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Fw: [PHP] Can't store info on a mysql database...

2002-11-01 Thread Rick Emery
$md = MD5($passwdtxt); $sql="INSERT INTO users (login,passwd) VALUES (\"$logintxt\", \"$md\")"; mysql_query($sql) or die(mysql_error()); next time, show the error messages you got. Also, ALWAYS USE mysql_error() when executing mysql_query() -- see above = "Mr

[PHP] uping to plaese help

2002-11-01 Thread marcelo
Hi need some help please What is wrong with my code? it is supposed to upload 2 files but instead gives me this error Warning: Unable to open 'Array' for reading The code O Leme upload Jornal O Leme  

Re: [PHP] Can't store info on a mysql database...

2002-11-01 Thread rija
$sql="INSERT INTO `users` (login,passwd) VALUES ('$logintxt', 'password($passwdtxt)')" ; mysql_db_query("mysite",$sql); - Original Message - From: "Mr. BuNgL3" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 02, 2002 10:32 AM Subject: [PHP] Can't store info on a mysq

Re: [PHP] uping to plaese help

2002-11-01 Thread rija
I bit you are doing something like this: copy("$file", "file") ; - Original Message - From: "marcelo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 02, 2002 11:19 AM Subject: [PHP] uping to plaese help > Hi need some help please > > What is wrong with my code? >

[PHP] My 2cents on xml/php

2002-11-01 Thread Gerard Samuel
This is not meant to put down the php/xml combo. Just putting down my 2 cents from my experience thus far, into the archive for anyone else looking for info. I just started getting deep into parsing xml yesterday, and the dust has just begun to settle. Im parsing rss files versions 0.91 - 2.0 j

Re: [PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
well, i got it to read a html file, but the problem is that it reads it after it loads it, so it doesn't read the tags, and i'm looking for the string in between and is there a way using fopen() or something similar to read an html/php file before it's loaded? Jule On Friday, Nov 1, 2002, a

Re: [PHP] getting HTML header from URL [solved]

2002-11-01 Thread Jule Slootbeek
hmm, figured it out...all of a sudden it did work: here's the code, it loads a URL and returns the title... dunno what it would be used for, but it aught we some more about php.. i'll probbly implement it on a link page ir something Jule function getTitle($url) { $file = @fopen($url, 'r'); if(

RE: [PHP] getting HTML header from URL

2002-11-01 Thread Brendon G
Can't you just call the contents of the page into a variable and extract what you need with regular expressions? Php / Html makes no difference its all text to fopen.. ~ > is there a way using fopen() or something similar t

Re: [PHP] getting HTML header from URL [solved]

2002-11-01 Thread Jule Slootbeek
oops didn't catch two little bugs Jule function getTitle($url) { $file = @fopen($url, 'r'); if(!$file) { $rline = "Error, contact webmaster"; } else { while (!feof ($file)) { $line = fgets($file); if (substr_count(strtoupper("$line"), "") >= 1) { $rline = strip_tags("$line");

Re: [PHP] Security - Maybe a silly question

2002-11-01 Thread @ Edwin
Hello SED, "SED" <[EMAIL PROTECTED]> wrote: > Thank you for the reply, what do you mean by "sniffing", do you mean > everbody can monitor our browsing? I'm not really sure how I can answer your question but let me just put it this way. Everybody CAN monitor our browsing but: 1. That doesn't mean

Re: [PHP] Security - Maybe a silly question

2002-11-01 Thread @ Edwin
"SED" <[EMAIL PROTECTED]> wrote: > I'm not very familiar to this stuff, but if I wanna use https:// do > don't I need a key from Verisign (or similar) to make it work? Yes and no. If you're going to use it on a production server, yes. If it's on a test server but you still want to be somehow "pro

[PHP] Re: getting HTML header from URL [solved]

2002-11-01 Thread David U.
Jule Slootbeek wrote: > oops didn't catch two little bugs > > Jule > > function getTitle($url) > { > $file = @fopen($url, 'r'); > > if(!$file) { > $rline = "Error, contact webmaster"; > } else { > while (!feof ($file)) { > $line = fgets($file); > if (substr_count(strtoupper("$line"), "") >= 1)

  1   2   >