[PHP] is_link() behavior

2001-04-23 Thread J. Jones
ve yet to discover that provides that behavior, without verifying the link's target? I ask this because much of linux's /proc contains (intentionally) broken symlink's and is_link()'s behavior is making the scouring of /proc very difficult on me. ;) Thanks for any input.. J. Jones

Re: [PHP] file_exists with remote file???

2001-04-23 Thread J. Jones
On Tue, Apr 24, 2001 at 12:20:01AM -0300, Paulo - Bruc Internet wrote: > Can anyone help me? > > The sintax of function file_exists is: > > if(file_exists("t.txt")) > { > print... > } > > Does anybody knows how can work with remote files? > This is not working: > if(file_exists("http://www.

Re: [PHP] is_link() behavior

2001-04-23 Thread J. Jones
On Tue, Apr 24, 2001 at 05:31:04AM +0200, Martin Skjöldebrand wrote: > > Warning: stat failed for /tmp/this_is_a_symlink (errno=2 - No such file or > > directory) in ./test.php on line 3. > > Do you have permission to read the /tmp catalog? Otherwise you may get that > error I suppose. > > M.

Re: [PHP] FTP problem..

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 10:10:58AM -0400, Chad Day wrote: > I'm trying to write a script to ftp the contents of one directory structure > onto another server.. I'm having problems recursing the directories, either > it a) doesn't do it or b) gets stuck in a loop. > > Here's the function I'm havin

Re: [PHP] A simple problem!

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 11:24:26PM +0530, Subodh Gupta wrote: > Can You figure out the mistake here...?? > > print << \n > color="#$colour[$colouroffset]">$name:\n // The problem is here.. >the value of $colour[$colouroffset] is not align=left>$dbvalue\n

Re: [PHP] ereg_replace

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 06:21:20PM -0400, Wade wrote: > I am attempting to do an ereg_replace(), but the charachter I want to > replace is a \. Any Ideas how I make the following work? > > $F_name = ereg_replace ("\", "", $acc_fname); > echo $F_name; > > Thanks, > Wade > use \\ -- PHP Ge

Re: [PHP] random letters and numbers

2001-04-24 Thread J. Jones
On Mon, Apr 23, 2001 at 11:10:48PM -0700, Randy Johnson wrote: > Is there a way to generate a random set of characters ranging from 8 to 12 > characters and numbers where it is crucial that the letters and numbers are > truly random because I need to create temporary files for people to download >

[PHP] Re: An idea for a PHP tool

2002-01-04 Thread J Smith
hp:fsockopen" to bring up the manual page for fsockopen(). J Mike Eheler wrote: > Like google has it's toolbar, why not have a PHP Manual toolbar? That > would be *great*. Just type in the function name and hit "go" and the > manual comes up. > > One for Mo

[PHP] Re: PHP and security (like fopen)

2002-01-07 Thread J Smith
ermissions than hacking the PHP source code for something so simple. Hint: A good place to start would be to look at the user that Apache runs as (or whatever web server you're using). J Yves Reveillon wrote: > Hello, > > this is my security problem with PHP > have a free

[PHP] Re: Running php in background?

2002-01-07 Thread J Smith
do it via the browser, just use set_time_limit(0). Even if you hit stop or the connection is broken, I think the script will still execute, unless you've registered a shutdown function, but I'm not 100% positive on that one. J James Hudnall wrote: > I wrote a php program that

Re: [PHP] me and my CRON JOB

2002-01-11 Thread J Smith
rwise identify. If your machine is on a LAN for instance, the emails will probably get bounced. Another thing to check is that your user account can actually use your system's SMTP service. Email sent with php's mail() function are usually sent by the owner of the script (or the web serv

[PHP] Re: Using a HTML button

2002-01-11 Thread J Smith
since all of the processing has already been done. J Morten Nielsen wrote: > Hi, > > I am rather new to PHP so I hope somebody can help me. > > I have a normal button (HTML code). Then I have made a function > > function multiply($X) > { > return 2*$X; > } &g

RE: [PHP] Search Engine

2002-01-15 Thread J Smith
oot. My search engine could handle a web site easily enough, maybe even a group of sites, but it would totally suck ass as a WWW indexer/spider-type search engine. So there ya go. J Greg Schnippel wrote: > >> * On 15-01-02 at 12:09 >> * Yogesh Mahadnac said >>

[PHP] Re: Redirect?

2002-01-16 Thread J Smith
If this isn't in the PHP FAQ (I couldn't find it), it definitely should be, because somebody asks this question at the very least once a week on this list. J Henrik Johansson wrote: > Hi! > How do I do a redirect to a different location in PHP? > > Regards > H

Re: [PHP] encrypting passwords etc..

2002-01-17 Thread J Smith
hing else, of course, but sometimes they just want their old password J Anas Mughal wrote: > We had a client who wanted us to encrypt their > passwords. Our argument was that maybe their database > is not well protected. Only the dba and the > application should have access to

[PHP] Re: printing an XML node

2002-01-17 Thread J Smith
You might want to check out php's XML extensions... http://www.php.net/manual/en/ref.xml.php J Thomas Gagne wrote: > dumpmem works great for entire documents, but what is the strategy for > printing the contents of a single node? It is impossible to use dumpmem > on a node

[PHP] PHP and COM - Syntax question

2002-01-18 Thread J Wynia
>CheckSpelling(); $word->Selection->WholeStory(); $corrected = $word->Selection->Text; //the VBA sample code ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges $word->Quit(); $word->Release(); $word = null; return $corrected; } J Wynia phpgeek.com -- PHP General Mailing L

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
Documents->Add(); $word->Selection->TypeText($string); $word->ActiveDocument->CheckSpelling(); $word->Selection->WholeStory(); $corrected = $word->Selection->Text; $word->Quit(false); $word->Release(); $word = null; return $corrected; } J Wynia phpgeek.com -- PH

[PHP] Re: PHP and COM - Syntax question

2002-01-18 Thread J Wynia
Hopefully this is my last reply on this thread. I discovered after opening Word normally after a few dozen tests, that it tried to "recover" all those "lost" documents. The following demo script has that fixed. Visible = 0; $word->Documents->Add(); $word->Selection->TypeText($string); $word->Act

[PHP] Re: create xml document with PHP

2002-01-29 Thread J Smith
cation/xml-dtd, etc.) Try outputing the XML using "text/xml" as the MIME type by using header("Content-type: text/xml"); at the beginning of your script. (Or at least as the first bit of output -- nothing should come before the headers. J Rodrigo Peres wrote: > Hi list, &

[PHP] Re: Ereg/replace/i/ or something ??

2002-01-30 Thread J Smith
Try ereg("^[0-9]{10}$", $cust_tel); Quick explanation (I get the feeling you're new at regexes): ^ - beginning of string [0-9] - any number between 0 and 9 inclusive {10} - exactly ten times $ - end of string There ya go. J B. Verbeek wrote: > Hello, > > I want

[PHP] Re: Installing PHP 4.1.1 on Redhat w/ RPMs

2002-02-04 Thread J Smith
ld be howtos on this at redhat.com. J Darren Gamble wrote: > Good day, > > This isn't strictly a PHP question, but, I am hoping someone on this list > has gone through this already and can provide some assistance. > > I'd like to upgrade to PHP 4.1.1 on our Redhat

[PHP] Re: Multi Threading in PHP

2002-02-06 Thread J Smith
using socket_select(). J John Lim wrote: > Hi Bart > > This can be simulated using non-blocking sockets. However this is one time > when using > Perl or Python might be a better solution (sigh). > > Bart Frackiewicz <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECT

[PHP] Re: Writing PHP files from inside a PHP file

2002-02-06 Thread J Smith
include() and require() were suggested, but you may also want to look into eval(), which parses a string as PHP code and returns the parsed PHP. Sounds like what you're looking for. (I.e. storing PHP code in a database, right?) J Georgie Casey wrote: > I want to extract informat

Re: [PHP] PHP Work in New York

2002-02-12 Thread J Smith
camel. Last week I looked at some VBScript/ASP code that I kind of need to port to PHP. I was mortified. J Erik Price wrote: > > I suppose that's a matter of opinion. One thing's for sure: where I > work, ASP is the "official" scripting language. If my boss really k

[PHP] Re: PHP & GD - Nevermind! Thanks!

2002-02-13 Thread J Smith
and can display a ton of statistics through a handful of PHP scripts on a per-demand basis. There's a lot of stuff you can do with the GD extension. Check out some of the slide shows on http://conf.php.net, like Rasmus' Spinal Injection or whatever the hell it's called. Has a few

[PHP] Re: Is this possible?

2002-02-14 Thread J Smith
don't have to worry about a bunch of PHP code and just let the web server itself handle everything. J Leif K-Brooks wrote: > I would like to have multiple domains and have them forwarded to different > folders, so I'd only need one hosting account. Example: > www.dom

[PHP] Re: center text on image

2002-02-14 Thread J Smith
If you're using GD2, try looking at ImageTTFBox() and ImageFTBox(). They'll give you the coordinates for a bounding box around the text. Use them in relation to the image to center it properly. J Adrian Murphy wrote: > I was wondering if it's possible to centre text

Re: [PHP] good practice

2002-02-14 Thread J Smith
uest for CONFIG.inc or something.) Otherwise somebody could just grab http://example.com/CONFIG.inc and see it's contents without restriction. J Peter J. Schoenster wrote: > Yeah, seems hokey doesn't it :) ... I think about the same thing in > the code I use with PHP but

Re: [PHP] good practice

2002-02-14 Thread J Smith
nd set PHP's include_path to /some/path, and make sure the server can read that directory..." J Michael Kimsal wrote: > > > On that same topic, *why* do people name files with both .inc and .php? > Your .inc file has PHP code in it, right? Why not just call it .php

Re: [PHP] Re: center text on image

2002-02-14 Thread J Smith
Not off-hand, but if you know the general size of the font and how many pixels y, j, etc. extend below the baseline, you could just offset the text a bit to compensate. J Adrian Murphy wrote: > cool, only i can't get it exactly centred in the y position > cos the numbers a

Re: [PHP] good practice

2002-02-15 Thread J Smith
ing to get confused. Of course, if nobody's using your code but yourself, then whatever. But for the purposes of consistency, portability and common sense, following a common coding standard is a good thing. J Philip J. Newman wrote: > WHo really cares, if it works it don't

Re: [PHP] good practice

2002-02-15 Thread J Smith
ople to view those files and all of the code in them, go nuts. Otherwise, you'd better somehow cut off access to them. (Personally, I use an include directory and use a .htaccess file to limit access.) J Erik Price wrote: > > On Friday, February 15, 2002, at 10:50 AM, Michael K

[PHP] Re: PHP and HTTPS

2002-02-18 Thread J Smith
ugh getting Konqueror to work it under KDE 2.2.2 is another story...) J Michael Kimsal wrote: > Wm wrote: > > > We've worked with this several times - it's an issue with IE under > Windows. The claim is that it only affect 'high security' (SGP or > som

[PHP] Re: got the code

2002-02-18 Thread J Smith
'2')" statement. It's a simple logic error. J John Gurley wrote: > > here is a larger chunk of the code: > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Timed Redirect

2002-02-18 Thread J Smith
As far as I know, you can't do this directly through a header. Try using a meta tag, i.e. http://www.example.com/";>, where x is the delay in seconds. J Steven Walker wrote: > Is there way to have a page automatically redirect the user to another > page, but with a ti

[PHP] Re: Crashing a webserver

2002-02-19 Thread J Smith
duced, pages served per second, etc. J Ruben Vermeersch wrote: > I have got the task to down our webserver, to see how stable she is, and > how easy/hard it is to get it on it's knees ;) > > Does anyone have some ideas how to do it? > > phpinfo() kan be found here: > >

[PHP] Re: Timed Jobs.

2002-02-20 Thread J Smith
email appropriately, then deletes or otherwise updates that record, so it doesn't try again when it runs the next time. J Webmaster Mbtradingco wrote: > Hi: > > > > I was wondering if it is posible to make in PHP a cron job, that will > trigger an event (i.e. send an e-

Re: [PHP] .inc over .php

2002-04-19 Thread J Smith
rally more secure than treating them as php files since the includes might do something to, say, a database that you don't want them to do unless they're included into a valid php file request.) J Jason Wong wrote: > > There are two ways to counter this: > > 1) have the .

