Re: [PHP] signing in as php user?

2001-01-09 Thread Brian Clark
Hello Jason, (JJ == "Jason Jacobs") [EMAIL PROTECTED] writes: JJ> Does anyone know how I can sign into a site through a shell JJ> (Telnet, FTP program, etc) with the PHP user? $ ps aux | egrep '([w]ww|[n]obody)' | su `awk '{ print $1 }'` or $ which php | ls -l `awk '{ print $1 }'` ..And lo

Re: [PHP] need admin help please...

2001-01-09 Thread Brian Clark
Hello Sebastian, (SS == "Sebastian Stadtlich") [EMAIL PROTECTED] writes: SS> I switched my provider and now i often get this error message when SS> using mysql from my php-skripts: SS> "Warning: MySQL Connection Failed: Can't create a new SS> thread (errno 11). If you are not out of available

Re: [PHP] Baby's First Regex! (Repost - Please Help)

2001-01-09 Thread Brian Clark
Hello Murray, (MS == "Murray Shields") [EMAIL PROTECTED] writes: MS> I have written my first regex's, which are simply used for MS> validation of input into a web form. Basically, they check to see MS> if an invalid characters are being entered, and is working MS> perfectly. A different regex

Re: [PHP] Looking for a script

2001-01-09 Thread Brian Clark
Hello PeterOblivion, (Pac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes: Pac> since im too busy to write my own script, does anyone know of a Pac> FilePlanet (fileplanet.com) or Download.com type indexing script, Pac> where when you click on a link it will take you to the details of Pac> th

Re: [PHP] include path confusion

2001-01-10 Thread Brian Clark
Hello Randy, (R == "Randy") [EMAIL PROTECTED] writes: R> How I think it SHOULD work is like DOS - First it looks at where R> you say it is. If not there, it looks in the current directory. Let's not forget Unix. ;-) R> If not there, it looks in the directories in the path. I'm sure PHP R> do

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Brian Clark
Hello Alexander, (AW == "Alexander Wagner") [EMAIL PROTECTED] writes: >> Mmmmfff... ultraedit's wordlist file still lacks the color of >> allaire's homesite - it does detect which parts of the .php file >> are HTML and what parts of the file are PHP code, and colours >> syntax very well...

Re: [PHP] problem with includes

2001-01-10 Thread Brian Clark
Hello James, (JM == "James Mclean") [EMAIL PROTECTED] writes: JM> i am having a problem with pages that use includes. What is the extension of the document that you're placing include() in? JM> i am requiring the page like this JM> require("./comment.php"); So us what is in comment.php JM

Re: [PHP] Connect problem

2001-01-10 Thread Brian Clark
Hello Maximiliano, (MB == "Maximiliano Bubenick") [EMAIL PROTECTED] writes: MB> I run linux red hat 6.2 with apache 1.3.12, php4 and mysql 3.22.32 MB> The first time my problem was Call to undefined function: MB> mysql_connect(), and I add the line dl("mysql.so"); and then bring MB> me: Why

Re: [PHP] problem with includes

2001-01-10 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] writes: BC> So us what is in comment.php ^^ Show -Brian -- There are two ways to write error-free programs, and only the third one works. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

Re: [PHP] Funny running PHP4 on Apache, Windows 95

2001-01-10 Thread Brian Clark
Hello Patrick, (PD == "Patrick Dunford") [EMAIL PROTECTED] writes: PD> I have this funny thing when running PHP 4 on Apache on Win95. If PD> the script PD> AddType application/x-tar .tgz PD> AddType application/x-httpd-php3 .php3 PD> AddType application/x-httpd-php3-source .phps

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] writes: BC> Likewise, if you get into the habit of doing or ?> tandem, your worries will soon disappear. P.S. a decent editor that has *good* syntax highlighting (Ie. different schemes for HTML, JavaScript and PHP highlighting in t

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Brian Clark
Hello Miles, (MT == "Miles Thompson") [EMAIL PROTECTED] writes: MT> When I turn PHP on and off I tend to have "OOPS" scenarios, and MT> have to go searching for the previous "?>" or " or ?> Miles -Brian -- Don't try to be like Jackie. There is only one Jackie. Study computers instead. -- Ja

Re: [PHP] Apache error after setting path for mysql=

2001-01-10 Thread Brian Clark
Hello Shane, (SR == "Shane Reid") [EMAIL PROTECTED] writes: SR> I reconfigured php with ./configure SR> --with-mysql=/usr/local/etc/mysql SR> --with-apxs=/usr/local/etc/apache/bin/apxs and apache will no SR> longer start. I removed the path from the mysql to get the SR> webserver back up but m

Re: [PHP] case ?

2001-01-10 Thread Brian Clark
Hello Jon, (JR == "Jon Rosenberg") [EMAIL PROTECTED] writes: JR> I know this is kinda silly. but, if I have the following, will the JR> file only be included when the case is matched or does require JR> always bring in the file regarless? That is *supposed* to be the way it works. That is *su

Re: [PHP] Exponents

2001-01-10 Thread Brian Clark
Hello Ian, (IL == "Ian LeBlanc") [EMAIL PROTECTED] writes: IL> Hey guys this one might be simple for ya.. IL> how do you get a exponent of a verable.. example... http://www.php.net/manual/html/function.pow.html -Brian -- Logic: The systematic method of coming to the wrong conclusion with c

Re: [PHP] include path confusion

2001-01-11 Thread Brian Clark
Hello Randy, (R == "Randy") [EMAIL PROTECTED] writes: R> Thanks for the info Brian. But what about the path you have in the R> include statement? IE: include "../path1/file.php" R> Does it ignore the path? Try the path? Or just append that path to R> the end of each path in the include_path?

Re: [PHP] include path confusion

2001-01-11 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] writes: R>> Thanks for the info Brian. But what about the path you have in the R>> include statement? IE: include "../path1/file.php" R>> Does it ignore the path? Try the path? Or just append that path to R>> t

