Re: [PHP] OT-Re: worm on th list

2003-08-22 Thread daniel
aparantly it was designed to slow the web down, and its proved that, but also aparantly it infects by not even opening an attatchment but it could possibly have vb script within a html email :\ On Wed, Aug 20, 2003 at 11:11:43AM -0400, andu wrote: Is this worm/virus windows specific? It

Re: [PHP] OT-Re: worm on th list

2003-08-22 Thread John Taylor-Johnston
Get your mail sysadmins to install spamassassin, which I believe is OpenSourced PHP, and the filter your {SPAM} directly into the garbaaage. if everyone did this, and therefore stopped opening dangerous mail, maybe we could slow some of this down. :) Oh well, just my 2¢ On Wed, Aug 20, 2003

Re: [PHP] OT-Re: worm on th list

2003-08-22 Thread [EMAIL PROTECTED]
Hi, Though many consider netscape to be a poor alternative to explorer as a browser, it's far superior to outlook when it comes to mail. Far safer too. :-)). Most of us on linux use mozzilla for everything - browsing, chatting and email. [EMAIL PROTECTED] wrote: aparantly it was designed to

Re: [PHP] OT-Re: worm on th list

2003-08-22 Thread Peter James
As an aside... I wonder what the ratio is of emails *from* the virus vs. emails *about* the virus. The latter certainly doesn't help the impulse response of the attack. :-) -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals

Re: [PHP] OT-Re: worm on th list

2003-08-22 Thread daniel
yes my spamassasin does this it adds spam like {spam?} and viruses {virus?} how can i filter that though in outlook like the damn thing only filters emails. Get your mail sysadmins to install spamassassin, which I believe is OpenSourced PHP, and the filter your {SPAM} directly into the

Re: [PHP] OT-Re: worm on th list

2003-08-22 Thread Ashley M. Kirchner
John Taylor-Johnston wrote: Get your mail sysadmins to install spamassassin, which I believe is OpenSourced PHP SpamAssassin is perl combined with C-code. Not PHP. -- H| I haven't lost my mind; it's backed up on tape somewhere.

Re: [PHP] File upload + permissions + .htaccess in php

2003-08-22 Thread Nicholas Robinson
I've had this problem twice recently. Once it was because I'd foolishly moved a script that used relative pathnames. The result was that I was trying to access a file outside the DocumentRoot and it didn't matter what the permissions on the file were, it wasn't trying to open that one at all!

Re: [PHP] Your details

2003-08-22 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... This is the only time I'm glad I use Yahoo mail for this list. Seems either their AV software or their mangling of attachments provided some level of protection. Though I knew they were viri, I wanted to check one out. They came across

[PHP] Re: OT-Re: worm on th list

2003-08-22 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Is this worm/virus windows specific? Well, most of them are these days. Easy targets and all that... -- Quod subigo farinam $email =~ s/oz$/au/o; A: Because it messes up the order in which people normally read text. Q: Why is

[PHP] Re: This is getting rediculus

2003-08-22 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Some joker is somehow making all are posts being sent to request subscriptions, help-list, unsubscriptions.. etc. I'm not sure how we can stop this nonsense. Part of the problem is there seems to be nobody in control of this list. I

[PHP] count rows

2003-08-22 Thread John Taylor-Johnston
Help me out here. I want to get a numeral on the number of records in a table. What is the function? http://www.php.net/manual-lookup.php?pattern=fetch%2Browslang=en http://www.php.net/manual-lookup.php?pattern=fetch%2Brecordslang=en ? :) John -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] timestamp

2003-08-22 Thread John Taylor-Johnston
This is what I'm using so far. But I need to put in a time stamp to calculate if the visitor is new. I want to use the IP so if the ip saved in MySQL is older than 60 minutes, it will write a new record, if not, don't: $myconnection = mysql_connect($server,$user,$pass);

Re: [PHP] count rows

2003-08-22 Thread [EMAIL PROTECTED]
mysql_num_rows gives the number of rows. But don't even think of doing it this way if you just want the number of rows and don't want the data. The correct way is to use a query such as [sql] select count(*) from table [/sql] this will return just one row and it wil tell you how many rows are

Re: [PHP] datetime

