Re: [PHP] Download Counter Script

2002-11-15 Thread Ernest E Vogelsinger
At 06:39 15.11.2002, Twist said: [snip] > This is all great, the problem is that it loads a new page >the way I am doing it. I am using the header() function to get the >browser to download. I have seen sites with counters that download >the file a

[PHP] Re: shell_exec problem

2002-11-15 Thread Sebastian Konstanty Zdrojewski
Why don't you try to use the system() function call? I use it to launch different programs on a server and it works perfectly. Be sure the sendfax application is launchable by the apache daemon. Best Regards, En3pY Coert Metz wrote: Hi everybody I have some few problems with the shell_exec co

[PHP] something like array_walk?

2002-11-15 Thread A. J. McLean
I want to take an array and get the soundex() for each element in that array and return the results into another array. Is there an clean way to do this? $color = array("blue", "green", "orange", "purple", "red", "yellow"); function sound(&$word){ $word = soundex($word); } array_walk($color, '

[PHP] Finding last entry in MySQL database

2002-11-15 Thread Tim Thorburn
Hi, I'm creating a form which will allow individuals to add themselves to an online database and ask if they'd like to upload a picture. I have the form setup which allows the individuals to add themselves - currently it asks if they have a picture to upload (a yes or no drop menu). On the s

Re: [PHP] something like array_walk?

2002-11-15 Thread Marek Kilimajer
What about foreach($color as $c) { $color_soundex[]=soundex($c); } A. J. McLean wrote: I want to take an array and get the soundex() for each element in that array and return the results into another array. Is there an clean way to do this? $color = array("blue", "green", "orange", "purple

RE: [PHP] something like array_walk?

2002-11-15 Thread Jon Haworth
Hi, > I want to take an array and get the soundex() for each element > in that array and return the results into another array. How about: $color = array("blue", "green", "orange", "purple", "red", "yellow"); $soundex = array(); foreach ($color as $foo) { $soundex[] = soundex($foo) } HT

Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread Ernest E Vogelsinger
At 11:11 15.11.2002, Tim Thorburn said: [snip] >I'm creating a form which will allow individuals to add themselves to an >online database and ask if they'd like to upload a picture. I have the >form setup which allows the individuals to add themselves - cu

Re: [PHP] It only prints lines that beggin with a number? I'm ona deadline!

2002-11-15 Thread Marek Kilimajer
Godzilla wrote: Hi everyone, I have a pretty strange problem that may be simple, but I have never heard of it. //I have a database in the following format: 2 2 2 Cd's Cd's DVD's DVD's DVD's DVD's DVD's // Someone recently helped me out in writing a short script that woul

Re: [PHP] something like array_walk?

2002-11-15 Thread A. J. McLean
Thanks! Just what I was looking for! "Jon Haworth" <[EMAIL PROTECTED]> wrote in message news:67DF9B67CEFAD4119E4200D0B720FA3F0241E788@;BOOTROS... > Hi, > > > I want to take an array and get the soundex() for each element > > in that array and return the results into another array. > > How about:

Re: [PHP] does PHP4.0 supports https:// post?

2002-11-15 Thread Marek Kilimajer
PHP doesn't really care if it is https or http, this is being taken care by the webserver. If it is not working for you, you might have some browser issue. Peter wrote: Hi, What's the latest version of PHP that can handle HTTPS:// post? Thanks, -Peter -- PHP General Mailing List (http

Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread M.A.Bond
Tim, This is a dangerous way of doing things, if you get a couple of people registering at the same time the system has the possibility of getting the wrong entry, you best bet is to have the upload script return the last insertid(I'm assuming your database has an autoincrement/id field) and pass

[PHP] Report on: LDAP specific?

2002-11-15 Thread Tony Earnshaw
tor, 2002-11-14 kl. 11:50 skrev Krzysztof Dziekiewicz: > > I can show a jpeg using a href with a target, either in a new page or a > > frame. To do this, PHP needs to be fed 'header("Content-type: > > image/jpeg")'. This can be put more or less anywhere in the very short > > script used for showin

Re: [PHP] Redirect Problem

2002-11-15 Thread Marek Kilimajer
the header, to be http compliant, should be Location: http://$HTTP_HOST$PHP_SELF?submit_cat=1&submit_subcat=1&cat_id=$cat_id also try echoing it instead to see if there is no error. Another thing is that exploder has a stupid habit of thinking of anything starting with & to be a html entity even

Re: [PHP] parse comma delimited file

2002-11-15 Thread Marek Kilimajer
yes, there is this fgetcsv function Greg wrote: Hi-\ Is there an easy way in PHP to parse a comma delimited text file that could be uploaded in a form? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Need difficult help !

2002-11-15 Thread Hacook
Hi all, I have a very long charachter chain which is like that : Number*link*name*Number*link*name*Number*link*name*Number*link*name* I made a php script to cut it thanks to the "*" to make a list with a number, and the name hyperlinked to the link. The thing is that after i get a data (number, l

Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread Marek Kilimajer
better would be to keep it in a session variable, so people don't spoof it. M.A.Bond wrote: Tim, This is a dangerous way of doing things, if you get a couple of people registering at the same time the system has the possibility of getting the wrong entry, you best bet is to have the upload scri

Re: [PHP] PHP Database

2002-11-15 Thread Jason Wong
On Friday 15 November 2002 14:00, Steven Priddy wrote: > I am looking into how I can make a database like this one that is MySql > controlled. With a lot of hard work I would say. > http://www.uhlfans.com/uhlstats/ That is one of my partners > sites but the guy that created the database can't or

Re: [PHP] Need difficult help !

2002-11-15 Thread Ewout de Boer
You could try something like this: $verylongstring $data = ... // your cut function $verylongstring = substr($verylongstring, strln($data); regards, Ewout de Boer - Original Message - From: "Hacook" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 11:39 AM

Re: [PHP] Need difficult help !

2002-11-15 Thread Jason Wong
On Friday 15 November 2002 18:39, Hacook wrote: > Hi all, > I have a very long charachter chain which is like that : > > Number*link*name*Number*link*name*Number*link*name*Number*link*name* > > I made a php script to cut it thanks to the "*" to make a list with a > number, and the name hyperlinked

Re: [PHP] Need difficult help !

2002-11-15 Thread Lauri Jakku
Or you could use hash instead of string to store data. Hashes work basicly like arrays but you can use string as key/index value and assosiate it with another string. And if you like to give that hash ie. as parameter to a another php-script, one could use: $param = serialise($myHash);

Re: [PHP] how to generate ms-word files

2002-11-15 Thread Manuel Lemos
Hello, On 11/14/2002 02:17 PM, Tom Woody wrote: http://sourceforge.net/projects/php-doc-xls-gen/ This project doesn't seem to do anything. -- Regards, Manuel Lemos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Database

2002-11-15 Thread Marek Kilimajer
You need to understand the relations between the entities in order to design the database, there are 3 types: 1 to 1: - one team has one couch, no team has more couches and no couch has more teams. - usually in one table (team_name, couch_name), but might be also in two interconnected w

Re: [PHP] Need difficult help !

2002-11-15 Thread Hacook
Thanks for all but i found a way to do it ! Regards > > Or you could use hash instead of string to store data. > > Hashes work basicly like arrays but you can use string as key/index value > and assosiate it with another string. > > And if you like to give that hash ie. as parameter to a another >

Re: [PHP] small php engine

2002-11-15 Thread Marek Kilimajer
So take php sources and remove php functions you won't use ;-) Maximilian Eberl wrote: no, it's the normal LAMP stuff. I already have the webserver, just need to get the PHP engine melted down. Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] shell_exec problem

2002-11-15 Thread Jason Wong
On Friday 15 November 2002 03:02, Coert Metz wrote: > Hi everybody > > I have some few problems with the shell_exec command. > I want to send a fax with hylafax using the sendfax program in linux. > When I try to do shell_exec ("sendfax -n -d faxnumber faxfile") it will I have a little app which a

[PHP] Socket help

2002-11-15 Thread Michael Hazelden
Hi all, I need to set the KEEPALIVE value for a socket ... and just want to be certain of what I'm seeing. When I make my initial connection - the default value for the keepalive seems to be 0 ... does this mean that no TCP keepalives will be sent on the socket? Or am I doing something wrong? Th

Re: [PHP] It only prints lines that beggin with a number? I'm on a deadline!

2002-11-15 Thread 1LT John W. Holmes
> >$result = mysql_query ("SELECT * FROM `data` WHERE categories"); Where categories is what?? You don't have any comparison... What it's doing is evaluating the column as true or false. Any integer column > 0 will evaluate to true, so that row will be returned. "1A" will be converted to 1, so it

[PHP] Validating postal codes

2002-11-15 Thread DonPro
Hi, I'm trying to validate a Canadian postal code. I've already written a function; code as follows: if(!eregi('(^[a-z][0-9][a-z][0-9][a-z][0-9]$)',$form["authpstcode"])) { $errors[] = 'You must input a valid Canadian postal code (A9A9A9) postal code if he/she resides in Canada'; $continue

[PHP] #color problems

2002-11-15 Thread Adam
Below is a snip of my script. Can't get it to use $test as a color variable!! Can anyone help?? I have tried everything i can think of (bar just using a color value instead of variable). The context is :: for formatting an XML doc. $test='#FF'; echo ""; Any help much appreciated, Adam. --

Re: [PHP] Validating postal codes

2002-11-15 Thread Michael Hazelden
This is a RTFM situation!!! instead of just $form["autopstcode"] - use str_replace(" ","",$form["autopstcode"]) (e.g. strip the spaces before validating the triplets) found in 30 seconds by typing "string" on PHP site. -Original Message- From: DonPro [mailto:donpro@;lclcan.com] Sent: 15

[PHP] Modifying native Word files

2002-11-15 Thread Chris Boget
I believe you can do this on a Windows box via COM with the right extensions/software installed. But can you do this on a *nix box? I need to take a native Word document and modify the contents (adding/removing text). If it can be done on a *nix box, could someone point me to where I can learn mo

Re: [PHP] Validating postal codes

2002-11-15 Thread Marco Tabini
This might work: if(!eregi('(^[a-z][0-9][a-z] ?[0-9][a-z][0-9]$)',$form["authpstcode"])) { $errors[] = 'You must input a valid Canadian postal code (A9A9A9) postal code if he/she resides in Canada'; $continue = false; } Marco -- php|architect - The magazine for PHP Profession

Re: [PHP] something like array_walk?

2002-11-15 Thread Khalid El-Kary
hi, just remove the "&" from the first argument of array_walk, the function then operates on a copy of the array. this is written in the PHP manual, check there khalid _ Add photos to your messages with MSN 8. Get 2 months FREE*.

Re: [PHP] Validating postal codes

2002-11-15 Thread Marek Kilimajer
Either you may remove spaces: $form["authpstcode"]=str_replace(' ','',$form["authpstcode"]) and then compare or change your expresion to '(^\s*[a-z]\s*[0-9]\s*[a-z]\s*[0-9]\s*[a-z]\s*[0-9]\s*$)' The first is better as you may put it into database column that is just char(6) DonPro wrote: Hi,

[PHP] problemde connection informix

2002-11-15 Thread Matthieu Le Corre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suite au passage en PHP 4.2.3 ... je n'arrive plus a ne connecter a me bases informix quelqu'un a-t-il eu le meme probleme ? il me renvoir un code informix -930 - -- __ / Matthieu Le Corre | Service Informatique | __

Re: [PHP] #color problems

2002-11-15 Thread Marek Kilimajer
Do you mean it doesn't output the right html (which it should if you pasted it right, look at the html source) or the browser doesn't display it (bgcolor in is **deprecated, what doctype are you using?) Adam wrote: Below is a snip of my script. Can't get it to use $test as a color variable!! C

Re: [PHP] problemde connection informix

2002-11-15 Thread Matthieu Le Corre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 arf sorry for that i'm also on a fr php list ;) in fact my problem is the following : i upgrade to PHP 4.2.3 and I can't connect to my informix DB anymore i got a -930 error code (from informix ) is there any one with the same pb ? Le V

Fw: [PHP] #color problems

2002-11-15 Thread Adam
Re: below, i put in global $test; > Thanks for the advice... I am new to PHP, but have done a lot of C in the > past so some things are familiar. > > Anyway, I tried your suggestion but no joy... color does not show, as if i > had written bgcolor="". > > Any ideas??? > > Cheers, > Adam. > > ---

Re: Fw: [PHP] #color problems

2002-11-15 Thread Marco Tabini
Does your color code show in the HTML source code? If so, then it's an HTML problem! Marco On Fri, 2002-11-15 at 10:46, Adam wrote: > > Re: below, i put in > > global $test; > > > > Thanks for the advice... I am new to PHP, but have done a lot of C in the > > past so some things are familiar

[PHP] How to break a "while" loop ?

2002-11-15 Thread Hacook
Hi all, I made a while loop and i'd like to know the comand to break it from inside. Here is my script : while ($michou<=$maxFiles){ /// My script and ate the end : if ($michou>$michoumax) { break; } } But it doesnt work Can i put 2 conditions in the while() command ? if yes, what is

[PHP] php Wildcard???

2002-11-15 Thread vernon
Hey all, I'm coming over from programming ASP in VBScript and I know that a wildcard there is '%' can anyone tell me what it is in PHP? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to break a "while" loop ?

2002-11-15 Thread Ernest E Vogelsinger
At 16:22 15.11.2002, Hacook spoke out and said: [snip] >Hi all, >I made a while loop and i'd like to know the comand to break it from inside. >Here is my script : > >while ($michou<=$maxFiles){ >/// My script and ate the end : >if ($michou>$michoumax

Re: Fw: [PHP] #color problems

2002-11-15 Thread Adam
OK, color code is not present in HTML output. Very strange! "echo $test;" produces hte correct output though. Adam. - Original Message - From: "Marco Tabini" <[EMAIL PROTECTED]> To: "Adam" <[EMAIL PROTECTED]> Cc: ""PHP"" <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 3:14 PM Subject:

Re: [PHP] How to break a "while" loop ?

2002-11-15 Thread Tony Earnshaw
fre, 2002-11-15 kl. 16:22 skrev Hacook: > I made a while loop and i'd like to know the comand to break it from inside. > Here is my script : > > while ($michou<=$maxFiles){ > /// My script and ate the end : > if ($michou>$michoumax) { > break; > } > } > > But it doesnt work > Can i

[PHP] longitude/latitude function

2002-11-15 Thread Edward Peloke
Has anyone ever written a php function to take the longitude and latitude of two destinations and calculate the distance? I am working on one but the output is just a little off. Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php Wildcard???

2002-11-15 Thread Michael Hazelden
Wildcard for what? Please be more specific ... do you mean database queries ... regular expressions ... what? Thanks. -Original Message- From: vernon [mailto:vernon@;comp-wiz.com] Sent: 15 November 2002 15:32 To: [EMAIL PROTECTED] Subject: [PHP] php Wildcard??? Hey all, I'm coming ove

Re: Fw: [PHP] #color problems

2002-11-15 Thread Marek Kilimajer
I you did put echo $test; right before echo ''; COPY&PASTE your code (don't write it from memory!) and show us Adam wrote: OK, color code is not present in HTML output. Very strange! "echo $test;" produces hte correct output though. Adam. - Original Message - From: "Marco Tabini" <[EMA

Re: [PHP] longitude/latitude function

2002-11-15 Thread Aaron Gould
Try this snippet... I can't vouch for its accuracy since I am not a mathematician: -- Aaron Gould [EMAIL PROTECTED] Web Developer Parts Canada - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 11:20 AM Subject: [PHP]

Re: [PHP] php Wildcard???

2002-11-15 Thread Ewout de Boer
You mean the opening tag ? For php use regards, Ewout de Boer - Original Message - From: "vernon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 4:32 PM Subject: [PHP] php Wildcard??? > Hey all, I'm coming over from programming ASP in VBScript and I know

Re: [PHP] Need difficult help !

2002-11-15 Thread Ewout de Boer
Oops ! My mistake.. it's strlen() substr = substring .. see http://www.php.net/substr regards, Ewout de Boer On Fri, Nov 15, 2002 at 12:03:34PM +0100, Tristan Carron wrote: > The strln() function is unknown... > To understand the script, could you please tell me what the substr() > function

RE: [PHP] longitude/latitude function

2002-11-15 Thread Edward Peloke
Thanks Aaron, If you don't mind me asking, where did you get it? It seems to give a better answer than my function. Thanks! Eddie -Original Message- From: Aaron Gould [mailto:webdevel@;partscanada.com] Sent: Friday, November 15, 2002 11:04 AM To: Edward Peloke; [EMAIL PROTECTED] Subject

[PHP] I'm in need of a PHP web host recommendation

2002-11-15 Thread Phil Schwarzmann
I am quite unhappy with my current web host provider (www.infinitehost.com ) and would like to hear some recommendations of some good companies that host PHP/MySQL and also JSP. I'm more than happy to shell out a few extra bucks to get some good service. Currently

Re: [PHP] GD 1.5

2002-11-15 Thread Mako Shark
> Why do you need 1.5? Isn't that the one with GIF support on it? __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] GD 1.5

2002-11-15 Thread Rasmus Lerdorf
Look around a bit. All versions of GD can be found with gif support. On Fri, 15 Nov 2002, Mako Shark wrote: > > Why do you need 1.5? > > Isn't that the one with GIF support on it? > > __ > Do you Yahoo!? > Yahoo! Web Hosting - Let the expert host y

RE: [PHP] I'm in need of a PHP web host recommendation

2002-11-15 Thread Jon Haworth
Hi Phil, > would like to hear some recommendations of some > good companies that host PHP/MySQL and also JSP. http://34sp.com/ are great if you don't mind .uk-based hosting. I've heard good things about http://oneandone.co.uk/ but haven't used them myself. At the other end of the scale, you s

[PHP] Ereg headache

2002-11-15 Thread Mako Shark
I have a real problem that I can't seem to figure out. I need an ereg pattern to search for a certain string (below). All this is being shelled to a Unix grep command because I'm looking this up in very many files. I've made myself a that contains in the value attribute a list of comma-delimited

Re: [PHP] longitude/latitude function

2002-11-15 Thread Aaron Gould
I got that from http://freshmeat.net/projects/zipdy/?topic_id=66. It's a program called Zipdy that does these calculations. There's also a similar function on the US government census site (can't remember where though), but I liked Zipdy's better. -- Aaron Gould [EMAIL PROTECTED] Web Developer P

Re: [PHP] GD 1.5

2002-11-15 Thread @ Edwin
Hello, "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote: > Look around a bit. All versions of GD can be found with gif support. > ...but here http://www.boutell.com/gd/ it says: "GD does not create GIF images" Or am I missing something? :) - E -- PHP General Mailing List (http://www.php.ne

RE: [PHP] I'm in need of a PHP web host recommendation

2002-11-15 Thread Edward Peloke
http://www.ht-tech.net is who I use, VERY GOOD! Just tell them I sent you. Eddie -Original Message- From: Jon Haworth [mailto:jhaworth@;witanjardine.co.uk] Sent: Friday, November 15, 2002 11:49 AM To: 'Phil Schwarzmann'; [EMAIL PROTECTED] Subject: RE: [PHP] I'm in need of a PHP web host

RE: [PHP] longitude/latitude function

2002-11-15 Thread Edward Peloke
Thanks, Just curious because after looking online it seems there are several ways to do this...many giving a slightly different answer...for example, I went to mapquest and put in two cities and the mileage was 1500, the function returned 1700. Also, the function says it prints in miles and kms bu

Re: Fw: [PHP] #color problems

2002-11-15 Thread @ Edwin
Hello, "Adam" <[EMAIL PROTECTED]> wrote: > OK, color code is not present in HTML output. Very strange! What do you exactly mean by "color code is not present in HTML output"? ...[snip]... Also, > > > > Anyway, I tried your suggestion but no joy... color does not show, as > > > > if i had writ

Re: [PHP] longitude/latitude function

2002-11-15 Thread jef
Edward: We use a dealer locator. I would suggest one thing if you have a lot of data, hits, namely to pre-calculate the lat/long in radians and store radians in the database. This would speed up the script. _justin Edward Peloke wrote: > > Thanks Aaron, > > If you don't mind me asking, where

Re: [PHP] GD 1.5

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 00:54, [EMAIL PROTECTED] wrote: > Hello, > > "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote: > > Look around a bit. All versions of GD can be found with gif support. > > ...but here > > http://www.boutell.com/gd/ > > it says: > "GD does not create GIF images" > > Or am

Re: [PHP] GD 1.5

2002-11-15 Thread @ Edwin
Hello, "Jason Wong" <[EMAIL PROTECTED]> wrote: > On Saturday 16 November 2002 00:54, [EMAIL PROTECTED] wrote: > > Hello, > > > > "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote: > > > Look around a bit. All versions of GD can be found with gif support. > > > > ...but here > > > > http://www.boutell

Re: [PHP] Escaping characters won't work

2002-11-15 Thread @ Edwin
Hello, "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote: > At 23:53 14.11.2002, Lars Espelid said: > [snip] > >Try to execute this code: > >if (ereg[^0-9], $num)) > >print "That's not a number!"; > > > >result: parsing error, expects ')' on the if-line.

Re: [PHP] GD 1.5

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 01:34, [EMAIL PROTECTED] wrote: > Well, I just wanted to say that not *all* support it--esp. , I think, by > the original authors :) The official GD library no longer supports GIF ... > Didn't they remove it from version 1.6? That's why the original poster was > look

Re: [PHP] GD 1.5

2002-11-15 Thread @ Edwin
"Jason Wong" <[EMAIL PROTECTED]> wrote: > If the OP was concerned about such issues then he/she should not be using GIF > at all! True. You've got a point there. Anyway, that was just my wild guess... - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] can I retrieve jsp varibable with get or post???

2002-11-15 Thread Jeff Bluemel
Can I utilize java script variables with get or post? any information on integrating the 2, and passing info back & forth? thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: GD 1.5

2002-11-15 Thread Mako Shark
<> This is leading me to believe that I can't use GIFs because of these issues. Is this true? I know now that Unisys (Unisys?) made a fuss about some compression or whatever, but someone told me it was still okay to use old GDs (am I naive? maybe). Is it now considered piracy to use GIFs at all? D

Re: [PHP] PHP extensions

2002-11-15 Thread Mako Shark
> Email extension? Aren't you talking about Manuel > Lemos' mimemail class? > It's just an include file that you have in your > directory structure. I know some people made reference to a 'really good' e-mail package out there that did attachments and stuff that seemed to be the better choice con

Re: [PHP] GD 1.5

2002-11-15 Thread @ Edwin
And besides, I thought, those issues shouldn't apply anyway to versions 1.5 and below. (Of course, the original author thinks otherwise so I'm not going to argue that...) - E > > "Jason Wong" <[EMAIL PROTECTED]> wrote: > > > > If the OP was concerned about such issues then he/she should not be u

Re: [PHP] can I retrieve jsp varibable with get or post???

2002-11-15 Thread Marek Kilimajer
php => javascript 1st way: var var_name= 2nd way: javascript => php 1st way: location='http://server/script.php?var_name="; + js_var_name; 2nd way: form_name.input_name.value = js_var_name; hope you get the point :-) Jeff Bluemel wrote: Can I utilize java script variables

Re: [PHP] GD 1.5

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 03:25, [EMAIL PROTECTED] wrote: > And besides, > > I thought, those issues shouldn't apply anyway to versions 1.5 and below. > (Of course, the original author thinks otherwise so I'm not going to argue > that...) The patents issue still apply no matter what version you

Re: [PHP] Re: GD 1.5

2002-11-15 Thread @ Edwin
Hello, IANAL, so... "Mako Shark" <[EMAIL PROTECTED]> wrote: > < he/she should not be using GIF at all!>> > > This is leading me to believe that I can't use GIFs > because of these issues. Is this true? I know now that > Unisys (Unisys?) made a fuss about some compression or > whatever, but someo

[PHP] Reasons for error message: Warning: Failed opening'/www/servers/webGNOM/test.php' for inclusion(include_path='.:/usr/local/lib/php') in Unknown on line 0

2002-11-15 Thread Lee P. Reilly
Hi there, Can someone suggest a reason for the following? I am trying to INCLUDE the JPGraph libraries in my PHP script as follows: BEGIN CODE -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- END CODE My INCLUDE_PATH is set to /usr/

Re: [PHP] longitude/latitude function

2002-11-15 Thread Aaron Gould
That will be in KM (I'm in Canada). Just remove the "* 1.6093" to return Miles. -- Aaron Gould [EMAIL PROTECTED] Web Developer Parts Canada - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 12:22 PM Subject: RE: [PHP] l

Re: [PHP] GD 1.5

2002-11-15 Thread @ Edwin
"Jason Wong" <[EMAIL PROTECTED]> wrote: > On Saturday 16 November 2002 03:25, [EMAIL PROTECTED] wrote: > > And besides, > > > > I thought, those issues shouldn't apply anyway to versions 1.5 and below. > > (Of course, the original author thinks otherwise so I'm not going to argue > > that...) > >

[PHP] Array Searching

2002-11-15 Thread Thomas Weber
Hi, i have an array like: Array ( [1] => Array ( [alias] => foo ... ) [2] => Array ( [alias] => bar ... ) ... ) I need some way to find out, if an alias "foo" is in the array. Any idea how to do this? Th

[PHP] Specifying file to send in url...

2002-11-15 Thread Tom Woody
I may be way off base on this, but is it possible to specify a filename on a url as in... The user types in http://server/script.php?filetosend=filename.txt The script.php recieves that file and processes accordingly? Because of the way its specified it would be a GET but I am not sure if this i

[PHP] what else do i need in this upload script?

2002-11-15 Thread Tweak2x
ok, this is upload.php: Send this file: what else do i need to make afile upload? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] what else do i need in this upload script?