Re: [PHP] Use

2001-01-14 Thread Brian Clark
Hello Alex, (AB == "Alex Black") [EMAIL PROTECTED] writes: AB> can people give me opinions as to why > From: [EMAIL PROTECTED] (Philip Olson) >> Newsgroups: php.general >> Date: 13 Jan 2001 12:18:08 -0800 >> Subject: Re: [PHP] Use > >> My understanding is : >> >> 1. http://www.php.net/) To u

Re: [PHP] tie string value together

2001-01-14 Thread Brian Clark
Hello Jacky, (Jl == "Jacky@lilst") [EMAIL PROTECTED] writes: Jl> This may sound too easy to ask but I want ot make sure if I'm Jl> correct. I have a form with date, month and year select fields in Jl> it. When I submit, i want to tie those three fields value together Jl> and insert into a fiel

Re: [PHP] hello

2001-01-15 Thread Brian Clark
Hello Herb, (SOM == "SuiteNet Operations Manager") [EMAIL PROTECTED] writes: SOM> I was wondering what Im sure a well knowledged php expert like SOM> your self would recommend a hands on php crash course. The best SOM> way for me to jump right in to understanding php and getting SOM> started ma

Re: [PHP] Upgrade PHP3 to PHP4

2001-01-15 Thread Brian Clark
Hello TOM, (T == "TOM") [EMAIL PROTECTED] writes: T> I would like to upgrade PHP3 to PHP4 on my Turbo Linux, does anyone T> has experience on this? Not specifically on Turbo Linux, but this may shed some light on the subject: http://www.php.net/version4/migration.php T> enethk -Brian --

Re: [PHP] A little problem