2003-08-22 Thread Marek Kilimajer
Best and fastest way is to let mysql format the date, look into mysql manual for DATE_FORMAT() function. Dale Hersh wrote: I am using a mssql database and I have a question regarding the datetime type. When I write a date to the database it store the date in the following format: 6/8/03 But

Re: [PHP] How to open random Flash page with hyperlink?

2003-08-22 Thread murugesan
Thanks for the message. Can you please tell me how to do session authentication?. -murugesan - Original Message - From: Cody Phanekham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:05 AM Subject: FW: [PHP] How to open random Flash page with hyperlink?

Re: [PHP] Newbie Question

2003-08-22 Thread Phil King
Hi Everyone, Thanks a lot for all your advice, I really appreciate it. PHP / mysql is new to me so excuse my ignorance of the subject.. I will go get phpMyAdmin and give it a whirl. Thanks again. Phil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] text area question

2003-08-22 Thread Angelo Zanetti
Hi this is slightly off topic but i hope i will be forgived. I have a textarea and whenever my page loads and I click in it the cursor nevers starts at the very beginning and I have to push the backspace buttton until i get to the start. is there a property or something to fix this?? thanx in

Re: [PHP] text area question

2003-08-22 Thread Marek Kilimajer
Your textarea should be: textarea name= /textarea and not textarea name= /textarea Angelo Zanetti wrote: Hi this is slightly off topic but i hope i will be forgived. I have a textarea and whenever my page loads and I click in it the cursor nevers starts at the very beginning and I

[PHP] Need some help: Setup PHP5 beta with Windows XP/IIS 5.1

2003-08-22 Thread pt2002
Hi, I would like to see this beta of php5, to make some tests with new OO features. I've been trying install it like a ISAPI module, but always get the error: module not found! With cgi, it throws another error with headers. TIA -- PHP General Mailing List (http://www.php.net/) To

[PHP] [PHP]: CSV export

2003-08-22 Thread Kai Poppe
Hello NG ! I'm trying to export database entries to a CSV file for Excel. Everything's working perfectly except that blob (long-text) fields that contain line-breaks are being exported to different lines within the CSV. I can't figure out how to convert the \n's respectively chr(13).chr(10) into

RE: [PHP] Mailing List Weirdness