2002-11-15 Thread Van Andel, Robert
This looks fine except the MAX_FILE_SIZE looks rather small. I had an issue with it earlier this week and found that the fileI was trying to upload was larger than the MAX_FILE_SIZE. I believe this is measured in bytes, so your file cannot be larger than 1KB. Are you getting any errors? Robbert

Re: [PHP] Specifying file to send in url...

2002-11-15 Thread Marco Tabini
Sure you can do it, you can retrieve it in your code as $_GET['filetosend']. However, you have to be very careful with the user's input, as someone could pass malicious file names, like "/etc/passwd", which you probably wouldn't want to disclose. So, unless you impose draconian restrictions and ch

[PHP] How to show autocad (dwf, dwg) files in browser?

2002-11-15 Thread Lars Espelid
HI, I have downloaded Volo View Express from www.autodesk.com (plugin to web-browser) and can see the sample autocad-file that is presented on their site. Code ment to display the file drawing1.dwg on my page (none working): 1) Displays no image. 2) A nice drawing. The only thing I can see is

Re: [PHP] Specifying file to send in url...

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 04:59, Tom Woody wrote: > I may be way off base on this, but is it possible to specify a filename > on a url as in... > > The user types in http://server/script.php?filetosend=filename.txt > > The script.php recieves that file and processes accordingly? Because > of th