[PHP] Re: PHP + Microsoft Access

2002-04-22 Thread J Smith
be stable enough, anyways. I've been using it for a few months and although I'm no Windows fan, at least it hasn't died on me yet. J Tom Mikulecky wrote: > Hello > > I have to interface an MSAccess database and Apache server on a linux > box thru PHP. The only way I

[PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread J Smith
Try looking at htmlspecialchars() and htmlentities() instead. They'll convert things like < and > to > and < and ampersands to &. J Leif K-Brooks wrote: > I am trying to block javascript from ares of my site that users can > change. > I am going to use the fol

Re: AW: [PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread J Smith
Then I'd suggest using the strip_tags() function and define which tags you'd like to leave untouched. J Red Wingate wrote: > He might want to use this function but doing so no links or bold underline > Tags will be destroyed as well. > -- PHP General Mailing List

[PHP] Re: Interesting Links, can be not PHP

2002-04-23 Thread J Smith
ad an onClick event in it, you still had to provide a real link to make it work. By using the hash symbol on the same page as the one you're on, you don't have to reload the page, and the JavaScript still executes. At least, I seem to remember having to do that a few times... J Man

[PHP] Re: What's wrong with the PHPSESSID?????

2002-04-23 Thread J Smith
Are you using the just-released PHP 4.2.0? A problem has been found with the sessions extension; it should be fixed soon, likely via a patch. J Scott Fletcher wrote: > Hi! I have the PHPSESSID working on every web page except one and it > baffle > me. Have anyone have this probl

[PHP] Re: DOM XML

2002-04-25 Thread J Smith
I'm assuming it's that stray dollar sign you have in front of domxml_root. J Sebastian A. wrote: > Hello, > > I have been recently doing experiments with the DOM XML function and I am > (not surprisingly) having some problems with it. When I try to run the > c

[PHP] Re: Load Balancing and PHP Sessions

2002-04-26 Thread J Smith
it of a hastle, since you basically have to write one from scratch, but it isn't too difficult. (There are lots of pre-made ones that can handle things like round-robins, randomness, all that jazz.) J Baumann Reto wrote: > Is it possible to have sessions (via cookie) on a load balance

[PHP] Re: php command line

2002-04-30 Thread J Smith
the zend_extension line in your php.ini file accordingly. J Ezra Nugroho wrote: > I was trying to compile php command line and got some problem. > Maybe some of you can help. > > version: 4.1.2 > I did: > ./configure --with-ldap --with-oracle --with-oci8 > --with-mysql=/usr

Re: [PHP] Variable Help.

2002-05-01 Thread J Smith
Even better would be to write the URL as http://www.example.com/charts.php/wk0001-etc and look in $_SERVER["PATH_INFO"]. This way, you can do without the "?" and have a search engine-friendly URL. J Stuart Dallas wrote: > On 1 May 2002 at 18:39, Randum Ian wrote:

Re: [PHP] Variable Help.

2002-05-01 Thread J Smith
It isn't terribly hard to fix -- just use $_SERVER["DOCUMENT_ROOT"] in the links that need them. J Miguel Cruz wrote: > On Wed, 1 May 2002, J Smith wrote: >> Even better would be to write the URL as >> >> http://www.example.com/charts.php/wk0001-etc &g

[PHP] Re: case-insensitive str_replace

2002-05-02 Thread J Smith
preg_replace() can be used with arrays. J Reuben D Budiardja wrote: > > Hi, > I am in need of a case-insensitive str_replace. I've tried the search the > archive and documentation, but the mostly suggested thing is to use > eregi_replace. But this does not really solv

[PHP] help!!!

2002-05-05 Thread J. H.
Can anyone here help me write a simple auto shop scheduling program? Would really appreciate it if you would help me out. Jane H. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General Mailing

[PHP] Re: function over loading?

2002-05-06 Thread J Smith
Sort of. Look at the extension "overload" in the ext directory of the PHP source. Enable it and check out the docs: http://www.php.net/manual/en/ref.overload.php J Kris Vose wrote: > Can you practice function over-loading in php? > > Kris -- PHP General

[PHP] Re: rand(0,1) does seem to get more often 1

2002-05-07 Thread J Smith
Running the code with such a small number of trials will likely cause skewed results one way or the other. I ran this code and consistently got around the 50-50 split you'd expect: J Andy wrote: > Hi there, > > I am wondering if it is possible that this function tends to

Re: [PHP] Re: error-catching

2002-05-09 Thread J Smith
message, there's nothing wrong with using @. J Gert Mellak wrote: >> $db_connect = mysql_connect($db_server, $db_user, $db_pass) or > die('Couldn't >> connect to database'); >> >> $db_open = mysql_select_db($db_name, $db_connect) or die('Co

[PHP] Re: multi-dimensional array

2002-05-09 Thread J Smith
You can't set an array subscript using an array; it should be a numerical value or a string. What you want to do is $division[$div_id] = $array; Better yet, try: $divison[$div_id] = mysql_fetch_array($result, MYSQL_ASSOC); J Steve Buehler wrote: > I am trying to learn some ne

[PHP] Re: array of objects???

2002-05-10 Thread J Smith
Might just be a typo, but in the function prototype for AddUser(), you have $oUser, but the array_push() argument says $objUser. J J. Anderson Scarbrough wrote: > I have two classes. Organization and users. > > In the organization class I am try to keep an array of user objec

RE: [PHP] PHP and mySQL

2002-05-14 Thread J Smith
Actually, "elseif" and "else if" are both valid. J Craig Vincent wrote: > > }else if(!$submit){ > > > Acthough you didn't show 75 lines of code my guess would be your problem > lies here. The else and the if shouldn't have a space between

[PHP] Re: Compatiblity: Zend-1.20 + PHP4.2.1

2002-05-14 Thread J Smith
t work with PHP 4.2.1. Here's the error message you'll likely receive if you try: "Zend Optimizer requires Zend Engine API version 20010710. The Zend Engine API version 20020429 which is installed, is newer." J David J Jackson wrote: > Is my hosting company trying to "pu

[PHP] Re: Compatiblity: Zend-1.20 + PHP4.2.1

2002-05-14 Thread J Smith
ically involves making a few changes to your php.ini file -- I believe the ZO setup script does this for you now.) After installing, start up PHP from a shell and you should get the error. If you're using PHP with a web server, check the server's error log. J David Jackson wrote: >

Re: [PHP] Making Multiple Pages

2002-05-16 Thread J Smith
page. If you use an ORDER BY, you'll at least guarantee that you'll get them in the same order each time. J Kevin Stone wrote: > $query = "SELECT * FROM mytable LIMIT $i, 20"; > > Where 20 is the number of rows to retrieve and $i is the starting row. > > By

[PHP] printer_open

2002-05-21 Thread J. Wharton
r.dll line in php.ini with no results. Help! J. Wharton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] printer_open

