Fw: [PHP] Help.

2001-08-17 Thread Balaji Ankem
  first let me know about that exe file.   can u call that exe file in browser??? If yes can we give like http://path to exe//??input co-ords...   -Balaji - Original Message - From: rajarajeswari balasubramanian To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 12:09

[PHP] GD - ttf without anti-aliasing

2001-08-17 Thread Tobias Strauß
How can I create images with gd, so that the text (true type font) written on it will not be anti-aliased? -- 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:

Re: [PHP] GD - ttf without anti-aliasing

2001-08-17 Thread Rasmus Lerdorf
> How can I create images with gd, so that the text (true type font) written > on it will not be anti-aliased? Supposedly by using a negative colour index. Although I have had limited success with that. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Dnsquery

2001-08-17 Thread J.Mueller, pro.vider.de GmbH
Hello, I've tried to execute the system function dnsquery, which works fine from a shell: % dnsquery -h domain.net ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61611 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2 ;; domain.net, type = ANY, class = IN domain.net.

RE: [PHP] Dnsquery

2001-08-17 Thread Jon Haworth
I think you need to assign it to a variable and then echo that: $dnsquery = exec("dnsquery -h domain.net"); echo $dnsquery; HTH Jon -Original Message- From: J.Mueller, pro.vider.de GmbH [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 09:29 To: '[EMAIL PROTECTED]' Subject: [PHP] Dnsquer

Re[2]: [PHP] Dnsquery

2001-08-17 Thread Gianluca Baldo
JH> I think you need to assign it to a variable and then echo that: JH> $dnsquery = exec("dnsquery -h domain.net"); JH> echo $dnsquery; This is from the manual: "exec() executes the given command, however it does not output anything" Use system instead. Cheers, Gianluca JH> -Origina

[PHP] Meaningful URL Validator

2001-08-17 Thread Stig-Ørjan Smelror
Hi all, I'm trying to make an URL validator, but I'm kind of stuck now. What I awnt it to do is as follows: It first checks to see if the server is up or down by doing a general fopen() on the URL. It then opens the URL in some way, checks the HTTP response code and spews out a meaningful me

Re: [PHP] MySQL Error.

2001-08-17 Thread David Robley
On Fri, 17 Aug 2001 16:49, ERISEN, Mehmet Kamil wrote: > Hello All, > I receive the following warning message. When I reload the page, the > message is the error message does not show up again. Funny thing is, > that there are other parts of the page generated from the same database > using the sa

Re: [PHP] Meaningful URL Validator

2001-08-17 Thread ReDucTor
http://url";; if($file = @file($url)) die("Invalid"); for($i=0;$i404", $file[$i])) die("Invalid"); if(eregi(">404 ", $file[$i])) die("Invalid"); if(eregi("404 Error", $file[$i])) die("Invalid"); if(eregi("not exist", $file[$i])) die("Invalid"); } echo $url." is Valid"; ?> - Original

[PHP] GD - ttf without anti-aliasing

2001-08-17 Thread Tobias Strauß
What's a negative color index and how can I use it? My code so far is: header ("Content-type: image/png"); $img = imagecreate (200, 200); $fontcolor = imagecolorallocate ($img, 0, 0, 0); $text = "This is a test!"; imagegetttftext ($img, 12, 0, 0, 0, $fontcolor, $text); ImagePng ($img); ImageDestr

Re: [PHP] GD - ttf without anti-aliasing

2001-08-17 Thread Rasmus Lerdorf
Read the documentation: http://php.net/imagettftext This stuff is not a secret. -Rasmus On Fri, 17 Aug 2001, Tobias Strauß wrote: > What's a negative color index and how can I use it? > My code so far is: > > header ("Content-type: image/png"); > $img = imagecreate (200, 200); > $fontcolor = im

[PHP] MySQL Queries - Which to Use?

2001-08-17 Thread Kevin
I have been coding php for a while now but can't seem to get a grasp on which type of query I should use for a given situation. mysql_fetch_array mysql_fetch_object mysql_fetch_row Perhaps there is no right answer or perhaps the answer comes with experience. In any case, I would love to get som

RE: [PHP] hacks we should know about

2001-08-17 Thread Dave Freeman
On 17 Aug 01, at 0:08, [EMAIL PROTECTED] wrote: Not that I particularly want to turn this thread into a debate about unix security, but... > Anyone with a clue doesn't use /etc/passwd anymore *shadow password file*, > so thats kind of depreciated... While this is true a great deal of damage ca

[PHP] Re: File uploads in PHP

2001-08-17 Thread James Holloway
Hi there, I haven't tested any of this, and there are probably some things that need adding, but it'll give you an idea at least. Form element: // What files do we want? $types_we_want = array("image/gif", "image/jpeg", "image/pjpeg"); // allows jpegs and gifs // What is the max size we want

Re: [PHP] hacks we should know about

2001-08-17 Thread Bob
just found this article and the author recommends the following for secure php scripting. what do the expects think? - Set register_globals off This option will stop PHP creating global variables for user input. That is, if a user submits the form variable 'hello' PHP won't set $hello, only

[PHP] Q: tutor about PHP

2001-08-17 Thread Ivo Stoykov
Hello I wonder whether there is any tutor about PHP objects. Could you help me with a URL? Thank you Ivo -- 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:

[PHP] HTTPS w/ header() ?

2001-08-17 Thread _lallous
Hello, Is there is a way with PHP (most probably headers) to go HTTPS mode? I don't want to specify https://www.myserver.com/secured_page.php I just want it normal but in it's header to tell the browser to initiate an HTTPS mode. Thanks -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Re: MySQL Queries - Which to Use?

2001-08-17 Thread _lallous
It all depends on you, I basically get used on using mysql_fetch_array which returns an associative array. example: $result = mysql_query("SELECT name, lastname, age FROM table"); $ra = mysql_fetch_array($result); or $ro = mysql_fetch_object($result); or $rr = mysql_fetch_row($result); now: echo

[PHP] Answer to Expired Form Results

2001-08-17 Thread Richard Baskett
Awhile back someone asked about why when they hit the back on their browser that the forms results didn't show up, but an error saying that they have expired and if you would like to reload, did show up. Here is how to not get that message: Put above tag This will let it stay there for an hou

[PHP] Auth atalk and samba

2001-08-17 Thread Knut Sætre
Hi Is there a way to authenticate users who are connected to the linux-box with samba or the AppleTalk protocol (Netatalk)? I don't need strong security, this is on the Intranett behind a firewall. I only want to recognise the users, and give them a personalised WebPage. It's simple to get the

[PHP] Reload - erase ------------- please help!

2001-08-17 Thread Alex Sofronie
Hi all! Please help me with this problem: SHORT: how can I erase the content of a page currently displayed in client's browser? Or other solutions (see LONG) LONG: I have a form generated with a php script that looks like: "); } else { printf("Real name:");

[PHP] Re: tutor about PHP

2001-08-17 Thread _lallous
zend.com php.net and lots more.. "Ivo Stoykov" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > > I wonder whether there is any tutor about PHP objects. Could you help me > with a URL? > > Thank you > > Ivo > > -- PHP General Mailing List (http://ww

[PHP]

2001-08-17 Thread Tamas Bucsu
Hi guys, Is there any restriction on a multiple selectás name in an HTML file? Cos' If I give a name like 'msel' and not 'msel[]' I don't get an array named $msel just a simple string type variable. Thanks in advance

Re: [PHP]

2001-08-17 Thread Daniel Rezny
Hello Tamas, Friday, August 17, 2001, 3:03:31 PM, you wrote: TB> Hi guys, TB> Is there any restriction on a multiple selectás name in an HTML file? Cos' If I give a name like 'msel' and not 'msel[]' I don't get an array named $msel just a simple string type variable. TB> Thanks in advance I

[PHP] unlink(), safe mode, and other woes

2001-08-17 Thread Jan De Luyck
Hello all, I've ran across a little problem. I've created a site for our gameing group, and added a section to upload screenshots. The webhost where I've put it is F2S, which have PHP support and also the php_safe restrictions active. This gave me a little problem in fixing the uploading, but th

RE: [PHP] PHP and Perl script in same file?

2001-08-17 Thread billfarr
Not any convenient or secure way I've yet found. But I do have PHP pages that slip out and exec() a Perl script to grab specific results that I need. Anyone else? B -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 4:46 PM To: php list Subj

RE: [PHP] Dnsquery

2001-08-17 Thread Tom Malone
I don't know if this will be helpful or not - I found it in the manual: [EMAIL PROTECTED] 25-Oct-2000 03:16 system() function doesn't return a string value, if you want to assign the output of a system command, try using: $a = `/bin/ls -a`; note the ` is a backtick, not a single quote Tom Malon

Re: [PHP] Help.

2001-08-17 Thread Hugh Bothwell
From: rajarajeswari balasubramanian To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 12:09 PM Subject: [PHP] Help. > I have a program whihc will take that coordinate file > as the input and it will convert that file into a 3D > structure, i have the exe file of that program. > > so the data is

RE: Re[2]: [PHP] Dnsquery

2001-08-17 Thread Jon Haworth
>> I think you need to assign it to a variable and then echo that: >> $dnsquery = exec("dnsquery -h domain.net"); >> echo $dnsquery; >> > This is from the manual: > "exec() executes the given command, however it does not output > anything" > Use system instead. Well, don't trust everything you re

[PHP] What is wrong ????

2001-08-17 Thread Dennis van Zanten
I wanna do this Insert: INSERT INTO sysdba_product_link VALUES ('','Y4DHVA0Q','CV/ Boiler','','010','CVs','','7-12-2000 12:52:25','ADMIN','7-12-2000 12:52:25','ADMIN','Solo + CV-Boiler','','','','','','','','Feenstra','','','','','','','','','S-HR 24'); In the following database structure

Re: [PHP] What is wrong ????

2001-08-17 Thread Tyler Longren
Well, what's the error? Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 15:57:13 +0200 "Dennis van Zanten" <[EMAIL PROTECTED]> wrote: > I wanna do this Insert: > > INSERT INTO sysdba_product_link VALUES ('','Y4DHVA0Q','CV/ > Boiler','',

Re: [PHP] What is wrong ????

2001-08-17 Thread Dennis van Zanten
Ofcourse sorry: You have an error in your SQL syntax near '','','010','CVs','','7-12-2000 12:52:25','ADMIN','7-12-2000 12:52:25','ADMIN','S' at line 27 The Insert below is line 27 and I see no errors in the line maybe you guys do!! thanxs, Dennis - Original Message - From: "Tyler Lon

[PHP] Invoking PHP scripts from a redirect location

2001-08-17 Thread Neil Freeman
Hi, I am having trouble getting a redirected file's php section activating. Some info to help you understand: 1) Within Apache's httpd.conf file I have the following set: DocumentRoot "D:/Program Files/Apache Group/Apache/realdocs" RedirectMatch permanent ^/$ "P:/Main Projects/Test/index.php" S

Re: [PHP] What is wrong ????

2001-08-17 Thread J Smith
It might also help to know what database you're using, as the syntax between them all can vary slightly. PostgreSQL? MySQL? Oracle? Ingres? J Dennis Van Zanten wrote: > Ofcourse sorry: > > You have an error in your SQL syntax near '','','010','CVs','','7-12-2000 > 12:52:25','ADMIN','7-12-20

[PHP] new IDE for PHP

2001-08-17 Thread Sandy Meier
Hi! At the moment I am writing the PHP support for KDevelop3.0 (http://www.kdevelop.org). The IDE ist modular and it is very easy to write plugins, so it is possible to implement support for all languages, make tools, GUI builders and so on. Actually there are plugins for C/C++, Java, Python,

Re: [PHP] new IDE for PHP

2001-08-17 Thread Nick Davies
Is there a alpha/beta of this available now :) On Fri, 17 Aug 2001, Sandy Meier wrote: > Hi! > > At the moment I am writing the PHP support for KDevelop3.0 > (http://www.kdevelop.org). The IDE ist modular and it is very easy to write > plugins, so it is possible to implement support for all

[PHP] need "Working..." pop up dialog

2001-08-17 Thread Ray Clouse
I'm trying to get a "working..." informational dialog or window going with my PHP page but I'm not getting anywhere. Here's the situation: When the user clicks on a link that has to gunzip a very large file, I want a popup to say "Working..." while the file is uncompressing. Then, when the file

Re: [PHP] new IDE for PHP

2001-08-17 Thread Sandy Meier
Am Freitag, 17. August 2001 17:14 schrieben Sie: > Is there a alpha/beta of this available now :) No, there isn't a release yet, but you can get the CVS version from the KDE CVS server. see http://www.kde.org/anoncvs.html or by using cvsup http://www.kde.org/cvsup.html Ciao! Sandy -- for sendin

Re: [PHP] What is wrong ????

2001-08-17 Thread Dennis van Zanten
It's MYSQL I allready have located the problem but I still doesn't have a sollution? The problems are cost by slashes back slashes and ( ) signs in the fields because I put the insert query into a string it doens't work out Is there a function that solves this problem? thanks, Dennis -

Re: [PHP] What is wrong ????

2001-08-17 Thread Tyler Longren
addslashes() might help you. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 17:16:18 +0200 "Dennis van Zanten" <[EMAIL PROTECTED]> wrote: > It's MYSQL I allready have located the problem but I still doesn't have > a > sollution? > The pr

[PHP] XHTML compatible error messages

2001-08-17 Thread Jan
Hi out there! I have got a problem with PHP's standard way of reporting errors. The in the error messages are making the XML invalid (should be ). Is there an easy way to do this? Jan.

Re: [PHP] XHTML compatible error messages

2001-08-17 Thread Tyler Longren
$string = "Hello everyone!How are you today?"; $result = str_replace("", ", "$string"); -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 17:40:07 +0200 "Jan" <[EMAIL PROTECTED]> wrote: > Hi out there! > > I have got a problem with PHP's s

RE: [PHP] XHTML compatible error messages

2001-08-17 Thread Jon Haworth
I think Jan meant that when PHP spits out "Error in line x", it has a in there which causes the page to be invalid. My question would be "why are you trying to validate pages with errors in anyway?" Cheers Jon -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: 17

[PHP] stuck

2001-08-17 Thread Jeremy Morano
Hi, Can someone please tell me what is wrong with this page. The problem is that my option block is always stuck on the last record in the table. No matter what option I choose, the information, address, city, state...etc, that is passed is always the one of the last record in the table...Help!

RE: [PHP] stuck

2001-08-17 Thread Jan De Luyck
You need to put the info in an array for all record to be available, like this: while ($row = mysql_fetch_array($result)) { $uid[] = $row['uid']; $address[] = $row['address']; $city[] = $row['city']; $state[] = $row['state']; $zip_code[] = $row['zip_code']

[PHP] $HTTP_REFERER

2001-08-17 Thread Erich Zigler
I am working on the last half of an Online Signup page for an ISP. There is a local .php page on the webserver that actually finalizes the addition of the user, but ONLY if $HTTP_REFERER is from a certain host. I was wondering what you guys think of doing it this way? Any advice would be appr

Re: [PHP] $HTTP_REFERER

2001-08-17 Thread Nick Davies
like if ($HTTP_REFERER == "certain host") { do finalise code } On Fri, 17 Aug 2001, Erich Zigler wrote: > I am working on the last half of an Online Signup page for an ISP. > > There is a local .php page on the webserver that actually finalizes the > addition of the user, but ONLY

Re: [PHP] $HTTP_REFERER

2001-08-17 Thread Nick Davies
Sorry missed a bit you'll just need to ereg out the hostname from HTTP_REFERER - take everything after http:// and before /... Nick. On Fri, 17 Aug 2001, Erich Zigler wrote: > I am working on the last half of an Online Signup page for an ISP. > > There is a local .php page on the webserver th

Re: [PHP] $HTTP_REFERER

2001-08-17 Thread Nick Davies
Probably best to read stuff first ;) try preg_match preg_match("/^(http:\/\/)?([\/]+)/i", $HTTP_REFERER, $hostname); the hostname will be in $hostname[2] Hope it helps. On Fri, 17 Aug 2001, Nick Davies wrote: > > Sorry missed a bit you'll just need to ereg out the hostname from > HTTP_REFE

Re: [PHP] stuck

2001-08-17 Thread Rob Hardowa
I'm not 100% sure what you want to accomplish here, or why it is stuck on the last row, but I've made some observations. On Friday 17 August 2001 09:05 am, you wrote: session_start(); > session_register("address"); > session_register("city"); > session_register("state"); > session_register("zip

Re: [PHP] $HTTP_REFERER

2001-08-17 Thread Erich Zigler
On Fri 17 Aug 2001, Nick Davies wrote: > Probably best to read stuff first ;) > try preg_match > preg_match("/^(http:\/\/)?([\/]+)/i", $HTTP_REFERER, $hostname); > the hostname will be in $hostname[2] > Hope it helps. Thanks. But is using $HTTP_REFERER the most secure way of doing it? Or can the

[PHP] Apache alias to a specific .htm file

2001-08-17 Thread Neil Freeman
Hi there, In an ideal world I would like to be able to type http://localhost into my browser and for Apache server to throw up a specific .htm file on my hard drive. At the moment I have an Apache Alias set up as follows: Alias /ife "P:/My Projects/Storyboard" and you need to enter: http://loc

[PHP] Attempt At Prev/Next Links

2001-08-17 Thread Gerard Samuel
Hey all. Im trying to setup a page where it has prev/next links. I have included a snip of the code. On the first page everything is cool, but on subsequent pages, the count get out of control. I was testing with displaying 5 entries at a time. The first page is good, the next displays 7

Re: [PHP] $HTTP_REFERER

2001-08-17 Thread Rob Hardowa
According to the spec: $HTTP_REFERER The address of the page (if any) which referred the browser to the current page. This is set by the user's browser; not all browsers will set this. So if it is set by the user's browser, it can be changed, or shut off. I believe there are programs out

Re: [PHP] Apache alias to a specific .htm file

2001-08-17 Thread Jeffrey A Schoolcraft
if you have DirectoryIndex support you can specify what file it will use as an index page. for most unix type os's this seems to be index.php[ 3] index.htm[ l] for IIS it's default.asp or something Jeff > In an ideal world I would like to be able to type http://localhost into > my browser and f

Re: [PHP] XHTML compatible error messages

2001-08-17 Thread Jan
Hi Jon, If the execution of a script is not stopped (when a parse error occures e.g.) then I could formate the error message within my generated XML with XSLT. My browser does not show the page if it is not valid XML so I have to use lynx in a putty telnet to look up my error messages which I wou

[PHP] merging arrays quickly

2001-08-17 Thread Michael
say I have $array1 = array("name"=>NULL,"thread"=>NULL,"id"=>NULL); $array2 = array("0"=>"fred","1"=>"3","2"=>""); I want $array1 to have the values of array2 - or $array2 to hve the keys of $array1 A foreach loop works fine to do this - but I was wondering if there is a quicker way to merge

[PHP] File Open and Writes..

2001-08-17 Thread Ashwin Kutty
Hi, I have a little function in my script that used to work until a little while back and for some reason it has decided to act up.. It is a basic function that reads a number from a file and then processes it, but increments it by 1, writes it back to the file and closes it.. now it used to work

[PHP] Using cURL on windows?

2001-08-17 Thread Brandon Orther
Hello, How would I go about installing cURL for PHP on windows box?

[PHP] sessions

2001-08-17 Thread Jeremy Morano
Hi there, I was wondering if a function such as session_close() or session_stop() existed. You see, i've been using session_destroy and/or session_unregister but the problem is that they unregister and/or destroy ALL my sessions in my server folder. What I am trying to do is just stop the session

[PHP] Re: tutor about PHP

2001-08-17 Thread Ivo Stoykov
Thanks. "_lallous" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > zend.com > php.net > > and lots more.. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

[PHP] Connecting to a MSSQL2000 database with a Linux box and PHP

2001-08-17 Thread Brandon Orther
Hello, Does anyone know of a tutorial on how to get PHP to connect to a MSSQL database from a Linux box?

Re: [PHP] $HTTP_REFERER

2001-08-17 Thread Jesse Arnett
Hello, i'm not sure i would worry too much about the referrer.. if your 'add account' script has decent error checking, it shouldn't matter if the user creates their own form. -jesse -- Jesse Arnett [EMAIL PROTECTED] SISCOM Inc http://www.siscom.net/ Southern Ohio's Superior Internet Service Pro

Re: [PHP] sessions

2001-08-17 Thread Rob Hardowa
Hi Jeremy, session_destroy() should not destroy all your sessions. As per the manual: session_destroy() destroys all of the data associated with the current session. If you are having trouble with all your sessions being deleted in each run, it may be a problem with these php.ini file setti

Re: [PHP] Connecting to a MSSQL2000 database with a Linux box and PHP

2001-08-17 Thread Michael Stearne
This should be in the manual or in the archives of the list. I believe you have to use the Sybase drivers for Linux in order to conntect to the database. Michael Brandon Orther wrote: >Hello, > >Does anyone know of a tutorial on how to get PHP to connect to a MSSQL >database from a Linux b

[PHP] Printf fails on large files

2001-08-17 Thread Inércia Sensorial Trabalhando
Hi All, A friend of mine said his printf is failing when he parses a variable from a 4.5 mega file. On smaller files, it works fine. There's a limit on the printf or somewhere else? Thanks. -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net -- PHP General Mailing

Re: [PHP] Printf fails on large files

2001-08-17 Thread John Meyer
At 05:14 PM 8/17/01 -0300, Inércia Sensorial Trabalhando wrote: > Hi All, > > A friend of mine said his printf is failing when he parses a variable from >a 4.5 mega file. On smaller files, it works fine. > > There's a limit on the printf or somewhere else? > > Thanks. Is he throwing the

Re: [PHP] Printf fails on large files

2001-08-17 Thread Inércia Sensorial Trabalhando
He said no, here's the error: Warning: printf(): too few arguments in /htdocs/content.php on line 20 And here's the code. Remember that only fails on large files: SITUAÇÃO DA CAIXA POSTAL Resultado da Consulta para: . SITUAÇÃO DA CAIXA POSTAL\n\n"); $situacao = `l

[PHP] xslt extension and encodings

2001-08-17 Thread Adam Rambousek
hi, I hope I'm asking on right place :) I'm using xslt functions to transform xml document to html it works perfectly, but I need to transform xml written in iso8859-2 to html output also in iso8859-2 if I add at the beginning of xml, sablotron tells me "syntax error" I have sablotron 0.60; ic

[PHP] cgi timeout

2001-08-17 Thread Raymond Siow
Hi: I am trying to run a script and it supposed to take a lot of time... so I set the max_execution_time in the config file to 0... (i think that's wat it's for no time limit) but after exactly 5 mins it gives me a cgi error saying that "the cgi application exceeded the allowed time for proc

[PHP] Re: cgi timeout

2001-08-17 Thread Raymond Siow
I have just tried the set_time_limit() function and it still doesn't work Ray Raymond Siow wrote: > Hi: > > I am trying to run a script and it supposed to take a lot of time... so > I set the max_execution_time in the config file to 0... (i think that's > wat it's for no time limit) but af

[PHP] Weird problems passing variables

2001-08-17 Thread JOHANSSON JÖRGEN
Hi there! I've got some strange problems whilst passing variables from forms into my php-script. When I use IE5 it works like a charm. Using Opera or IE4* the referred "action" script crashes due to memory restrictions on the server, in a function I use to get all the dates between two given date

RE: [PHP] cgi timeout

2001-08-17 Thread Erik H. Mathy
I haven't had to use IIS5 yet, but you might want to check in the IIS setting for a max cgi execution time. - Erik > -Original Message- > From: Raymond Siow [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 17, 2001 4:00 PM > To: [EMAIL PROTECTED] > Subject: [PHP] cgi timeout > > > Hi: >

[PHP] Browser Detection & Redirection -- PHP or Apache ???

2001-08-17 Thread Christopher Raymond
PHP Folks: Does PHP provide some mechanism for browser detection & redirection or is this something that Apache Directives can handle? For example: I don't want users with browsers less than 4.0 to actually load a page on our site. Instead, I want them redirected to a page that let's them know

Re: [PHP] Browser Detection & Redirection -- PHP or Apache ???

2001-08-17 Thread Tyler Longren
the $HTTP_USER_AGENT variable will be of some use to you. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 16:14:40 -0500 Christopher Raymond <[EMAIL PROTECTED]> wrote: > > PHP Folks: > > Does PHP provide some mechanism for browser detec

[PHP] Segmentation fault (core dumped)

2001-08-17 Thread Evan Nemerson
I am trying to run a repetitive script. Basically, one function over and over. Every time I run it from the command line I get "Segmentation fault (core dumped)". If I run it with the PHP module for apache, "Segmentation fault (core dumped)" appears in the error log. It seems to be a memory is

Re: [PHP] cgi timeout

2001-08-17 Thread Raymond Siow
ummm I tried look at the IIS setting... but couldn't find anything related to CGI execution time do you know how to change that if I were to do it? Ray "Erik H. Mathy" wrote: > I haven't had to use IIS5 yet, but you might want to check in the IIS > setting for a max cgi execution time.

[PHP] Can I turn this error off?

2001-08-17 Thread Rene Fournier
Just started learning PHP/MySQL a couple days ago, and would like to know if I can somehow suppress the following error: Warning: Undefined variable: submit in c:\Program Files\Apache Group\Apache\htdocs/smartslitters/invoices.php on line 22 Is it just a server or PHP setting or something? Any

Re: [PHP] cgi timeout

2001-08-17 Thread Raymond Siow
Seems like I've just found it if you look at how to config cgi setting in the IIS help file... it will tell you about it... yours, Ray Raymond Siow wrote: > ummm I tried look at the IIS setting... but couldn't find anything related > to CGI execution time do you know how to change t

[PHP] Design Help: Tracking Users

2001-08-17 Thread Alnisa Allgood
Hi all: I'm in the design stage of creating a client-account management system. We provide an array of support services to nonprofits, and I wish to develop a system that is more than just a basic service request system. I've been reading up on sessions management, as well as cookies. I've al

[PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
I am new to MySql but wanting to use PHP to update and maintain a database. I thought I might use MySql. I have installed MySql, and in PHP have created a database called 'mydir'. I am trying to find php functions to add new records/fields to the database, but all I can find are functions to quer

[PHP] Help with linux / apache / php

2001-08-17 Thread James, Yz
Hi all, I'll apologise right away - this is more or less completely off topic, though it is remotely connected with PHP (so that's my excuse). At the moment, the company I work for is hosted on a co-located server. We have one main domain and many sub domains. Here's how they are (roughly set

[PHP] Re: Segmentation fault (core dumped)

2001-08-17 Thread Hugh Bothwell
"Evan Nemerson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I can't just minimize the output to the screen, I have to go through 62^12 > repetitions. Uh, I hope you mean 6 * 2^12 (24576), not 62^12 (3226266762397899821056). ... assuming 10,000 reps per seco

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread ERISEN, Mehmet Kamil
In adition to that, you may want to check out the online documentation on the www.php.net website. Find the section under mySQL. If you know how to manipulate data using SQL, php apis are very easy to use .. www.mysql.com could be good resource for you as well. if you have a specific question

[PHP] SESSION question.

2001-08-17 Thread ERISEN, Mehmet Kamil
Hello, I have implemented a user login with PHP Session functions. THe problem I have is that if the user is logged in the site using http://mysite.com/login.php and starts a session, the session is not recognized when user is trying to utilize the site with http://www.mysite.com/dosomething.php

[PHP] looong date formatting for MySQL

2001-08-17 Thread CGI GUY
There's gotta be an easier way to get create a date properly formatted for MySQL's standard -MM-DD DATE field format. Any suggestions, smacks-upside-the-head, etc. on how to reduce this would be greatly appreciated. Here's my code: It works, but sheesh...

[PHP] History of the browser

2001-08-17 Thread Ing. Raul Glez Rdguez
Hi Php Users. How can I get the items of a browser's history? Thank you.

Re: [PHP] looong date formatting for MySQL

2001-08-17 Thread Adam Rambousek
date("Y-m-d") should do the job > There's gotta be an easier way to get create a date > properly formatted for MySQL's standard -MM-DD > DATE field format. Any suggestions, > smacks-upside-the-head, etc. on how to reduce this > would be greatly appreciated. -- Adam Rambousek email: [EMAI

Re: [PHP] Can I turn this error off?

2001-08-17 Thread Rasmus Lerdorf
Turn off E_NOTICE in your php.ini file. On Fri, 17 Aug 2001, Rene Fournier wrote: > Just started learning PHP/MySQL a couple days ago, and would like to know if > I can somehow suppress the following error: > > Warning: Undefined variable: submit in c:\Program Files\Apache > Group\Apache\htdocs/

RE: [PHP] looong date formatting for MySQL

2001-08-17 Thread mike
should do the job... there is lot's of things that you can incorporate in the date function... look it up at www.php.net/date -Original Message- From: CGI GUY [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 4:16 PM To: [EMAIL PROTECTED] Subject: [PHP] looong date formatting f

RE: [PHP] looong date formatting for MySQL

2001-08-17 Thread Jerry Lake
NOW() Jerry Lake Interface Engineering Technician -Original Message- From: Adam Rambousek [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 4:20 PM To: CGI GUY; [EMAIL PROTECTED] Subject: Re: [PHP] looong date formatting for MySQL date("Y-m-d") should do the job > There's got

Re: [PHP] looong date formatting for MySQL

2001-08-17 Thread CGI GUY
Thanks for the reply, however, that function call doesn't zero-substitute (i.e., "07" for "7", "03" for "3", etc.); that's why I've added this: if ($month < 10) { $month = "0"; $month .= $today['mon']; } By default, MySQL only accepts dates as -MM-DD; PHP's getdate(Y-m-d) prints out -M-D

RE: [PHP] looong date formatting for MySQL

2001-08-17 Thread Jerry Lake
(regarding my previous post) although, it probably doesn't apply to what your doing. Jerry Lake Interface Engineering Technician -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 4:28 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] looong date f

Re[2]: [PHP] looong date formatting for MySQL

2001-08-17 Thread Adam Rambousek
look into the docs, there's possibility to display zeros (but I don't remeber exact letter) > Thanks for the reply, however, that function call > doesn't zero-substitute (i.e., "07" for "7", "03" for > "3", etc.); that's why I've added this: -- Adam Rambousek email: [EMAIL PROTECTED] ICQ:

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread ERISEN, Mehmet Kamil
Hello, I am using the PHPMyAdmin for that. There is a website www.phpwizard.net that you can download phpMyAdmin. Hope this helps. Mehmet. --- "Dave.O" <[EMAIL PROTECTED]> wrote: > I have read the documentation already. > > I am trying to create a directory, which information can > be added and >

Re[2]: [PHP] Adding records to a MySql database

2001-08-17 Thread Adam Rambousek
mysql_query() is universal for any SQL query so mysql_query("INSERT INTO table () values ()") is what you're looking for > I was looking for the command something like mysql_insert or something, just > found dba_insert() is this it ?!? -- Adam Rambousek email: [EMAIL PROTECTED] ICQ: 47596279

[PHP] debugger_on() undefined?

2001-08-17 Thread Jeffery Cann
Greetings. I am running php 4.0.6, which I built as an apache module on Linux 2.2.14. I am trying to get debug information, using the 'debugger_on()' function. My compilation line (from phpinfo()) is: './configure' '--prefix=/usr/local/php' '--with-config-file-path=/etc' '--with-apxs=/usr/l

Re: [PHP] merging arrays quickly

2001-08-17 Thread Reuben D Budiardja
Take a look at the function array_merge http://www.php.net/array_merge Reuben D. B On Friday 17 August 2001 08:46 am, you wrote: > say I have > $array1 = array("name"=>NULL,"thread"=>NULL,"id"=>NULL); > $array2 = array("0"=>"fred","1"=>"3","2"=>""); > > I want $array1 to have the values of a

Re: [PHP] merging arrays quickly

2001-08-17 Thread Michael
Reuben D Budiardja wrote: > > Take a look at the function array_merge > http://www.php.net/array_merge > > Reuben D. B > I have - it's no use unfortuntely - The array with the values has numeric keys so they just get appended - would have been okay if they had string keys though. > On Frida

[PHP] Re: Errcode: 2 when running LOAD DATA LOCAL INFILE on server

2001-08-17 Thread Yeong CN
thank for reply me. But i think the problem is not in the .csv file because today when I test it with netscape..it ok... it return the message like that : LOAD DATA LOCAL INFILE '/TEMP/phpB080AVGU' INTO TABLE purchase FIELDS TERMINATED BY ',' (purchase_order,job_no,username,model,quantity,

  1   2   >