Re: [PHP] what else do i need in this upload script?

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 05:04, Tweak2x wrote: > ok, this is upload.php: > > > > Send this file: > > > > > what else do i need to make afile upload? Why don't just try the example in the manual as someone (I believe) already suggested? -- Jason Wong -> Gremlins Associates -> www.gremli

Re: [PHP] Reasons for error message: Warning: Failed opening'/www/servers/webGNOM/test.php' for inclusion(include_path='.:/usr/local/lib/php') in Unknown on line 0

2002-11-15 Thread Tony Earnshaw
fre, 2002-11-15 kl. 20:49 skrev Lee P. Reilly: > Warning: Failed opening '/www/servers/webGNOM/test.php' for inclusion > (include_path='.:/usr/local/lib/php') in Unknown on line 0 Permissions? Ownership? Best, Tony -- Tony Earnshaw Cricketers are strange people. They wake up in October, onl

[PHP] Re: Array Searching

2002-11-15 Thread Joel Boonstra
> i have an array like: > > Array > ( > [1] => Array > ( > [alias] => foo > ... > ) > [2] => Array > ( > [alias] => bar > ... > ) > ... > ) > > I need some way to find out, if an alias "foo" is in the array.

RE: [PHP] How to show autocad (dwf, dwg) files in browser?