2002-05-21 Thread J. Wharton
I wish they had noted this in the PHP manual. Does anyone know of a way to manipulate the client computer's printer orientation? ==== J. Wharton "1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message 006101c20101$6c3ae7b0$2f7e3393@TB447CC

[PHP] Re: substr....what does this mean? (newbie)

2002-05-21 Thread J. Wharton
a counterclaim to what this might be, feel free to speak up. J. Wharton "R" <[EMAIL PROTECTED]> wrote in message 000701c2015c$fd2e1570$0a6da8c0@lgwezec83s94bn">news:000701c2015c$fd2e1570$0a6da8c0@lgwezec83s94bn... > Hi ppl, > Can you tell me what does this mean? > &

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 4

2002-05-22 Thread J Smith
he self-promotion, but as you all probably know, cryptography is useless unless it's been tested, studied and proven to be effective. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] --NEWBIE-- T_String parse error ??

2002-05-26 Thread Kevin J
on line 1 What does this mean? and how can i fix it? Thank you! Kevin J -- http://www.wishpocket.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session's is slowing the page ??

2002-05-27 Thread J Smith
a guess, though. J Dima Dubin wrote: > Hello, > I have very wierd problem : > I use session to manage users and I have this structure of the page : > - > include("db.php"); > include("header.php"); > bla bla > include("footer.php"); >