2003-08-22 Thread Brian S. Drexler
Forge the headerspleasesomeone. :) -Original Message- From: Dan Van Derveer [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 1:19 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Mailing List Weirdness Most mailing lists(I don't know about this one because I have yet to

RE: [PHP] text area question

2003-08-22 Thread Keith Higgs
Only if you're concerned about those few whitespace characters increasing your file size. Granted, there mey be PHP output related issues to a multi-line whitespace within an echo or print operation but, so far as the actual HTML is concerned, white space is white space and it should all be

[PHP] Getting browser resolution??

2003-08-22 Thread Bjarke Andersen
Hi I've just started with PHP and i trying to find a function for getting the screen resolution, if that i posible?? I need it to resize pictures, so that nomatter what resolution a user haves, a picture allways uses for example 25% of the width of the screen... I hope someone can help me!

RE: [PHP] Getting browser resolution??

2003-08-22 Thread Thijs Lensselink
This is done by JavaScript or some other client side programming language. Remember that php is server side. -Oorspronkelijk bericht- Van: Bjarke Andersen [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 22 augustus 2003 14:48 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Getting browser

[PHP] Results Page Numbering

2003-08-22 Thread Haseeb
hi, i have a simple solutions for paging a large query result into pages. format your SQL Query like this and it will work $nTotal_No_Of_Results_Shown_On_A_Page=20; if (empty($nCurrentPage)) $nCurrentPage=1; $tablename="tblusers"; // table from where the data is comming from

Re: [PHP]: CSV export

2003-08-22 Thread Christophe Chisogne
Kai Poppe wrote: I'm trying to export database entries to a CSV file for Excel. Everything's working perfectly except that blob (long-text) fields that contain line-breaks are being exported to different lines within the CSV. With excel CSV: - \n is a record separator - ; is the

[PHP] Question for you guys and gals

2003-08-22 Thread David Smith
Hi! I have a problem. I have all my functions (currently) set aside in one file, and I just require_once that page for all of the other pages that may need any of those functions. In those functions I have it setup to echo the link to the CSS page for my site (just a very lazy way of doing it). My

Re: [PHP] Getting browser resolution??

2003-08-22 Thread Oli
Use javascript and pass to php: script language=JavaScript var SCRwidth = window.screen.width; var SCRheight = window.screen.height; /script Regards, Oli Thijs Lensselink [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is done by JavaScript or some other client side

Re: [PHP] Re: naughty words / filter

2003-08-22 Thread Jason Sheets
Try using str_ireplace, it is str_replace but is case insensitive. str_replace and str_ireplace both can take arrays as parameters for the needle, replacement value. The string functions tend to be much faster than regular expressions, in any case you don't need the foreach.. Jason Chris

[PHP] imagick_readimage

2003-08-22 Thread manuel muñoz solera
hi! I'm working with imagick_readimageand I can read formats like BMP or PICT but when I try to do imagick_readimage(sometif.tif) it doesn't seems to work (bur it doesn't return an error). If I use the handler with another function like imagick_convert it returns me: Warning :

Re: [PHP] Question for you guys and gals

2003-08-22 Thread CPT John W. Holmes
From: David Smith [EMAIL PROTECTED] I have a problem. I have all my functions (currently) set aside in one file, and I just require_once that page for all of the other pages that may need any of those functions. In those functions I have it setup to echo the link to the CSS page for my site

Re: [PHP] Question for you guys and gals

2003-08-22 Thread Curt Zirzow
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): From: David Smith [EMAIL PROTECTED] I have a problem. I have all my functions (currently) set aside in one file, and I just require_once that page for all of the other pages that may need any of those functions. In those functions I have

php-general Digest 22 Aug 2003 16:06:36 -0000 Issue 2252

2003-08-22 Thread php-general-digest-help
php-general Digest 22 Aug 2003 16:06:36 - Issue 2252 Topics (messages 160375 through 160424): Re: datetime 160375 by: Larry_Li.contractor.amat.com 160376 by: Cody Phanekham 160406 by: Marek Kilimajer Re: Easy XML PHP tutorials ? 160377 by: Burhan Khalid

Re: [PHP] Question for you guys and gals

2003-08-22 Thread CPT John W. Holmes
From: Curt Zirzow [EMAIL PROTECTED] Or cheat and use output buffering. IMO, thats an even more lazy way of doing it. I agree entirely. I hate even giving that option, but it is there. That's why I said he could cheat :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/)

[PHP] isset bug?

2003-08-22 Thread Christian Calloway
Ok, here's the deal. I like to use $_GET and $_POST variables without values to notify my scripts that some action must be taken. For example, given the following URL: http://blahdomain/blah.php?productid=1edit or given the following form element: input type=hidden name=edit My blah.php script

[PHP] I wish I knew more about multi-dimensional arrays

2003-08-22 Thread Verdon vaillancourt
Hi, please don't chuckle (too loudly) at my attempts to learn ;) I'm trying to create what I think would be a multi-dimensional array from a mysql result set, to use in some example code I got off this list last week. The example renedring code I want to work with is... ?php $data = array('A',

Re: [PHP] File upload + permissions + .htaccess in php

2003-08-22 Thread Ryan A
Hey, Thanks for replying. the paths i am using are as follows: $UserUploadDir=/usr163/home/r/y/ryanknig/public_html/BWH-Ads-Images; $UserUploadURL = http://jumac.com/BWH-Ads-Images;; But they still dont workany ideas? Thanks, -Ryan I've had this problem twice recently. Once it was

Re: [PHP] I wish I knew more about multi-dimensional arrays

2003-08-22 Thread Ray Hunter
mysql result as a multi-dimensional array: while( $row = mysql_fetch_array($result) ) { $rows[] = $row; } now you have a multi-dimensional array that contains each row in rows... examples: row 1 col 1 - $rows[0][0] row 3 col 2 - $rows[3][2] hth -- bigdog On Fri, 2003-08-22 at 10:37,

Re: [PHP] isset bug?

2003-08-22 Thread Curt Zirzow
* Thus wrote Christian Calloway ([EMAIL PROTECTED]): Ok, here's the deal. I like to use $_GET and $_POST variables without values to notify my scripts that some action must be taken. For example, given the following URL: http://blahdomain/blah.php?productid=1edit or given the following

Re: [PHP] timestamp

2003-08-22 Thread John Taylor-Johnston
Anyone? Please :) John Taylor-Johnston wrote: This is what I'm using so far. But I need to put in a time stamp to calculate if the visitor is new. I want to use the IP so if the ip saved in MySQL is older than 60 minutes, it will write a new record, if not, don't: $myconnection =

[PHP] CMS question.

2003-08-22 Thread Edmond Baroud
Hi all, I have a friend who have paid a developper to build him a CMS. This honest programmer did that (supposedly developped it on his own), encoded the CMS with Ioncube and did some other unethical activities as well. To make a long story short, I have read some articles about decoding and

Re: [PHP] timestamp

2003-08-22 Thread Gabriel Guzman
On Thu, 2003-08-21 at 22:23, John Taylor-Johnston wrote: Not teasing, I know I could do this with some ready made script, but I want to make my own. I'm making a counter. CREATE TABLE `counter` ( `IPAddress` VARCHAR NOT NULL , `RemoteHost` VARCHAR NOT NULL , `TimeStamp` TIMESTAMP

RE: [PHP] Re: rich text editing

2003-08-22 Thread Andy Crain
The only problem in doing so, for me at least, is in editing text created by htmlarea. Nonsupported users who get a normal textarea pre-loaded with html generated by htmlarea could break tags, etc., on updates. I wrote a class I use to work around this by: determining which type of textarea

Re: [PHP] isset bug?

2003-08-22 Thread Christian Calloway
What I was trying to avoid is exactly that. It would require changing links and hidden fields throughout the entire application, which would take hours to track down. I am looking for a nice lazy and easy fix. Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote

[PHP] File upload restrictive permissions

2003-08-22 Thread Doug Parker
Recently I had a problem with file uploading on a server I use, and the problem was that the tmp/ directory was not set. Now that it has been set, the images do upload, but the file permissions end up being very restrictive - something like (-rw---) - so the images obviously do not show up on

Re: [PHP] timestamp

2003-08-22 Thread John Taylor-Johnston
I'm creating a counter. I want a timestamp where I can calculate if a time stamp is older than one hour, if so do X, if not do Y. Gabriel Guzman wrote: http://us4.php.net/time and http://www.mysql.com/doc/en/DATETIME.html I have looked at both, especially

Re: [PHP] timestamp

2003-08-22 Thread Gabriel Guzman
On Fri, 2003-08-22 at 11:50, John Taylor-Johnston wrote: I'm creating a counter. I want a timestamp where I can calculate if a time stamp is older than one hour, if so do X, if not do Y. so, you have the timestamp already correct? in your mysql db. all you should need to do is get the

[PHP] '' Sign in _GET Parameter

2003-08-22 Thread Pushpinder Singh Garcha
Hello All, I am using an application where I retrieve user profile from a MySQL DB using the Company Name . I pass the name of the company to the PHP script as a '$_GET' parameter. e.g. when the name of the company is 'IBM'. , the URL with the query string would look like :

[PHP] anyone have any idea as to how to display a message after a page has started loading??

2003-08-22 Thread Jeffrey D. Means
I am looking for a way to say please wait generating thumbnails... while actually doing so. I have tried calling the JavaScript alert() function before starting the image processing but it waits for the page to complete loading before displaying the alert box. anyone have any ideas on this??

Re: [PHP] anyone have any idea as to how to display a messageafter a page has started loading??

2003-08-22 Thread Matt Babineau
Perhaps you wrap a table around your image and set the background= of the table to an image of the same size that says Loading Thumbnails, then when the image loads, it loads over the background. Matt On Fri, 2003-08-22 at 15:08, Jeffrey D. Means wrote: I am looking for a way to say please wait

Re: [PHP] '' Sign in _GET Parameter

2003-08-22 Thread Gabriel Guzman
On Fri, 2003-08-22 at 12:05, Pushpinder Singh Garcha wrote: Hello All, I am using an application where I retrieve user profile from a MySQL DB using the Company Name . I pass the name of the company to the PHP script as a '$_GET' parameter. e.g. when the name of the company is 'IBM'.

Re: [PHP] '' Sign in _GET Parameter

2003-08-22 Thread CPT John W. Holmes
From: Pushpinder Singh Garcha [EMAIL PROTECTED] I am using an application where I retrieve user profile from a MySQL DB using the Company Name . I pass the name of the company to the PHP script as a '$_GET' parameter. e.g. when the name of the company is 'IBM'. , the URL with the query

Re: [PHP] timestamp

2003-08-22 Thread CPT John W. Holmes
From: John Taylor-Johnston [EMAIL PROTECTED] I'm creating a counter. I want a timestamp where I can calculate if a time stamp is older than one hour, if so do X, if not do Y. SELECT * FROM Table WHERE timestamp_column NOW() - INTERVAL 60 MINUTE will give you all rows that have a timestamp

Re: [PHP] timestamp

2003-08-22 Thread John Taylor-Johnston
Indeed easier than I thought?! :) timestamp(14) is ok :) Thanks John! John -- http://compcanlit.ca/ Quoting CPT John W. Holmes [EMAIL PROTECTED]: SELECT * FROM Table WHERE timestamp_column NOW() - INTERVAL 60 MINUTE will give you all rows that have a timestamp column that's over 60 minutes

RE: [PHP] anyone have any idea as to how to display a message after a page has started loading??

2003-08-22 Thread Dan Joseph
Hi, I am looking for a way to say please wait generating thumbnails... while actually doing so. I have tried calling the JavaScript alert() function before starting the image processing but it waits for the page to complete loading before displaying the alert box. anyone have any ideas on

[PHP] Re: Getting browser resolution??

2003-08-22 Thread erythros
you don't need to get the screen resolution for that. if you still want the screen resolution you'll have to look at javascript. just assign the pictures width to 25%. no matter the screen size, or resolution ie will set the picture to 25% of the window. it's pure html... img src=image.jpg

Re: [PHP] '' Sign in _GET Parameter

2003-08-22 Thread Pushpinder Singh Garcha
Thanks for the link, $link = $row['company']; a href=\full_profile_1.php?name=', urlencode($link),' \ However this does not seem to work / what am I missing ? Thanks -Pushpinder On Friday, August 22, 2003, at 03:23 PM, CPT John W. Holmes wrote: From: Pushpinder Singh Garcha [EMAIL

[PHP] Clean Up the sand box time

2003-08-22 Thread John Taylor-Johnston
This is my favourite question. Can I clean up my 'if then' statements a tad? Must be a cleaner way? Still learning, still having fun :) Thanks, John $news = mysql_query($sql) or die(print document.write(\.mysql_error().\);); $found = 0; while ($mydata = mysql_fetch_object($news)) {

Re: [PHP] isset bug?

2003-08-22 Thread Robert Cummings
This should help: http://www.php.net/manual/en/function.array-key-exists.php Cheers, Rob. On Fri, 2003-08-22 at 13:26, Curt Zirzow wrote: * Thus wrote Christian Calloway ([EMAIL PROTECTED]): Ok, here's the deal. I like to use $_GET and $_POST variables without values to notify my

[PHP] PHP and directory permissions

2003-08-22 Thread Lowell Allen
I developed a script which updates some static HTML pages. The script creates temporary files and opens them for writing. It then reads the HTML content of PHP-generated pages and writes that to the temp files. If that's successful, it copies the temp files to the static files, thus updating them.

Re: [PHP] Clean Up the sand box time

2003-08-22 Thread Robert Cummings
Absolutely, the best way *tongue in cheek* is to format as follows: $news = mysql_query($sql) or die( print document.write(\.mysql_error().\);); $found = 0; while( $mydata = mysql_fetch_object( $news ) ) { if( $getaddr == $mydata-IPAddress ) { $found = 1; } } if( $found 0 )

RE: [PHP] anyone have any idea as to how to display a message aftera page has started loading??

2003-08-22 Thread Robert Cummings
Also make sure you don't have output buffering or compression on for the page in question. Cheers, Rob. On Fri, 2003-08-22 at 16:42, Dan Joseph wrote: Hi, I am looking for a way to say please wait generating thumbnails... while actually doing so. I have tried calling the JavaScript

[PHP] Trading senerio

2003-08-22 Thread Joaco
I am trying to create an interface that will allow two users do do a trade of items live on the web. What I want to happen, and I have seen it done on other sites, is open a window that both people see on their machine and are able to offer trades. Once the trade is accepted by both people, the

Re: [PHP] Re: google style paginating

2003-08-22 Thread Rob Yelvington
The Pear Pager class works like a champeen, too. It'll paginate results however you'd like it to. ~Rob Chris W. Parker wrote: Robert Cummings mailto:[EMAIL PROTECTED] on Thursday, August 21, 2003 4:46 PM said: Don't retrieve ALL the queries then only display a subset. Otherwise what's the

[PHP] float precision format not being kept

2003-08-22 Thread Rob Yelvington
I have a list of floats that I need to put into an array, when I put them into an array manually the floats lose their format, for example: $a = array(1=3.50807443617658E-4); print $a[1] returns: 0.00035080744361766 I'm familiar with round() and all the math functions, but I'm stumped. Any

Re: [PHP] WYSIWYG editor for PHP

2003-08-22 Thread Rob Yelvington
Active State's Komodo and Zend Studio are both awesome! I used to use Dreamweaver, but it's syntax highlighting stinks...IMHO. ~Rob Bix wrote: I use dreamweaver in live data mode quite often, really works a treat! Set up a a site and in the testing server, just set it as /beta or the like,

[PHP] need help figuring out how to delete rows?

2003-08-22 Thread Deadsam
Hi Im making a chatroom using flash and php, the one problem Im having is deleting rows. What I'm looking for is when they click on the button to send the message into php--mySql it will also check to see how many rows are in that table and if they are greater then 40, then to delete the rows

[PHP] PHPOPENCHAT: he script tried to execute a method or access a property of an incomplete object.

2003-08-22 Thread Robert Mena
Hi, I've installed and tested phpopenchat 3.0b2 in my development machine (Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6 PHP/4.3.0) with no problems. When I moved to the real server (PHP Version 4.3.2) it keeps giving me this answer Fatal error: Unknown(): The script tried

[PHP] Server variables on IIS

2003-08-22 Thread Sid
Hello, I am trying to migrate a PHP script and just realized that the IIS server I am working on does not have the REQUEST_URI, SCRIPT_FILE_NAME and DOCUMENT_ROOT server variables. This makes the script malfunction. Does anyone know how I can get these variables? If you would like to see info

[PHP] eval function

2003-08-22 Thread Matthias Wulkow
Hi php-general, I have a question about eval(); I'm having multiple pagenames I store in a database. I also have a lot of functions starting with content and then the name of the pages taken from the database. Ex: pagenames = about,download functions = contentAbout(), contentDownload(). Now I

[PHP] Deleting same values from an array

2003-08-22 Thread Stephen Craton
Hello, I have an array called $stems that has a bunch of numbers in it like 2, 5, 4, 4, 2, 6, 8. What I want to do is delete a section of the array that has the same number. In the example of the numbers I listed, I'd want to delete one of the number 4's, and one of the number 2's so that it

[PHP] STRING_FORMAT

2003-08-22 Thread Dale Hersh
I have looked in the online manual for mssql and it describes a function called string_format that will allow one to format your data stored in your database. I am just not sure how to use it in a select statement and I can't seem to find any examples of how to use it. Any ideas? Thanks, Dale

Re: [PHP] STRING_FORMAT

2003-08-22 Thread Curt Zirzow
* Thus wrote Dale Hersh ([EMAIL PROTECTED]): I have looked in the online manual for mssql and it describes a function called string_format that will allow one to format your data stored in your database. I am just not sure how to use it in a select statement and I can't seem to find any

[PHP] Shortcuts/aliases/sym-links?

2003-08-22 Thread Dan Phiffer
Has anybody out there written code to facilitate the maintanance (reading/resolving, writing) of Windows's shortcuts, Mac OS's aliases, or Unix's symbolic links? I couldn't find anything in the File System section of PEAR, but maybe there's other code out there for this sort of thing? Or maybe

Re: [PHP] Deleting same values from an array

2003-08-22 Thread John W. Holmes
Stephen Craton wrote: Hello, I have an array called $stems that has a bunch of numbers in it like 2, 5, 4, 4, 2, 6, 8. What I want to do is delete a section of the array that has the same number. In the example of the numbers I listed, I'd want to delete one of the number 4's, and one of the

Re: [PHP] Server variables on IIS

2003-08-22 Thread John W. Holmes
Sid wrote: Hello, I am trying to migrate a PHP script and just realized that the IIS server I am working on does not have the REQUEST_URI, SCRIPT_FILE_NAME and DOCUMENT_ROOT server variables. This makes the script malfunction. Does anyone know how I can get these variables? If you would like

[PHP] linking via SSH to another server.

2003-08-22 Thread Vail, Warren
It appears that I need to use exec() to execute the ssh command to, in turn, execute a command on a distant machine. Are there better ways to do this? Any tricks to retrieving the output of the remote command? Do I need to use scp for this? My server using Linux, and remote machines may be

Re: [PHP] float precision format not being kept

2003-08-22 Thread John W. Holmes
Rob Yelvington wrote: I have a list of floats that I need to put into an array, when I put them into an array manually the floats lose their format, for example: $a = array(1=3.50807443617658E-4); print $a[1] returns: 0.00035080744361766 I'm familiar with round() and all the math functions,

Re: [PHP] Deleting same values from an array

2003-08-22 Thread Stephen Craton
Haha, thanks. I was looking at array functions earlier but didn't think to look at it since it seemed like something completely different. Oh well, thanks! Thanks, Stephen Craton - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: Stephen Craton [EMAIL PROTECTED] Cc: PHP List

[PHP] Access denied problem, please help

2003-08-22 Thread Ryan A
Hi, I am trying to upload something into a directory on my server but always i am getting a permission denied ONLY from this server...i have tried it on 2 other servers and they seem to be working fine but i have to get it working on this server as this server is the fastest and our production

[PHP] Making a cookie never expire

2003-08-22 Thread Stevie D Peele
How can I make a cookie never expire? Thanks, Stevie The best thing to hit the internet in years - Juno SpeedBand! Surf the web up to FIVE TIMES FASTER! Only $14.95/ month - visit www.juno.com to sign up today! -- PHP General

Re: [PHP] Access denied problem, please help

2003-08-22 Thread Jim Lucas
how about giving the specs on all three servers? So WE can see the differences. Jim Lucas - Original Message - From: Ryan A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 22, 2003 5:39 PM Subject: [PHP] Access denied problem, please help Hi, I am trying to upload

[PHP] safe_mode_include_dir

2003-08-22 Thread Mark Clarkstone
does this include sub dirs ? -- bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: google style paginating

2003-08-22 Thread Robert Cummings
IMHO a PEAR pager package sounds like a sledgehammer when all that's needed is a hammer. Cheers, Rob. On Fri, 2003-08-22 at 17:59, Rob Yelvington wrote: The Pear Pager class works like a champeen, too. It'll paginate results however you'd like it to. ~Rob Chris W. Parker wrote:

[PHP] What's user_dir?

2003-08-22 Thread DvDmanDT
End (stopps some mail daemons or whatever I hope) Can someone explain the user_dir and doc_root directives for me..? ; The directory under which PHP opens the script using /~username used only ; if nonempty. isn't easy enought for me to understand.. Will PHP like filenametranslate it or what?

Re: [PHP] Making a cookie never expire

2003-08-22 Thread John W. Holmes
Stevie D Peele wrote: How can I make a cookie never expire? You can't. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] auto_prepend_file

2003-08-22 Thread Dennis Gearon
Is there any settings that will silently disable the ability for a .htaccess file to use the php_value auto_prepend_value some file name directive? Some safe mode thing, or an ini setting or something? The people at the host I'm at just CAN'T seem to get it working on my site. It's an

[PHP] Using PHP to get size of mySQL data?

2003-08-22 Thread Jeff Lewis
I want to query a table of text articles and when selecting them I am wondering if I can grab the actual size of the articles in question. So if someone has two articles, I want to see if they have reache 100kb in total. Does that make sense to anyone? is that possible with PHP? Jeff

Re: [PHP] Using PHP to get size of mySQL data?

2003-08-22 Thread Robert Cummings
Untested, but looks about right: select sum( length( article_text ) ) as total from articles_table where user_id = 'user to match; This is SQL though, so it's kinda OT. Cheers, Rob. On Fri, 2003-08-22 at 22:45, Jeff Lewis wrote: I want to query a table of text articles and when

Re: [PHP] eval function

2003-08-22 Thread Tom Rogers
Hi, Saturday, August 23, 2003, 8:38:32 AM, you wrote: MW Hi php-general, MW I have a question about eval(); MW I'm having multiple pagenames I store in a database. I also have a lot MW of functions starting with content and then the name of the pages MW taken from the database. Ex: pagenames =