2002-11-15 Thread Merritt, Dave
Lars, You say you downloaded the Volo View Express, but your plug-in page points to the WHIP viewer plug. Regardless, there are two versions of Volo View. Did you download the DWF version only of Volo View? Dave -Original Message- From: Lars Espelid [mailto:lars_espelid@;hotmail.com] Se

[PHP] xslt question

2002-11-15 Thread Hatem Ben
hey all I'm using xslt_process(), and noticed that it add a meta just after the : Where can i change it, or desactivate it ? thanks Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what else do i need in this upload script?

2002-11-15 Thread tweak2x
it dosnt work for me - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 4:20 PM Subject: Re: [PHP] what else do i need in this upload script? > On Saturday 16 November 2002 05:04, Tweak2x wrote: > > o

[PHP] Javascript + PHP

2002-11-15 Thread SED
I need to finish a project using PHP and JavaScript but the references for JavaScript I'm using is rather old. I'm looking for a JavaScript postlist similar to this but without any luck. I have tried Google but it finds every site containing JavaScript where a postlist is mentioned. Since there are

[PHP] Re: Ereg headache

2002-11-15 Thread Gustaf Sjoberg
hi, this is probably not at all what you want, but i wrote it just in case. if 1 is in the string it will return either "middle", "left", "right" or "only".. if it is not it will return false. On Fri, 15 Nov 2002 08:49:23 -0800 (PST) [EMAIL PROTECTED] (Mako Shark) wrote: >I have a real proble