2001-01-17 Thread Brian Clark
Hello Emiliano, (EM == "Emiliano Marmonti") [EMAIL PROTECTED] writes: EM> I have a little problem: Sometimes when you invokes some .php EM> page, appears "could not redefine function...". It looks like a Try: -Brian -- You may be recognized soon. Hide. -- PHP General Mailing List (http

Re: [PHP] Apache .htaccess Help (OT)

2001-01-17 Thread Brian Clark
Hello Website4S, (Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes: Wac> Sorry this is off topic but I just can`t find anywhere with Wac> reliable information to help me get my .htaccess working on my Wac> server. I have followed many tutorials and none of them give me a Wac> working passw

Re: [PHP] changed database context message

2001-01-17 Thread Brian Clark
Hello Slappy, (SS == "Slappy Smith") [EMAIL PROTECTED] writes: SS> i am getting this message on top of one of my pages. i have read SS> up on it and everyone says its a warning message but from the SS> things ive seen online no one seems to know how to get rid of it. Something along the lines

Re: [PHP] Cookies still store old value(Help!!)

2001-01-17 Thread Brian Clark
Hello Hendry, (HS == "Hendry Sumilo") [EMAIL PROTECTED] writes: HS> When User "A" enter ,the cookies will store User "A" name,when he HS> enters the lecturer page,he will be directed to login page HS> again(because he is not allowed to enter lecturer page) and so do HS> User "B". BUT THE PROBL

Re: [PHP] Grabbing referring keywords.....

2001-01-17 Thread Brian Clark
Hello Dallas, (DK == "Dallas Kropka") [EMAIL PROTECTED] writes: DK> (Note: I know about using $HTTP_REFERER But how can I take that DK> info and strip it, if that is what I need to do?) I've never done this, but I think the basic idea would be to determine what the query strings of each spide

Re: [PHP] php 4.0.5.dev will not read php.ini on NT

2001-01-17 Thread Brian Clark
Hello Robert, (R == "Robert") [EMAIL PROTECTED] writes: R> PHP 4.0.5.dev I installed it on my Windows 2000 Pro machine with R> IIS and MySQL and it works like a champ I installed it on my R> Windows NT Server with IIS and MSSQL and it will not read the R> php.ini file I put it in the following

Re: [PHP] PHP not working on Win95/Apache

2001-01-17 Thread Brian Clark
Hello Phil, (PS == "Phil Scopes") [EMAIL PROTECTED] writes: PS> I am trying to run PHP in Windows '95 with Apache server. I followed all PS> the instructions in the installation doc, including editting the Apache and PS> PHP configuration files, and putting the PHP.INI file in my Windows PS>

Re: [PHP] Postgres pconnect

2001-01-17 Thread Brian Clark
Hello Wade, (HWM == "H. Wade Minter") [EMAIL PROTECTED] writes: HWM> So, can I change all of the pg_connect calls to pg_pconnect call HWM> and have the pages use persistent connections, or is there HWM> something more that needs to be done? Yes. AFAIK. -Brian -- The trouble with a lot of self

Re: [PHP] Session and Cookies

2001-01-17 Thread Brian Clark
Hello Hendry, (HS == "Hendry Sumilo") [EMAIL PROTECTED] writes: HS> Can someone tell me how to use Session Object because when the HS> user login the page I want to store the login,pass,and type_login HS> so that I can pass this throughout the process. I found that i can HS> store that by usin

Re: [PHP] stripping the keywords from a search engine... again...

2001-01-17 Thread Brian Clark
Hello Dallas, (DK == "Dallas Kropka") [EMAIL PROTECTED] writes: DK> Posted earlier but got no response so here it is again... I gave you a quick explanation of one way to do it earlier, but I know of no tutorials off the top of my head. Here is a lengthy example if you _have_ to see code

Re: [PHP] general CGI question

2001-01-19 Thread Brian Clark
Hello Hrishi, (H == "Hrishi") [EMAIL PROTECTED] writes: H> I need to know how to get apache to parse CGI output with the SSI H> parser (the [php] script will have includes, which need to go H> through mod_include). changing the mime-type to x-server-parsed or H> anything hooked by mod_include

Re: [PHP] File upload on linux

2001-01-19 Thread Brian Clark
Hello MacBane, (M == "MacBane") [EMAIL PROTECTED] writes: M> I have some file upload code but it is not woking on debian linux, M> could some one give me a hand M> $the_path is set some where else What is the value of $the_path? M> $path = "/var/www/cms/gentext/$section/$doctype/"; This

Re: [PHP] Error connecting to MySQL server

2001-01-19 Thread Brian Clark
Hello Rosen, (R == "Rosen") [EMAIL PROTECTED] writes: R> When I try to connect to MySQL server I get message "Can't connect R> to MySQL server (10060 )! Where's your code? Are you using someone else's application? Is mysqld even running? Is it /still/ running after you get that error? Are

Re: [PHP] Good Reads

2001-01-19 Thread Brian Clark
Hello Sean, (SB == "Sean Brown") [EMAIL PROTECTED] writes: SB> Does anyone have any suggestions on a good book for beginners. I SB> currently own "PHP3 Programming Browser-Based Applications" by SB> David Medinets. I have no regrets thus far on purchasing the book SB> but it seems to leave a l

Re: [PHP] Help with PHP Shell Scripting

2001-01-19 Thread Brian Clark
Hello Justin, (JY == "Justin Yu") [EMAIL PROTECTED] writes: JY> When I tried connecting to Postgres through a shell script that I JY> wrote, I get the following error: JY> "Fatal error: Call to undefined function: pg_connect()" Because you don't have pgsql (PostgreSQL) support built into you

Re: [PHP] Off The Topic But Please Help....

2001-01-19 Thread Brian Clark
Hello Statbat, (S == "Statbat") [EMAIL PROTECTED] writes: S> 1. In my htdocs folder, I am able to access any file which is in S> the htdocs folder but I am not able to access any file which in the S> sub folder of htdocs. It says file not found. Lets suppose If I S> have a test.php file in php

Re: [PHP] PDFLib and PHP and pdf_open_image_file

2001-01-19 Thread Brian Clark
Hello goood, (gg == "goood goood") [EMAIL PROTECTED] writes: gg> I have an problem with PDFLib and PHP. I'm trying to include gg> images in PDF file using pdf_open_image_file If in my source code gg> is line: gg> $o=pdf_open_image_file($pdf,"gif","pict.gif"); gg> i get the error: Cannot fi

Re: [PHP] temporary unsubscribe mailing list

2001-01-19 Thread Brian Clark
Hello Wen, (WNL == "Wen Ni Leong") [EMAIL PROTECTED] writes: WNL> I would like to unsubscribe the mailing list for a week which is WNL> effective from 20th of Jan 2001 to 28th of Jan 2001. I hope you WNL> can automatic reactive me into the mailing list after the 28th of WNL> Jan 2001. -- PH

Re: [PHP] Newbie : info/tut on XML and PHP

2001-01-19 Thread Brian Clark
Hello Rahul, (RB == "Rahul Bhide") [EMAIL PROTECTED] writes: RB> Can you give me pointers(read urls) to "Good Sites" on tutorials RB> or info from scratch on XML with PHP. http://www.phpbuilder.com/columns/justin2428.php3 http://www.phpbuilder.com/columns/joe2907.php3 http://www.phpbu

Re: [PHP] question on time-based function

2001-01-19 Thread Brian Clark
Hello Rudy, (RM == "Rudy McDaniel") [EMAIL PROTECTED] writes: RM> Anyone have any ideas on how to make a function reset every RM> 24-hours? For example, I have a function that grabs a random quote RM> from a file and selects a new one every time the page is reloaded. RM> What I want, however,

Re: [PHP] Error connecting to MySQL server

2001-01-19 Thread Brian Clark
Hello Rosen, (R == "Rosen") [EMAIL PROTECTED] writes: R> When I connect via WEB based admin, there is no problems ! The R> MySQL Server is remote. But when I install on my computer software R> ( Artronoc Admin, DbTools ) I receive error "Can't connect to MySQL R> server on host . (10060).

Re: [PHP] Compiling PHP with "--with-apxs"

2001-01-20 Thread Brian Clark
Hello Jero, (J == "Jero") [EMAIL PROTECTED] writes: J> checking for Apache module support via DSO through APXS... apxs:Error: J> Sorry, no DSO support for Apache available J> apxs:Error: under your platform. Make sure the Apache J> apxs:Error: module mod_so is compiled into your server J> apxs

Re: [PHP] DBase functions

2001-01-22 Thread Brian Clark
Hello Piotr, (PD == "Piotr Duszynski") [EMAIL PROTECTED] writes: PD> Fatal error: Call to unsupported or undefined function PD> dbase_open() in ... PD> What's the problem? You'll probably need to re./configure PHP with the --enable-dbase option. -Brian -- PHP General Mailing List (http:

Re: [PHP] oops, little problem with mysql

2001-01-22 Thread Brian Clark
Hello Dominick, (DV == "Dominick Vansevenant") [EMAIL PROTECTED] writes: DV> I deleted all the records from the privileges tables (mysql database) and DV> restarted the daemon. http://www.mysql.com/documentation/mysql/bychapter/manual_Problems.html#Resetting_permissions DV> Now off course I

Re: [PHP] Local Path of Script

2001-01-22 Thread Brian Clark
Hello Karl, (KJS == "Karl J. Stubsjoen") [EMAIL PROTECTED] writes: KJS> How do I obtain the path of the local script? Or do I have to KJS> build it from the $DOCUMENT_ROOT? I think this is specific to Apache, but try $SCRIPT_FILENAME -Brian -- Syntactic sugar causes cancer of the semi-colons

Re: [PHP] Newbie: array help....

2001-01-22 Thread Brian Clark
Hello Brian, (BVB == "Brian V Bonini") [EMAIL PROTECTED] writes: BVB> That's what I thought, which seemed to be the obvious BVB> however, when I tried that it returns an error. BVB> "Warning: Variable passed to each() is not an array or object in pagetop.inc BVB> on line 105" array(

Re: [PHP] upload files from the local PC/UNIX to the web sever

2001-01-22 Thread Brian Clark
Hello david, (dk == "david klein") [EMAIL PROTECTED] writes: dk> Hello, Is there a way to upload files from the local PC/UNIX to the web dk> sever? Especially multiple files at the same time? What we need to do at dk> the server and client side? Documents: http://www.php.net/manual/en/ht

Re: [PHP] Getting warning using split

2001-01-23 Thread Brian Clark
Hello Matt, (MW == "Matt Williams") [EMAIL PROTECTED] writes: MW> $query_string = split("+",$search); $query_string = explode('+', $search); -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP] Turning off scrollbar

2001-01-23 Thread Brian Clark
Hello Website4S, (Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes: Wac> Can anyone tell me how to turn off the bottom scrollbar in both Wac> IE and Netscape?? Check all of your table widths (use percentages or a width of around 550) and validate your HTML. http://validator.w3.org/ Your

Re: [PHP] Search for the documentation

2001-01-25 Thread Brian Clark
Hello Philip, (PO == "Philip Olson") [EMAIL PROTECTED] forecasted: PO> http://www.php.net/tips.php PO> it will turn your browser into a search machine. Even better, for people who use EditPlus (sorry, unsure about other editors) you can do this with just one shortcut from within EditPlus its

Re: [PHP] Search for the documentation

2001-01-26 Thread Brian Clark
Hello Philip, (PO == "Philip Olson") [EMAIL PROTECTED] ciphered: PO> This is a good idea. I just played with it a bit and notice for it PO> to work "properly" one must space out the function so (pretending PO> that | is our cursor) : Both examples work with my version of EditPlus (see below

Re: [PHP] Search for the documentation

2001-01-26 Thread Brian Clark
(BC == "Brian Clark") [EMAIL PROTECTED] betokened: BC> I'm using Beta 2.10a (I'm in the Beta program), but I'm not BC> completely sure when this new feature was added (some where BC> between 2.00 and 2.10a): BC> If you go into settings and syntax for PHP

Re: [PHP] Stripping HTML selectively?

2001-03-02 Thread Brian Clark
Hi Erick, @ 12:22:39 AM on 3/3/2001, [EMAIL PROTECTED] wrote: > i tried to look at "strip_tags" but then it only returns me: http://www.php.net/manual/en/function.strip-tags.php string strip_tags (string str [, string allowable_tags]) "Note: Allowable_tags was added in PHP 3.0.13, PHP4B3."

Re: [PHP] any way to count subscribers to PHP lists?

2001-03-03 Thread Brian Clark
Hi Ned, @ 9:27:57 AM on 3/3/2001, Ned Lilly wrote: > Hi, I'm wondering if there's an ezmlm equivalent of the "lists-full" > command for majordomo. That command returns data like the > following (from the PostgreSQL list): While not exactly what you wanted, this may provide some of those stat

Re: [PHP] PHP without a webserver

2001-04-14 Thread Brian Clark
Hi Plutarck, @ 11:37:09 AM on 4/14/2001, Plutarck wrote: > I've heard much about how PHP is far more than just a language for > web programming, and I agree. I agree enough that I would like to > actually try it. I'd like to use PHP scripting in a C/C++ program > that doesn't need a webserver as

Re: [PHP] HTML and PHP?

2001-04-14 Thread Brian Clark
Hi Steve, @ 11:34:26 PM on 4/13/2001, Steve Werby wrote: ... > echo << > Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to > test for yourself? ;-) > And you can use whatever marker (the 'STOP' above and below) you choose. > Just make sure you don't indent the closing

Re: [PHP] Supplied argument is not a valid MS SQL-Link resource

2001-04-14 Thread Brian Clark
Hi davek, @ 1:50:14 PM on 4/14/2001, davek wrote: > Does anybody know how to fix this error? "Supplied argument is not a > valid MS SQL-Link resource" I am running: ... > $Conn=mssql_connect('192.168.1.20','username','password') or die("Could not connect to the mssql server"); > $ThisConnect=

Re: [PHP] PHP without a webserver

2001-04-14 Thread Brian Clark
Hi Plutarck, @ 2:11:35 PM on 4/14/2001, Plutarck wrote: > Ah, even better. However, how would the script be passed to PHP? As > a command line argument? Install the CGI executable of PHP in c:\php In your autoexec.bat: SET PATH=c:\php;%PATH% Reboot. >From the command line: php -q script.ph

Re: [PHP] user info?

2001-04-14 Thread Brian Clark
Hi Ramiro, @ 6:48:38 AM on 4/14/2001, Ramiro Radjiman wrote: ... > I'm just wondering if there is a method to extract user specific > info when this user connects to the site. http://www.php.net/manual/nl/function.getenv.php May be what you're looking for. > U user must have a handle, but i d

Re: [PHP] Any one have PHP voteBOOTH source code...?!?

2001-04-14 Thread Brian Clark
@ 6:50:49 AM on 4/14/2001, news.php.net wrote: > hello... anyone know where i can downlaod voteBOOTH.php w/ the image > viewer?! or does anyone have it that you can send to me..? I don't know anything about a poll type script with an image viewer, but look around here: http://www.hotscript

Re: [PHP] Forcing Case

2001-04-14 Thread Brian Clark
Hi James, @ 6:44:08 AM on 4/14/2001, James Moore wrote: ... > http://www.php.net/manual/en/function.strtoupper.php > http://www.php.net/manual/en/function.strtolower.php > http://www.php.net/manual/en/function.ucfirst.php Another extremely useful one is ucwords() http://www.php.net/manual/en/f

Re: [PHP] antifraud logic for voting poll, banner clicks

2001-04-14 Thread Brian Clark
Hi Keyur, @ 2:57:56 AM on 4/14/2001, Keyur Kalaria wrote: ... > Can anyone suggest me how to avoid the fraud rating and fraud banner clicks. > What all things we need to take care for the same etc. Have a look at how those are implemented in phpAds and phpPolls: http://www.phpwizard.net/ -Bri

Re: [PHP] HTML and PHP?

2001-04-14 Thread Brian Clark
Hi Les, @ 2:09:01 PM on 4/14/2001, Les Neste wrote: > I think the echo approach is pretty handy if you want a subroutine > to spit out a common chunk of HTML which is less than an entire > page. And the here-doc marker lets you just paste existing HTML in > place without having to escape all the

Re: [PHP] PHP without a webserver

2001-04-14 Thread Brian Clark
Hi Plutarck, @ 2:40:28 PM on 4/14/2001, Plutarck wrote: > Ahh, so it's the location of the script that get's passed. Yes: % cat test.php % php -q test.php a b c d e f g 0: test.php 1: a 2: b 3: c 4: d 5: e 6: f 7: g % > Now, if the script was coming from a program, is there a way to hand th

Re: [PHP] A tricky problem

2001-04-14 Thread Brian Clark
Hi David, @ 3:06:19 PM on 4/14/2001, David Tandberg-Johansen wrote: ... > The problem is: > If a user leaves the site because the user doesn't want to go thrue with the > order, or if the user closes the broser, then the recods of the selected > info are still in the temp TABLE. How can I delete

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Brian Clark
Hi Chris, @ 12:01:45 AM on 4/14/2001, Chris Anderson wrote: > Am I missing something here? This has been discussed many times. There was an extremely long thread last year about XML, but I can't find it in the archives. Here's a good start: http://marc.theaimsgroup.com/?l=php-general&m=979691

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Brian Clark
Hi Chris, @ 1:17:25 PM on 4/14/2001, Chris Anderson wrote: ... > I stll think it sounds like its more geared for the MS crowd No way. "XML is a set of rules, guidelines, conventions, whatever you want to call them, for designing text formats for such data, in a way that produces files that are

Re: [PHP] Sorry :(

2001-04-14 Thread Brian Clark
Hi Chris, @ 3:51:02 PM on 4/14/2001, Chris Anderson wrote: > I realized that'll that I don't do much to help this community. I > rarely reply to people's questions. Mainly because I have 56.6 and > when I get mail people answered already. I also ask alot of > questions. Just saying thanks for pu

Re: [PHP] 2 Different Mysql Server Connection Problem

2001-04-14 Thread Brian Clark
Hi Mesut, @ 6:19:04 PM on 4/14/2001, Mesut TUNGA wrote: ... > Warning: MySQL Connection Failed: Can't initialize character set 30 > (path: default) in /home/user/public_html/createtable.php on line 2 http://www.mysql.com/doc/C/a/Cannot_initialize_character_set.html -Brian -- PGP is spoken h

Re: [PHP] converting DATETIME to a readable date.

2001-04-14 Thread Brian Clark
Hi DRN, @ 8:34:08 PM on 4/14/2001, DRN wrote: ... > $date = $row["date"]; > $new_date = date("l, j M Y, G:i:s", strtotime($date)); > ~~ > but I cannot get this to work :(, I get an "unexpected error in > date()" ... Try this and see if it functions correctly: Your original code gives me th

Re: [PHP] Display Formatted Query Results

2001-04-14 Thread Brian Clark
Hi Jeff, @ 8:52:10 PM on 4/14/2001, Jeff Holzfaster wrote: ... > My apologies if this is too wordy. A little confusing, but here we go. If this makes no sense what so ever, maybe someone else can provide a better way of doing what you're describing here. ... > I have a form page that looks lik

Re: [PHP] search string

2001-04-15 Thread Brian Clark
Hi Joseph, @ 12:08:46 PM on 4/15/2001, Joseph Bannon wrote: > What is the function to search a string? Basically, I want search a string > (a url) to see if it has "www.yahoo.com" in it and if yes, tell the user > their submission cannot be accepted. -Brian -- PGP is spoken here: 0xE4D0C7C8

Re: [PHP] test

2001-04-15 Thread Brian Clark
Hi George, @ 7:19:12 PM on 4/15/2001, george wrote: ... > User-Agent: MT-NewsWatcher/3.1 (PPC) > Subject: [PHP] test > Just a test Use news://alt.test next time, please. -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- PHP General Mailing List (

Re: [PHP] limiting page for printing

2001-04-15 Thread Brian Clark
Hi Fabian, @ 11:47:22 PM on 4/14/2001, Fabian Fabela wrote: ... > I have a page with a lot of data, all of this data is formated in > that page to be printed, in a table with 500 px width, but how can I > messure the length of the page with my results, for example a query > can give me exactly t

Re: [PHP] Creating thumbnails

2001-04-15 Thread Brian Clark
Hi Lauri, @ 11:55:51 AM on 4/15/2001, Lauri Vain wrote: ... > I just finished reading a message from the server root and I have > been told that the server I have to work with by our current project > doesn't support GD and they can't install it neither. > We will, however, need to create thumb

Re: [PHP] store array in a file?

2001-04-15 Thread Brian Clark
Hi jaxon, @ 7:32:10 PM on 4/15/2001, jaxon wrote: ... > I want to keep site structural info pulled from a database in an > array, and store it in a flat file that can eliminate the database > hit. Then you'll be hitting the disk too (really, either way), but I doubt that's going to speed it up

Re: [PHP] Access/SQL Server?

2001-04-15 Thread Brian Clark
Hi Bob, @ 2:40:21 PM on 4/15/2001, Bob Clingan wrote: > What to I need to do/configure in order for PHP 4 to be able to > connect to Access and/or SQL Server databases? http://www.php.net/manual/en/install.configure.php#install.configure.databases -Brian -- PGP is spoken here: 0xE4D0C7C8 Ple

Re: [PHP] unregister part of array in session

2001-04-15 Thread Brian Clark
Hi Tobias, @ 7:01:41 PM on 4/15/2001, Tobias Talltorp wrote: ... > I tried this... Didn't work: > session_start(); > session_unregister("array[one]"); ?>> Why not save the values to a temp variable, destroy the session, unset the value you want to unset, then register it again? -Brian -- PGP

Re: [PHP] MySQL Data to a HTML-Form

2001-04-15 Thread Brian Clark
Hi Denis, @ 8:13:41 PM on 4/15/2001, Denis Mettler wrote: > I got Data from my Database, but how can I show them in a textfiled > within a html form? Any ideas? Show us some code? Assuming you've gotten the data into a $row->column, just echo it into the value of one of the form fields: -B

Re: [PHP] store array in a file?

2001-04-15 Thread Brian Clark
@ 8:12:51 PM on 4/15/2001, Brian Clark wrote: ... > http://www.php.net/manual/it/language.variables.scope.php Oops. replace 'it' with 'en' -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- PHP General Mailing List (

Re: [PHP] unregister part of array in session

2001-04-15 Thread Brian Clark
@ 8:18:31 PM on 4/15/2001, Brian Clark wrote: ... > Why not save the values to a temp variable, destroy the session, > unset the value you want to unset, then register it again? Well I take that back. Read the first two comments here: http://www.php.net/manual/en/function.session-uns

Re: [PHP] search string

2001-04-15 Thread Brian Clark
Hi Tobias, @ 7:20:00 PM on 4/15/2001, Tobias Talltorp wrote: > I think you want regular expressions... > Try this on for size: > $str = "http://www.yahoo.com/somedir/somepage.html"; > if (preg_match("/www.yahoo.com/i", $str)) { > print "Your submission cannot be accepted"; > } else { > print

Re: [PHP] a quick date and session id question

2001-04-15 Thread Brian Clark
Hi Sandeep, @ 10:33:16 PM on 4/15/2001, Sandeep Hundal wrote: ... > NOw they will probably be given a form which allows them to choose, > and then gets inputted into the datase as a number : MMDD. But I > want to display the data as "Monday, 20 April 2001. How can I do > this? Yes, with str

Re: [PHP] a quick date and session id question

2001-04-15 Thread Brian Clark
@ 10:56:48 PM on 4/15/2001, Brian Clark wrote: ... > function decipherDate($string, $format) > { Oops, you'll probably want to give $format a default value if one isn't passed. And maybe change the returns if you want to do something like: if(!decipherDate('blah')

Re: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Brian Clark
Hi Kath, @ 10:54:03 PM on 4/15/2001, Kath wrote: > Professional PHP Programming: ... > PHP Fast & Easy Web Development: ... > I started with these books and STILL refer to them today. A good one to add to your collection would be _PHP Developer's Cookbook_ ISBN: 0672319241 Though it's not so

Re: [PHP] cookies

2001-04-16 Thread Brian Clark
Hi Pat, @ 6:13:20 PM on 4/16/2001, Pat Hanna wrote: > I'm setting cookies for a shopping cart and they are setting fine > but they will not delete. I've tried every way of deleting them and > they just won't go away. Someone please help. http://www.php.net/manual/en/function.setcookie.php Read

Re: [PHP] PHP3 & PHP4 in apache?

2001-04-16 Thread Brian Clark
Hi Matthew, @ 6:24:49 PM on 4/16/2001, Matthew Mueller wrote: > Can anyone tell me if it is possible to statically build php3 and > php4 modules into an apache binary? I tried, but kept getting all > these errors from ld about multiply-defined functions such as: > ld: fatal: symbol `second_arg_

Re: [PHP] cookies

2001-04-16 Thread Brian Clark
Hi Pat, @ 6:21:59 PM on 4/16/2001, Pat Hanna wrote: > I've tried that but they still don't go away. Look for the cookie on your disk and remove it manually then. Look in (making assumptions again that you're using Windows and IE) c:\windows\cookies In Netscape it's a single file, I believe, ca

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-16 Thread Brian Clark
Hi Alexander, @ 6:55:58 PM on 4/16/2001, Alexander Skwar wrote: ... > In a mysql_connect() it is possible to specify a path to the socket > which should be used for communicating with MySQL. Yes, it's in the documentation. int mysql_connect ([string hostname [:port] [:/path/to/socket]

Re: [PHP] File open Question?

2001-04-16 Thread Brian Clark
Hi David, @ 7:21:15 PM on 4/16/2001, David Serrano wrote: > Can you open a simple text file and store each line of that file in it's own > part of an array? -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- PHP General Mailing List (http://www.ph

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-16 Thread Brian Clark
Hi Alexander, @ 7:29:45 PM on 4/16/2001, Alexander Skwar wrote: ... > Please read again what I wrote OK. > In a mysql_connect() it is possible to specify a path to the socket > which should be used for communicating with MySQL. Yes. [string hostname [:port] [:/path/to/socket] > Now, when

Re: [PHP] File open Question?

2001-04-16 Thread Brian Clark
Hi David, @ 7:35:06 PM on 4/16/2001, David Serrano wrote: > Ok, I think I get it, though I have one more question to access a specific > line of that array would it just be as simple as $array[2]? Yes. Otherwise these may be of some help: http://www.php.net/manual/en/function.fopen.php http://

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-16 Thread Brian Clark
Hi Joe, @ 8:04:08 PM on 4/16/2001, Joe Sheble (Wizaerd) wrote: ... >> > In a mysql_connect() it is possible to specify a path to the socket ^^ >> > which should be used for communicating with MySQL. >> >> Yes. [string hostname [:port] [:/path/to/socket] >

Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark
Hi Dddogbruce, @ 10:58:47 PM on 4/16/2001, Dddogbruce (@home.com) wrote: > Ok, I know it's messy - no, I don't care. :P > Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php > on line 43 ... > $space = " "; > if( $submitfrm ) > { > echo "your entry will be added shortly."

Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark
Hi Brian, @ 11:14:55 PM on 4/16/2001, Brian Clark wrote: >> fwrite( $fp, "fwrite( $fp, " ^^^ > Remove the quotation mark. Duh, Brian. You have an extra fwrite($fp) in there. -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy

Re: [PHP] Wrong parameter count

2001-04-16 Thread Brian Clark
Hi Peter, @ 11:40:06 PM on 4/16/2001, Peter Houchin wrote: > Hi, can some one please help me figure out why the value $device > isn't being passed on out of the select box? i keep getting this > message when i view the source (OK, lets try this again) > Wrong parameter count for mysql_result()

Re: [PHP] Newbie Help!! Please Look!

2001-04-18 Thread Brian Clark
Hi Tony, @ 11:24:30 PM on 4/18/2001, Tony Daniels wrote: > I used notepad and it shows some weird symbols like darkened in > squares. That is why I was wondering if there was a specific > program. Is there any way to get rid of the squares? Those are 'end of line characters' that your Operating

Re: [PHP] HTMLSpecialchars

2001-04-18 Thread Brian Clark
Hi Dddogbruce, @ 1:06:08 AM on 4/19/2001, Dddogbruce (@home.com) wrote: > I'm having a problem with HTMLspecialchars and nl2br interfearing with > each other. Obviously, I'm trying to stop malicous HTML/scripts from > being entered into my guestbook, but I'm also trying to add spacing. > nl2br

Re: [PHP] Regular Expressions?

2001-04-19 Thread Brian Clark
Hi Jason, @ 1:43:19 AM on 4/20/2001, Jason Caldwell wrote: ... > I want to match any of the following: > 1.1 or a.a > or . or .<-- any number of digits (0-9) or alpha (a-z) > on either side of the dot. > if(eregi("^([0-9][a-z]\.[0-9][a-z]", $myArray[x])) Your parentheses

  1   2   3   4   >