[PHP] Re: Thread safe

2002-05-27 Thread J Smith
You could use a transaction block if your database supports it, or just use some sort of auto-numbering field, such as SERIAL in Postgres, auto_increment in MySQL, etc. Then you wouldn't have to worry about retrieving the next cno before inserting a new row. J R wrote: > Hi, &

[PHP] Re: Windows Logon Username Pass to PHP

2002-02-21 Thread J Wynia
This may sound kludgy. Probably is. Since it's an internal site, you can control things a bit. The Windows Scripting Host (installed on Win 98+ and Win2K+, available for others as download) exposes at least the username as a property on a WScript.Network object. However, since access to that objec

[PHP] Re: licensing, protection

2002-02-21 Thread J Wynia
There is the PHP Obfuscator that makes output code a real pain to read. It doesn't really compile it or anything, but it's a level of protection if you need it. http://pobs.mywalhalla.net/ "Kunal Jhunjhunwala" <[EMAIL PROTECTED]> wrote in message 005101c1bae4$6e7a6770$0301a8c0@CONFUSED">news:0051

[PHP] Specify php.ini per virtual host?

2002-02-21 Thread J Wynia
Is it possible to specify a different php.ini file for each virtual host? I know that that "-c altphp.ini" syntax on the end of the commandline will switch it, however, that doesn't exactly work like I'd hoped in Apache's configuration. I'd like a solution that worked with either the CGI or module

[PHP] Re: Newbie question...

2002-02-22 Thread J Smith
Try wget if it's installed. If not, lynx, a shell-based web browser, is installed on quite a few machines. J Ben Turner wrote: > This may be a bit off topic but I am trying to install the pdflib package > for Linux so I can make pdfs through php and I was wondering if anyone &

[PHP] Re: php, win32, xml bug?

2002-02-25 Thread J Wynia
The first thing I'd do is run your transformation through one of (or all of) the rest of the XSL engines out there. There's a lot more variability out there in XSL engines. Unfortunately, Sablotron isn't the most conformant of the field. I haven't used Sablotron in a while for XSLT processing so a

[PHP] Re: php, win32, xml bug?

2002-02-26 Thread J Wynia
n server."); $xml_com -> loadXML($xml_string); $xsl_com -> loadXML($xsl_string); $output = $xml_com -> transformNode($xsl_com); "Alexander GräF" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > "J Wynia" <[EMAIL

[PHP] Re: PHP COM with Distiller

2002-02-26 Thread J Wynia
Don't have sample code handy, but you'd create a new Word, Excel or Powerpoint object (depending), and use the print methods of those objects to send it to Distiller. "Kumar" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi All, > > Installed Apache, PH

Re: [PHP] is there an "in" qualifier in PHP?

2002-02-26 Thread J Smith
That will result in a parse error. I think you mean if (in_array($row['id'], $selected_users)) { /* execute */ } J Stewart G. wrote: > if ($row['id'] in_array ($selected_users)) { // execute } > > =S. > -- PHP General Mailing List (http://www.php.n

[PHP] Re: sending mail via SMTP server

2002-02-26 Thread J Wynia
Does your script take longer than the default 30 seconds? It might be timing out and dying. You may just need to give the script time to finish by making the max_execution_time longer. "Matthew Delmarter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am usi

[PHP] Re: hmm.. more trouble with telnet.

2002-03-01 Thread J Smith
o run "updatedb", if you have the proper permissions.) J Sean Kennedy wrote: > Hello, > > When I type in 'whereis mysql' it says 'mysql:' so what does that mean? > > -Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Create Word Document from PHP??

2002-03-06 Thread J Wynia
Don't know what code you're using to do this, but here's a spellcheck function that creates a new Word doc. See if this works for you. function spellcheck($string){ $word = new COM("word.application") or die("The spellcheck function requires MS Word."); $word->Visible = 0; $word->Documents->Add()

[PHP] Re: PHP-Based Authentication Security?

2002-03-06 Thread J Smith
g like http://www.example.com/path/download.php?filename=/etc/passwd And you'd have to make sure the file exists and such before sending it out. And determine the MIME type of the file. (I usually do this by extension.) But overall, it would work. I have a similar script, minus the

RE: [PHP] Re: PHP-Based Authentication Security?

2002-03-07 Thread J Smith
But there are a million solutions to your problem. .htaccess was just one of them. It would also have been possible to forget about individual .htaccess files and just define everything in access.conf. Anyways, just glad you found a solution. J John Coggeshall wrote: > > .htac

[PHP] Re: PHP Server platform

2002-03-08 Thread J Smith
e you get used to Unix-like systems, you can generally move between them fairly easily, although there is a learning curve. (For instance, while Solaris and Linux are both Unices, there are quite a few differences, but if you can get used to one, it makes learning the other relatively easy, versus onl

[PHP] PHP Printer functions

2002-03-14 Thread J. Wharton
extension=php_printer.dll is remarked out, I get an error message saying that the function printer_open() is undefined, but when I leave the dll in, it simply will not open the page (hangs forever). Any advice is appreciated. J. Wharton PHP -- PHP General Mailing List (http://www.php.net

[PHP] Re: Keeping PHP out?

2002-03-27 Thread J Smith
What are the permissions like on that directory? Does the user/group that runs your PHP process have read permissions on that directory? J Spyproductions Support Team wrote: > > Does anyone know if there is such a thing, maybe by writing in perl or > even writing in a configura

[PHP] Re: How to Pass the Username which from Windows Login

2002-03-29 Thread J Wynia
$network = new COM("WScript.Network"); $computername = $network->ComputerName; $username = $network->UserName; Password can't be grabbed for fairly obvious reasons. "Jack" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all > I want to prevent user to mak

[PHP] Re: PHP & Dynamic XML Pages

2002-04-11 Thread J Smith
L stylesheet to convert the XML to HTML. Of course, this is all done with PHP4. I haven't used PHP3, so I can't say if it would work properly with it. (Is there even an XSLT extension for PHP3?) J Alex Kirk wrote: > I've got a client who wants me to build a form-based us

[PHP] Re: variable scoping...

2002-04-12 Thread J Smith
Namespaces aren't available yet, but should be with PHP 5 (?) when the Zend Engine 2.0 is ready. J Aric Caley wrote: > Is it possible to keep the variable name-space separate between, say, two > files (one included into the other) to avoid name collisions? I'm trying > t

Re: [PHP] What does &var mean ?

2001-11-22 Thread J Smith
ampersand is for passing values via reference rather than value. PHP has no notion of pointers. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] ereg help

2001-12-03 Thread J Smith
quot; ) [2] => "http://www.php.net"; That should do it. Of course, the regex again isn't foolproof, as you could have crazy stuff for a URL, and it doesn't bother to check if there's anything after a comma in the curly braces, but will handle any number of ite