Re: [PHP] How to show autocad (dwf, dwg) files in browser?

2002-11-15 Thread Lars Espelid
Only my third code-example points to the whip-viewer plug, and that's most likely wrong. My first and second example may also be wrong, someone know how to get it right? I have tried these two viewers: Volo View Express 2.01. On this page http://www.autodesk.no/adsk/index/0,,837403-123112,00.htm

[PHP] Re: Ereg headache

2002-11-15 Thread Gustaf Sjoberg
or.. if there can be only one instance of the number you can easily calculate it's position with strlen($numbers) and strpos($numbers, "1"); if strlen returns 5 and strpos 5 you'll know it was far right.. if strpos returns 1 and strlen >1 it's to the left.. and if strpos < strlen but not 1 it'

Re: [PHP] Javascript + PHP

2002-11-15 Thread BigDog
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=comp.lang.javascript On Fri, 2002-11-15 at 23:07, SED wrote: > I need to finish a project using PHP and JavaScript but the references > for JavaScript I'm using is rather old. I'm looking for a JavaScript > postlist similar to this but with

[PHP] output buffering problem

2002-11-15 Thread webmaster
I'm trying to enable output buffering to speed up the load time of some of our php web pages. I've consulted the manual and enabled the following: output_buffering = On output_handler = ob_gzhandler At the beginning of my .php script, I include the following: ob_start(ob_gzhandler); This retur

Re: [PHP] It only prints lines that beggin with a number? I'm on a deadline!

2002-11-15 Thread Godzilla
Thanks so much guys, that worked perfectly. I do ok with php but am still on the bumpy part of the road with SQL queries. Thanks again! Regards, Tim "1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:00da01c28cad$b9a90d50$a629089b@;TBHHCCDR... > > >$result = mysql_query ("SELECT * FR

[PHP] RE: -- OT -- [PHP] How to show autocad (dwf, dwg) files in browser?

2002-11-15 Thread Merritt, Dave
Okay, the WHIP viewer is only for DWF files from ACAD 13, 14, & 2000 only. It does NOT handle DWG files or DWF from ACAD 2002 based products (Inventor), Volo View Express 2.01 handles DWF, DWG, & DXF only if you download the english language version. Non-english versions of VVE will NOT view DWG

[PHP] PHP Website

2002-11-15 Thread Van Andel, Robert
Anyone else having trouble accessing PHP.net? Robbert van Andel "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any

[PHP] newbie's question

2002-11-15 Thread Frank Wang
Hi, what is the correct way of testing if a string is empty or not? fw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >