[PHP] SQL Highlighting in PHP?

2001-08-17 Thread Chris Lambert
Hey all, I'm wondering if anyone's created a custom function that'll perform SQL highlighting, similar to the highlight_file/string functions for PHP source. I made a quick hack, but I'd love to have something more consistent. Any ideas? /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Netwo

[PHP] Search for PHP Motivation Studies

2001-08-17 Thread Björn Schotte
Hi, for a well-known PHP advocacy site we are searching for motivation studies of (big) companies who decided to use PHP. A "PHP motivation study" is not like a normal case study where you tell the reader about the application foobar.com. Instead, you tell 'em about why, when and how you decided

[PHP] FW: Large sites using PHP

2001-08-17 Thread Maxim Maletsky
Dear PHP gurus: I've been following here the ever-growing-never-to-be-stopped discussions related to the largest sites using PHP. Apparently, most of the PHP developers are trying to convince their bosses to use Open Source language PHP instead of other 'silly' commercial solutions those 'brains

[PHP] Help compiling CVS

2001-08-17 Thread Evan Nemerson
lm -ldl -lnsl -lresolv -lcrypt stub.lo: file not recognized: File truncated collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/usr/local/cvs/php4' make: *** [all-recursive] Error 1 grrr. Any ideas? I have the latest stable version alrea

[PHP] Problems with cookies....

2001-08-17 Thread Marius Pertravčius
Sveiki, php-general, I want to put cookies to know how I have to open window (new window or same window), but I'm making some mistake. Please help me. Here is the code --- Pasirinkite --- Same Window New Window

[PHP] ADODB Library

2001-08-17 Thread Jochen Kaechelin
Anyone made good experiences with the ADODB Library for PHP4? -- WA-P : Jochen Kaechelin Programmierung - Beratung - Hosting Stuttgarter Strasse 3, D-73033 Göppingen Tel. 07161 - 92 95 94, Fax 92 95 98 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Large sites that use PHP

2001-08-17 Thread Tom Malone
how about ScreamingMedia http://www.screamingmedia.com Tom Malone Web Designer http://www.tom-malone.com -- 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] History of the browser

2001-08-17 Thread Maxim Maletsky
The last page browser visited and clicked on 'you' would be available in $HTTP_REFERER. But, as the whole history, you would need some javascript to do that. It should also be impossible to do due security reasons. Cheers, Maxim Maletsky -Original Message- From: Ing. Raul Glez Rdguez [

RE: [PHP] question from a php newbie

2001-08-17 Thread Maxim Maletsky
You know, what you can do (strongly not recommended, but still) is to insert that whole thing into a database and then pull this string out and pass it through eval(). ie: eval($record); another way would be to take all that, addslashes($it) and then write into a file with stripslashes($it). Bu

RE: [PHP] debugger_on() undefined?

2001-08-17 Thread Matthew Loff
PHP docs are weak on debugger_on() because the debugger isn't a feature in PHP 4 :) It was not included in the transition from PHP 3 to 4. You'll have to use a 3rd-party debugger for PHP code. Search the archives for this list, it has been discussed in the past. -Original Message-

RE: [PHP] looong date formatting for MySQL

2001-08-17 Thread Maxim Maletsky
Still, read this php.net/date it has a variety of functions, dates with zeros and without... Another thing you can do is using the mySQL manual. Did you know that mySQL has a WHOLE BUNCH of date functions? Cheers, Maxim Maletsky -Original Message- From: CGI GUY [mailto:[EMAIL PROT

[PHP] question from a php newbie

2001-08-17 Thread 602e23
I'm so new to this, in fact, that I may not be able to even frame my question correctly. Please bear with me. Suppose that I had a list in a data base of, say, countries and that I built an array as $states = array ( array("abbr"=>"MA", "name"=>"Massachusetts"),

[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,

[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] Adding records to a MySql database

2001-08-17 Thread Dave.O
Thanks - Original Message - From: "Martín Marqués" <[EMAIL PROTECTED]> To: "Dave.O" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 18, 2001 12:43 AM Subject: Re: [PHP] Adding records to a MySql database > On Vie 17 Ago 2001 20:39, Dave.O wrote: > > No offence but you

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
Thanks - Original Message - From: "ERISEN, Mehmet Kamil" <[EMAIL PROTECTED]> To: "Dave.O" <[EMAIL PROTECTED]>; "Martín_Marqués" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 18, 2001 12:42 AM Subject: Re: [PHP] Adding records to a MySql database > Here is how this

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Martín Marqués
On Vie 17 Ago 2001 20:41, Dave.O wrote: > I was looking for the command something like mysql_insert or something, > just found dba_insert() is this it ?!? dba is not MySQL! Saludos... :-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL?

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Martín Marqués
On Vie 17 Ago 2001 20:39, Dave.O wrote: > No offence but you are telling me stuff I already know ! This mailing > list is very good so dont take offence due to my frustration. I know how > to connect to the server, create the database and more or less query it, > but cant find the command to ad

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread ERISEN, Mehmet Kamil
Here is how this is done: $sql = "insert into employees values ('10','John','Smith','Engineer') "; $result = mysql_query($sql) or die ('Insert failed'); with php, you can execute any SQL statement as long as you have access... to update a table $sql = "update employees set job

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

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
I was looking for the command something like mysql_insert or something, just found dba_insert() is this it ?!? - Original Message - From: "Martín Marqués" <[EMAIL PROTECTED]> To: "Dave.O" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 18, 2001 12:23 AM Subject: Re: [PH

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
No offence but you are telling me stuff I already know ! This mailing list is very good so dont take offence due to my frustration. I know how to connect to the server, create the database and more or less query it, but cant find the command to add/insert records or am I doing something very wr

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] 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] 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: [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
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 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] Adding records to a MySql database

2001-08-17 Thread Martín Marqués
On Vie 17 Ago 2001 20:14, Dave.O wrote: > I have read the documentation already. > > I am trying to create a directory, which information can be added and > maintained through a the web browser. I thought that using a MySql > database would be a good idea rather than writing it all to a file. Yo

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 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

[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.

[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...

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
I have read the documentation already. I am trying to create a directory, which information can be added and maintained through a the web browser. I thought that using a MySql database would be a good idea rather than writing it all to a file. You saying that MySql is a waste of time for this ?

[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

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] 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 Martín Marqués
On Vie 17 Ago 2001 19:17, you wrote: > 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 > da

[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] 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] 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

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] 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
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] 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] 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] 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] 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] 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

[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] 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] 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

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

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

[PHP] problems with require

2001-08-17 Thread Martín Marqués
I'm having problems with the require_once command. I have an ini_set, changing my include_path variable, but the starge thing is that some files get included and others don't, and I have to right the full relative path. Any ideas on what that can be? It's on a PHP-4.0.4pl1. Saludos... :-) --

[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] 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

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] $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

[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?

[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] 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] Using cURL on windows?

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

[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

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

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] $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

[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

[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

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

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 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] $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
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

[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] 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] 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] 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

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

[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] 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

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] 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

[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 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] 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] 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] 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 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

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','',

[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: 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

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: [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

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] 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] 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

[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

[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

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

  1   2   >