Re: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread J Smith
I'd recommend urlencoding those variables if you're going to do it that way, otherwise you may get some non-sense characters resulting in a bad URL. J Jim wrote: > > There are many different ways to do this ... > > 1. Have the same PHP script that validates g

[PHP] Re: Extract data

2001-12-04 Thread J Smith
ral. explode() will probably be slightly faster, too, since it doesn't need to compile the regex, etc., although the difference will probably be infintesimal. J Dan wrote: > Hello guys > > I'm making poll script that stores data like this: > > 0|0|0|0|0 >

[PHP] Creating multidimensional array dynamically

2001-12-06 Thread J. Roberts
I can't seem to figure out how to create a multidimensional array from a database query. Here is an example of what I was looking for, using NFL quarterbacks as a statistical foundation... A record contains the following fields: NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT Now I would like to be

[PHP] Sorting Multidimensional Array..second dimension has 12 elements

2001-12-08 Thread J. Roberts
I have a 2 dimensional array...with the second dimension having 12 elements. What I want to do is sort (and re-sort) they array by one of the 12 elements...keeping data consistent. All of the examples I have read @php.net seem to deal with multidim-arrays that only have one element in them. H

[PHP] Re: Shell scripting

2001-12-10 Thread J Smith
Add the -q argument to the php command, i.e. $ php -q or edit the first line of your script to something like this: #!/path/to/php -q There are some other arguments to the cgi executable. Use the -h argument for details. J Dan McCullough wrote: > I am setting up a shell script

[PHP] exec problems

2001-12-10 Thread J. Heffner
Hello, I need to write a script that will stuff the names of all the files in a directory into an array, which I can then use for some adminstrative processing. Seems easy enough: exec ("ls", $fileArray, $isComplete); This will run fine if I call the php file containing this code from bash (

[PHP] Re: PHP 4.1.0 actually out this time -- questions about zend products

2001-12-11 Thread J Smith
4.1.0 that I decided to start using the dev versions and RCs for 4.0.7/4.1.0, just so we'd be up-to-date when 4.1.0 actually came out. J Mike Eheler wrote: > Does anyone here subscribe to the Zend developer's suite? We have the > optimizer and debugger installed with a 4.0.5 in

[PHP] Re: PHP 4.1.0 actually out this time -- questions about zend products

2001-12-11 Thread J Smith
Seconds after I write this, I see on zend.com that the Optimizer has a new version for 4.1.0. Don't see anything about the Debug Server. I'm going to give the Optimizer a whirl and see if stuff encoded with our old Encoder word with 4.1.0... J J Smith wrote: > > We ha

[PHP] Re: replacing Carriage Return

2001-12-11 Thread J Smith
at you'd expect, i.e. what the function chr() returns when given 13 as an argument. J Phantom wrote: > I solicit information from a text field and save the data in mysql to be > pulled out later and displayed as text on a webpage. > > However, Carrage Returns in the text field

[PHP] Re: PHP command for issuing UNIX command???

2001-12-14 Thread J Smith
http://www.php.net/manual/en/ref.exec.php J Scott Fletcher wrote: > Hi! > > I wanted to know if there is a PHP code or function that would allow > the > PHP to issue the UNIX command. > > What I'm doing here is I'm trying to tell PHP to crea

[PHP] What is the best way to reorder table columns...temp tables?

2001-12-14 Thread J. Roberts
I'm trying to update a report generator I have, using php and mysql. The setup is essentially listing employees and production data. What I did when I created it was for the column headers, made them links to requery the database..sample link follows (inside an anchor tag): "reports.php?userid=&d

[PHP] Re: Socket functions

2001-12-19 Thread J Smith
g that was built using these functions and it works fine, either on a TCP socket or locally on a UNIX domain socket. I don't know how well it works on Windows (I doubt the UNIX sockets would work, 'cause Windows uses named pipes or something like that rather than true UDS) but the TCP stuf

<    1   2   3   4   5   6   7   8   9   10   >