[PHP] Re: Yet another question

2002-10-29 Thread Tjoumaidis
Yes if you include the file include ("file"); then you can refer to any of the variables the file contains Trasca Ion-Catalin wrote: It's posible to call a variable from another file? -- Trasca Ion-Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Sample Meeting Management System

2002-10-29 Thread olinux
Try these http://www.hotscripts.com/PHP/Scripts_and_Programs/Groupware_Tools/ http://www.hotscripts.com/search/?query=meeting&category=php olinux --- Faisal Abdullah <[EMAIL PROTECTED]> wrote: > Hi people, > > Do you know where I can look at a free meeting > management system? > Nothing too f

Re: [PHP] simple Q!

2002-10-29 Thread Justin French
If you download the most recent *stable* version of MySQL and PHP, and hook them up to the latest, *stable* release of apache 1.3.x, then you the most reliable production set-up available. Justin on 30/10/02 3:47 PM, Rahul ([EMAIL PROTECTED]) wrote: > Hello, > > Thanks for all reply. Shall i t

Re: [PHP] simple Q!

2002-10-29 Thread Rasmus Lerdorf
Of course there is no known vulnerabilities or we would have fixed them. On Wed, 30 Oct 2002, Rahul wrote: > Hello, > > Thanks for all reply. Shall i take as there is no vulnerability in php > and mysql? > I plan to use apache-1.3 series with same (as i speciifed in previous mail) > php and m

Re: [PHP] Re: Upload images to server other than web server?

2002-10-29 Thread Greg Macek
I will give the search a try tomorrow morning. But I can give direct access to the filesystem for one folder on the RaQ if needed as a temporary holding place. In my head it seems to be the best option I have. I'll see what my search results come up with tomorrow. On Tue, 2002-10-29 at 23:38, Jas

Re: [PHP] simple Q!

2002-10-29 Thread Rahul
Hello, Thanks for all reply. Shall i take as there is no vulnerability in php and mysql? I plan to use apache-1.3 series with same (as i speciifed in previous mail) php and mysql? can i use those(apache,php and mysql) in production use? agian thanks... Regards, -sahda > I'd suggest stick

[PHP] Re: Upload images to server other than web server?

2002-10-29 Thread Jason Young
Does it have direct access to this filesystem? Or maybe FTP access? I've seen a lot of talk about automatic FTP transfers on the list, maybe you can filter the topics and grab something from there? Just a few cents to throw in :) -Jason Greg Macek wrote: This topic may have been covered before

[PHP] Re: Form variables vs Sessions

2002-10-29 Thread Jason Young
Apologies if I'm being too simplistic here, but make sure that your first page's form elements have something similar to: And of course.. that your POST data is being grabbed accordingly by the first page to be able to set those variables. Maybe this helped? -Jason John W wrote: I am havin

Re: [PHP] Passing the variables ...

2002-10-29 Thread Peter J. Schoenster
On 29 Oct 2002 at 9:41, Mukta Telang wrote: > I have written followong code in hello.html: > > > printf("hello %s!",$textbox); > ?> > This script works fine with php in redhat 7.2 system > but does not work in solaris 7 ! > > I have done the php installation... > What are the chances th

Re: [PHP] Form variables vs Sessions

2002-10-29 Thread Chris Shiflett
Follow your instincts and do some research into sessions. I've put enormous amounts of data into sessions before on high-traffic sites without much trouble. You need to have the memory for it, of course, but it takes a lot of form data to equate to any significant amount. Chances are you'll be

[PHP] Form variables vs Sessions

2002-10-29 Thread John W
I am having a problem with a form system that I am developing. It is a multi page form with over a hundred different possible variables. The problem that I'm having is that when a user enters invalid data on one page and then submits to the next page I want that page to go back to the previous p

Re: Fw: [PHP] Re: headers and cookies

2002-10-29 Thread Chris Shiflett
There is no such "restriction of cookies." I think what the manual meant to say was that cookies must be sent prior to any output, which is the same restriction any other header has that you wish to set with the header() function, for example. I have forwarded this along to the documentation te

[PHP] Upload images to server other than web server?

2002-10-29 Thread Greg Macek
This topic may have been covered before, but I couldn't find any info on it. We have a Cobalt RaQ4 that serves up all our intranet sites, a couple of which will have forms for uploading files that are related to records stored in a DB. I'm not planning on storing the files in the DB, don't worry.

RE: [PHP] Decimal Places

2002-10-29 Thread Martin Towell
have a look at number_format() -Original Message- From: Andrew Wilson [mailto:will@;netwaynetworks.com.au] Sent: Wednesday, October 30, 2002 3:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Decimal Places Hay guys, I have two variables ( integers ) that are being minused one from the other

[PHP] Decimal Places

2002-10-29 Thread Andrew Wilson
Hay guys, I have two variables ( integers ) that are being minused one from the other and i am printing the result to the screen but i am getting unwanted decimals. print ($eall - $sall) / 1000; My question is what is the easiest way to strip decimals off the above result. The only way i know a

Re: [PHP] headers and cookies

2002-10-29 Thread Chris Shiflett
This is not correct. Both the setcookie() and header() functions manipulate the HTTP headers in the response. You cannot have output prior to any function that manipulates headers - that's the limitation. These two functions work fine together in any order; it's prior output that will cause an

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread a . h . s . boy
Errr...I'm not sure how this is applicable to my situation. I'm concerned, above all, with converting curly double quotes curly single quotes em and en dashes inverted exclamation points inverted question marks ellipses non-breaking spaces registered trademark symbols bullets left and right guill

RE: [PHP] MySQL and images

2002-10-29 Thread Mark Charette
There are times, especially in highly dynamic situations, where backing up and restoring of images and metadata from a database or for security reasons, where storing the images within a database makes real sense. Separating the physical storage areas for the two types of data (metadata & images) a

Re: [PHP] simple Q!

2002-10-29 Thread Rasmus Lerdorf
I'd suggest sticking with Apache 1.3.x for the time being. -Rasmus On Wed, 30 Oct 2002, Rahul wrote: > Hello all, > > I'm plan to use latest verison of Apache(httpd-2.0.43.tar.gz), >PHP(php-4.2.3.tar.gz) and MySql(mysql-3.23.53.tar.gz) combinations. > Just i want to conform is there any Vul

RE: [PHP] MySQL and images

2002-10-29 Thread John Meyer
Know that, believe that, been preaching that, but I just want to know just in case. Actually found the article. -Original Message- From: Rick Emery [mailto:remery@;emeryloftus.com] Sent: Tuesday, October 29, 2002 8:46 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] MySQL and images In order t

Re: [PHP] MySQL and images

2002-10-29 Thread Rick Emery
In order to speed-up queries, it is suggested that you DO NOT store images in the database. Rather, store the images in files and store file names in the database. - Original Message - From: "John Meyer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 9:32 PM Su

[PHP] MySQL and images

2002-10-29 Thread John Meyer
Assuming that I have to for some unknown reason, are there any articles on storing images in the database and retrieving them? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] simple Q!

2002-10-29 Thread Rahul
Hello all, I'm plan to use latest verison of Apache(httpd-2.0.43.tar.gz), PHP(php-4.2.3.tar.gz) and MySql(mysql-3.23.53.tar.gz) combinations. Just i want to conform is there any Vulnerability issues in any of these sources? Advance thanks. Regards, -Shadha

[PHP] Sample Meeting Management System

2002-10-29 Thread Faisal Abdullah
Hi people, Do you know where I can look at a free meeting management system? Nothing too fancy, just something that does the job. Thanks. Regards, Faisal __ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] About the code display on php.net

2002-10-29 Thread Daevid Vincent
Could someone please fix the function pages on http://www.php.net, so that when people submit code all nice and formatted, it retains that formatting in the contributed notes section? There are some really intricate examples, and it just makes it that much easier to read. Not to mention, the left a

RE: [PHP] Cutting off first 4 characters using array input names??

2002-10-29 Thread John W. Holmes
Pretty sure this is a known bug; it's been discussed on here a few times. Do a search for it. ---John Holmes... > -Original Message- > From: Jarrad Kabral [mailto:JarradK@;cordell.com.au] > Sent: Tuesday, October 29, 2002 6:23 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Cutting off first

Re: [PHP] HTML Post

2002-10-29 Thread Rick Emery
http://www.isp.com/directory/directory // $form_method: GET or POST // $form_data: associative array of data for GET or POST // $ShowRequest: if set, return the request sent to server // Request text enclosed by // Returns: string with data received from server function GetPost( $form_url

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread Jimmy Brake
for file maker pro (windows/mac) -- word (windows/mac) function make_safe($text) { $text = preg_replace("/(\cM)/", " ", $text); $text = preg_replace("/(\c])/", " ", $text); $text = str_replace("\r\n", " ", $text); $text = str_replace("\x0B", " ", $text); $t

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread Daniel Guerrier
Paste into notepad, the copy the text from notepad. Notepad should remove the high ASCII text. --- Brent Baisley <[EMAIL PROTECTED]> wrote: > I think you have posted before and probably didn't > get an answer. I'm > not going to give you an answer (because I don't > have one), but perhaps > I ca

[PHP] Need help...

2002-10-29 Thread BAROILLER Pierre-Emmanuel
Hi everyone... I've got a little problem : I've got an html template, with javasript functions and stylesheets in many places... This html template is made via a big big template handler i've done... All seems to work... But, now, I would like to clean this html page to procude a 'readable' page

Re: [PHP] HTML Post

2002-10-29 Thread Kevin Stone
Open a socket connection, formulate your data, post it to the host. Or do a searchfor the PostToHost() function. Good luck. -Kevin - Original Message - From: "Wei Weng" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 3:44 PM Subject: [PHP] HTML Post > How do

[PHP] Yahoo Moving to PHP (seen on slashdot)

2002-10-29 Thread Philip Hallstrom
Figured this was important enough to share... Yahoo Moving to PHP http://developers.slashdot.org/article.pl?sid=02/10/29/2052239&mode=thread&tid=169 Erek Dyskant writes "Yahoo has decided to switch from a proprietary system written in C/C++ to PHP for their backend scripting. Here's the notes fro

[PHP] Cutting off first 4 characters using array input names??

2002-10-29 Thread Jarrad Kabral
Hi Group, I have a problem where when I use array html input names like value[client_name] PHP cuts off the first 4 characters? example code: On the next page there should be a variable called $value with those values inside it. This is how it comes out when I do a print_r straight after on

[PHP] Upload files to MySQL database.

2002-10-29 Thread Renato Lopes
Hi! I am trying to upload files into a MySQL database. The problem is that I cannot upload anything over 1M. It comes up with an error message. Do I need to manually set the values for "post_max_size" and "upload_max_filesize" or are these set to the defaults of 8M and 2M, respectively? Thank

[PHP] HTML Post

2002-10-29 Thread Wei Weng
How do you do a HTML post in php? Thanks -- Wei Weng Network Software Engineer KenCast Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File Upload Problem

2002-10-29 Thread David Freeman
Hi All I'll start by saying that I've checked the online manual (and comments) as well as having done a Google search on this with no success. My problem is that files uploaded through a form are increasing in size. For example, I upload an image that is 7658 bytes and the uploaded version is 768

Re: [PHP] ODBC connectivity

2002-10-29 Thread Jonathan Sharp
First test that you can connect to the db server outside of php through an odbc connection...then come back if that doesn't work. -js Bill Hudspeth wrote: > I have developed a PHP application that accesses a Microsoft Access database > through ODBC. The application works well using PHP version

Re: [PHP] form arrays not populating $_POST

2002-10-29 Thread Mark Heintz PHP Mailing Lists
Like I said, it works fine on any other server. I was wondering if it could be a configuration issue. I believe $GLOBALS['HTTP_RAW_POST_DATA'] is not populated by default by a setting in php.ini. I turned it on to verify that the browser was actually transmitting the data which was missing from

Re: [PHP] form arrays not populating $_POST

2002-10-29 Thread Kevin Stone
I Copy and Pasted your code directly from this email and tested it. $GLOBALS['HTTP_RAW_POST_DATA'] never gets set, but the rest of it worked fine. Curious. -Kevin - Original Message - From: "Mark Heintz PHP Mailing Lists" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October

[PHP] ODBC connectivity

2002-10-29 Thread Bill Hudspeth
I have developed a PHP application that accesses a Microsoft Access database through ODBC. The application works well using PHP version 4.1. I have recently installed the newest version of PHP (4.2.3) on another machine running NT4, and IIS 4. Again, I am using an ODBC connection, and have given th

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread a . h . s . boy
Brent -- Thanks for the pointer, but it doesn't really address the problem. I am specifying the character set for the page (ISO-8859-1), and I'm inserting an ACCEPT-CHARSET parameter into the FORM element, but it specifies acceptable charsets as UTF-8, ISO-8859-1, and Windows 1252. The problem

Re: [PHP] screen resolution

2002-10-29 Thread John Nichel
Try a JavaScript mailing list. - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 2:18 PM Subject: [PHP] screen resolution I am making some pictures for my website in photoshop. Is there anyway I can use php or html

Re: [PHP] system() function

2002-10-29 Thread Jonathan Sharp
E... try COM maybe... -js Don Hicks wrote: > Hello, > > I'm running php on a Win2000 server. > > I also have an MS Access 97 database on the server. > > I want to tell the database to execute a macro on an "as needed" basis by > running a php system() function, but I'm having difficulty m

[PHP] form arrays not populating $_POST

2002-10-29 Thread Mark Heintz PHP Mailing Lists
I'm having a problem where $_POST is being populated with the values of a set of checkboxes after moving the script to a new server. The checkbox values appear in the raw post data, the proper number of indexes are created, but the data does't make it into the superglobal. The form similar to th

Re: [PHP] Secure Connection

2002-10-29 Thread Jonathan Sharp
Jonathan Sharp wrote: > This really has little to do with php. Use SSL for the connection > (search on your favorite search engine). > > If you're asking about storage methods of the sensative information, > www.php.net/crypt will answer that question. Correction: try www.php.net/mcrypt -js >

Re: [PHP] Secure Connection

2002-10-29 Thread Jonathan Sharp
This really has little to do with php. Use SSL for the connection (search on your favorite search engine). If you're asking about storage methods of the sensative information, www.php.net/crypt will answer that question. -js Pushpinder Singh Garcha wrote: > Hi, > > I am making a secure page wh

RE: [PHP] Re: POST-ing or GET-ing an array

2002-10-29 Thread SHEETS,JASON (HP-Boise,ex1)
You need to call start_session before accessing $_SESSION variables UNLESS you have PHP configured to automatically start_session (which is off by default). You need to start_sesion so that scripts that don't need $_SESSION don't go through the overhead of starting session. Jason -Original M

Re: [PHP] Re: POST-ing or GET-ing an array

2002-10-29 Thread Sascha Cunz
Hi, > I disagree that serialize/unserialize is the way to go, unless you're > absolutely completely sure that there will only be a relatively small > number of things in the array. As somebody mentioned briefly, the get > request is limited to a certain number of bytes, and the string > represent

Fw: [PHP] Re: headers and cookies

2002-10-29 Thread Kevin Stone
http://www.php.net/manual/en/function.setcookie.php And I quote, "setcookie() defines a cookie to be sent along with the rest of the header information. Cookies must be sent before any other headers are sent (this is a restriction of cookies, not PHP)."; If you absolutely must set cookies after yo

Re: [PHP] screen resolution

2002-10-29 Thread Kevin Stone
PHP runs on the server. It knows nothing about the client. Use Javascript to get information about the client and pass it to your PHP script. -Kevin - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 2:18 PM Subject: [PH

[PHP] Re: headers and cookies

2002-10-29 Thread rolf vreijdenberger
but are you really sure that you cannot use setcookie() and header() at the same time?? I cannot find it anywhere, either in the manuals or in tutorials or in the output control functions! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] screen resolution

2002-10-29 Thread Edward Peloke
I am making some pictures for my website in photoshop. Is there anyway I can use php or html to get the screen resolution so that I can load different images accordingly. I know I can just make them all less than 640 pixels wide but then they look to small on most computers. Thanks, Eddie --

[PHP] Re: POST-ing or GET-ing an array

2002-10-29 Thread Nick Eby
Hi, I disagree that serialize/unserialize is the way to go, unless you're absolutely completely sure that there will only be a relatively small number of things in the array. As somebody mentioned briefly, the get request is limited to a certain number of bytes, and the string representing your s

Re: [PHP] headers and cookies

2002-10-29 Thread Rolf Vreijdenberger
thanks, I already thought so I'll check it out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] headers and cookies

2002-10-29 Thread Jay Blanchard
[snip] I have one more than one occasion run into the problem of "headers already sent" when I was using the header function in combination with cookies. What is the right way of doing it? http://www.php.net/manual/en/function.ob-start.php HTH! Jay -- PHP General Mailing List (http://www.php.

[PHP] headers and cookies

2002-10-29 Thread rolf vreijdenberger
I have one more than one occasion run into the problem of "headers already sent" when I was using the header function in combination with cookies. What is the right way of doing it? http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] upload several files

2002-10-29 Thread Jason Young
I was going to post a similar response to this.. but I do recall that Hotmail uses a form where you select the filename and pop it over to a listbox.. then when you submit, it throws all the files into the email.. one page, one form, any number of files (up to 1 or 2 megs, however hotmail's lim

RE: [PHP] upgraded php - now some things are different

2002-10-29 Thread Shon Stephens
eureka! i just actually read that. i have only joined this list today. this is my first ever problem with php, and it turned out to be an easy one. thanks, shon -Original Message- From: Jay Blanchard [mailto:jay.blanchard@;niicommunications.com] Sent: Tuesday, October 29, 2002 3:20 PM To:

[PHP] Agata Report: new version

2002-10-29 Thread Pablo Dall'Oglio
Univates, October, 22, 2002 I've just published the version 3 of Agata Report = http://agata.codigolivre.org.br ::: Agata Report is a Report Generator writen in PHP-GTK using Pear:DB. ::: further information at the end of message. * Currently, Agata has support to English, Po

RE: [PHP] upgraded php - now some things are different

2002-10-29 Thread Jay Blanchard
[snip] i do not use the full version php, only the libphp4.so for apache. i was previously using v4.1.2 and recently upgraded a development system to v4.2.3. now, on the devlopement system the following things no longer work as they do on the 4.1.2 systems the PHP_SELF and SERVER_NAME variables a

Re: [PHP] Checking for a string.

2002-10-29 Thread ed
Thanks, figured that out shortly after I posted. Ed On Tue, 29 Oct 2002, John Nichel wrote: > http://www.php.net/manual/en/function.preg-match.php > > Wrong syntax, and more code than needed. Your code would always resolve > true (if ($matches[0] = "http")). Doing that sets the value of

[PHP] upgraded php - now some things are different

2002-10-29 Thread Shon Stephens
i do not use the full version php, only the libphp4.so for apache. i was previously using v4.1.2 and recently upgraded a development system to v4.2.3. now, on the devlopement system the following things no longer work as they do on the 4.1.2 systems the PHP_SELF and SERVER_NAME variables are emp

Re: [PHP] remove/uninstall php3 on linux

2002-10-29 Thread Tony Earnshaw
tir, 2002-10-29 kl. 19:28 skrev MIke Pogue: > Do you have any ideas how could I remove/uninstall an old php3 version on linux? > Should I delete the files manually? linux is a many splendored thing. On mine, I go about it exactly the same way as I did on SCO OpenServer, UnixWare and Solaris when

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread Brent Baisley
I think you have posted before and probably didn't get an answer. I'm not going to give you an answer (because I don't have one), but perhaps I can point you in the right direction. Look at http://www.w3.org/TR/REC-html40/charset.html and see if that helps you. Below is a paragraph I pulled from

[PHP] Re: Cleaning pasted Word text

2002-10-29 Thread Philip Hallstrom
You might look at the htmlentities() function... On Tue, 29 Oct 2002, a.h.s. boy wrote: > I'm working on a PHP-based CMS that allows users to post lengthy > article texts by submitting through a form. The short version of my > quandary is this: How can I create a conversion routine that reliably

Re: [PHP] upload several files

2002-10-29 Thread Kevin Stone
http://www.php.net/manual/en/features.file-upload.multiple.php -Kevin - Original Message - From: "Andres, Cyrille" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 12:19 PM Subject: [PHP] upload several files > > Hello everybody, > > I created a form allowing u

RE: [PHP] back and forward through a result query

2002-10-29 Thread Davy Obdam
Hi Petre Why not use LIMIT in your query? Like this: ".$sql['id'].""; } //navigation Echo" ".($prev>=0?"Previous page":"")." ".($total_count>=$next+1?"Next page":"").""; ?> I hope this helps you. Best regards, Davy Obdam The Netherlands mailto:info@;davyobdam.com > -Oorspronkelijk

[PHP] Secure Connection

2002-10-29 Thread Pushpinder Singh Garcha
Hi, I am making a secure page where users will be able to send credit card information. What kind of support does php offer? Thanks Pushpinder Singh Garcha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Sascha Cunz
> Hey, > I think you should be able to serialize and urlencode the array and then > pass that via get/post.post would be a lot better as get is limited to > so many chars. Something like: > $sql = "select stuff from my_table"; > $result = mysql_query($sql); > while ($myrow = mysql_fetch_assoc($

Re: [PHP] Checking for a string.

2002-10-29 Thread John Nichel
http://www.php.net/manual/en/function.preg-match.php Wrong syntax, and more code than needed. Your code would always resolve true (if ($matches[0] = "http")). Doing that sets the value of $matches[0] to "http". Equality is ==. RTFM. If all you want to know is if the URL contains a "http", t

[PHP] upload several files

2002-10-29 Thread Andres, Cyrille
Hello everybody, I created a form allowing user to upload some files on my server. It works very fine. But now I would like him -the user- to be able to choose several files and upload them at the same time by submitting the form. Actually I don't really know how to do that, if somebody would ha

[PHP] Cleaning pasted Word text

2002-10-29 Thread a . h . s . boy
I'm working on a PHP-based CMS that allows users to post lengthy article texts by submitting through a form. The short version of my quandary is this: How can I create a conversion routine that reliably substitutes HTML-acceptable output for high-ASCII characters pasted into the form (from

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread John Nichel
Do a little debugging. The error is easy to spot.. Ok, wrote the following code, but get a parse error line 74 (last part of the code): if (empty($navn) || empty($addresse) || empty($postnummer) || empty($sted) || empty($epost)) { include("head.inc"); } <--- GET RID OF THIS! if

Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I think you should be able to serialize and urlencode the array and then pass that via get/post.post would be a lot better as get is limited to so many chars. Something like: $sql = "select stuff from my_table"; $result = mysql_query($sql); w

Re: [PHP] Checking for a string.

2002-10-29 Thread ed
Seems to work but I'm getting a Warning Message: Delimiter must not be alphanumeric or backslash Here's the code: $path = "http://somehost.somedomain.com";; preg_match ("http", $path, $matches); if ($matches[0] = "http") { $action = "this action"; } else { $action = "that action

Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Kevin Stone
Checkout serialize(); and unserialize(); http://www.php.net/manual/en/function.serialize.php http://www.php.net/manual/en/function.unserialize.php //On your first page.. $myarray = serialize($myarray); echo "Link"; //Then on your other page.. $myarray = unserialize($_GET['myarray']); print_r($mya

[PHP] system() function

2002-10-29 Thread Don Hicks
Hello, I'm running php on a Win2000 server. I also have an MS Access 97 database on the server. I want to tell the database to execute a macro on an "as needed" basis by running a php system() function, but I'm having difficulty making the action happen. I suspect it's my coding. I'm currently

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Tine
"Martin Hudec" <[EMAIL PROTECTED]> wrote in message news:18910327021.20021029184135@;corwin.sk... > Hello Tine, > > it looks okay to me butlooks like you have met two conditions at > time ($sted == "") and ($telefon == "0")why dont u make something > like this? > > if (empty($sted) || empt

[PHP] remove/uninstall php3 on linux

2002-10-29 Thread MIke Pogue
Hi Guys, Do you have any ideas how could I remove/uninstall an old php3 version on linux? Should I delete the files manually? Many Thanks, Mike

Re: [PHP] Checking for a string.

2002-10-29 Thread John Nichel
preg_match() [EMAIL PROTECTED] wrote: I'm currently writting a redirect script for my site which will transfer someone to either a external link or a directory on my server. In order to do this I need to use a directive that either contains the directory path or a URL. How do I check the contents

Re: [PHP] Problems getting error values in FILES superglobal.

2002-10-29 Thread Jorge . Manuel . Silva
I think I found a way of solving the problem. When the transfer is interrupted $_FILES is filled and no error is reported. However $_POST will be empty. So, if $_FILES['userfile']['error'] is set to 0 (meaning no error) but $_POST is empty, it means that the file upload was interrupted. Jorge.

[PHP] Checking for a string.

2002-10-29 Thread ed
I'm currently writting a redirect script for my site which will transfer someone to either a external link or a directory on my server. In order to do this I need to use a directive that either contains the directory path or a URL. How do I check the contents of a string to see if it contains "htt

Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Petre Agenbag
Oops, I forgot to add the $count++ at the end of the while loop, but that was just an ommission of this post, in my real code, the array is created fine ( tested it with a print_r($my_array) ). On Tue, 2002-10-29 at 19:40, Petre Agenbag wrote: > Hi > I KNOW I'm gonna get flamed, but I can't find

Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Sascha Cunz
Hi, first of all, i would prefer to do this task in a session-variable (less traffic, less security holes). But, if you're sure you need to pass the array via an URL, try: which will result in test.php called with $_GET['ary'] containing: [0] = '1' [1] = '2' If the array contains strings (a

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Tine
"Martin Hudec" <[EMAIL PROTECTED]> wrote in message news:18910327021.20021029184135@;corwin.sk... > Hello Tine, > > it looks okay to me butlooks like you have met two conditions at > time ($sted == "") and ($telefon == "0")why dont u make something > like this? > > if (empty($sted) || empt

[PHP] POST-ing or GET-ing an array

2002-10-29 Thread Petre Agenbag
Hi I KNOW I'm gonna get flamed, but I can't find this anywhere in my books or in the manual, yet I know I've read it somewhere. I created an array in a loop as such: $sql = "select stuff from my_table"; $result = mysql_query($sql); $count = 0; while ($myrow = mysql_fetch_assoc($result)) {

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Martin Hudec
Hello Tine, it looks okay to me butlooks like you have met two conditions at time ($sted == "") and ($telefon == "0")why dont u make something like this? if (empty($sted) || empty($telefon)) { include header if (empty($sted)){ echo STED NOT FILLED... } if (empty($telefon)

Re: [PHP] unique id

2002-10-29 Thread 1LT John W. Holmes
> How do I generate a uniqueid in php? www.php.net/uniqid ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: .inc files doubles up

2002-10-29 Thread Tine
"Tine" <[EMAIL PROTECTED]> wrote in message news:20021029171957.30722.qmail@;pb1.pair.com... > This is really my first major PHP encounter, and I have attempted to modify > a php form mail script to include a foot.inc and head.inc file, which works > fine if all required fields in the form is fill

[PHP] .inc files doubles up

2002-10-29 Thread Tine
This is really my first major PHP encounter, and I have attempted to modify a php form mail script to include a foot.inc and head.inc file, which works fine if all required fields in the form is filled out. But if there are more than 2 required fields missing I end up with what you see here: http:

Re: [PHP] Array Question

2002-10-29 Thread PHP List
No, array_keys does not do what I want, in order to user array_keys, it assumes I know the value of the key, but I don't, I want to get the value of the key but all I know is the index. > Perhaps you want to look at array_keys(). > > On Monday, October 28, 2002, at 05:48 PM, PHP List wrote: > > >

Re: [PHP] php form mail - checkbox problem

2002-10-29 Thread Tine
> Please don't answer with "Tried that" without showing us your new HTML and code > Show us the new code. Sorry - found my mistake. I had forgotten to include a hidden input field :oO -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regex Help

2002-10-29 Thread Gerard Samuel
Im trying to explode a string into an array of words using -> $title = preg_split('/[^\w\']/', $title, -1, PREG_SPLIT_NO_EMPTY ); It seems to work well with words like "this" and "don't" but it doens't work with words with accents to it like "Guantánamo" Could my regex be expanded to handle non-

[PHP] PHP XML mailing list

2002-10-29 Thread Chris Boget
Are any of you subscribed to the above list? If so, do you ever see any traffic on it? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need php help $$

2002-10-29 Thread rhodespc
Sorry, do not want to intrude. I am a developer like the rest of you. I underestimated and underbid a project and need some serious help. I am a hardcore java developer (5+ years),and tried to get some java help but not finding success. While the core of my application is java, I am in need of

[PHP] unique id

2002-10-29 Thread Edward Peloke
How do I generate a uniqueid in php? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] searching an array

2002-10-29 Thread @ Edwin
Hello, Looking for this? http://www.php.net/manual/en/function.max.php - E "Davíð Örn Jóhannsson" <[EMAIL PROTECTED]> wrote: > I have a array called $arr[], it holds integer values, I don't know how > many indexes it holds and I need to be able to find out what the hash > ($arr[index]) > ho

Re: [PHP] searching an array

2002-10-29 Thread John Nichel
You could sort the values (ascending or descending), and select the first or last value (depending on how you sorted it). Davíð Örn Jóhannsson wrote: I have a array called $arr[], it holds integer values, I don’t know how many indexes it holds and I need to be able to find out what the hash ($ar

Re: [PHP] Select values in an array???

2002-10-29 Thread @ Edwin
fish 'n chips on me :) Good job there--volunteers are great! - E "Rick Emery" <[EMAIL PROTECTED]> wrote: > Edwin, you are CORRECT. I had a brain-fart. > > I stand before you all, humbled > > Round of beer for everyone in the house > > cheers > > rick- Original Message - > From: "@ Edwi

[PHP] searching an array

2002-10-29 Thread Davíð Örn Jóhannsson
I have a array called $arr[], it holds integer values, I don’t know how many indexes it holds and I need to be able to find out what the hash ($arr[index]) holds the largest value, is this possable, and if so how? Regards, David

  1   2   >