[PHP] storing arrays

2002-02-16 Thread Clark
Two questions: 1) Is it possible to write an array to a file? 2) Is it possible to specify the name of the key to each item of an array when you get the array using file(). Thanks a lot. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] storing arrays

2002-02-17 Thread Clark
7c0$404d5be0$059aa8c0@Pooch">news:001e01c1b7c0$404d5be0$059aa8c0@Pooch... > > ----- Original Message - > From: "Clark" <[EMAIL PROTECTED]> > Sent: Saturday, February 16, 2002 9:15 PM > > > > Two questions: > > > > 1) Is it possible

RE: [PHP] Can PHP do this...?

2002-12-11 Thread Ronald Clark
e**"; } Would this work? I am about to add a secind site to my site using an alias in Apache. Example is http://www.mysite.com for first site and http://www.mysite.com/2ndsite. Except I want everything for the second site to be https. Make sense? Thanks again, Ron Clark -Or

RE: [PHP] "include" question

2002-12-12 Thread Ronald Clark
Thanks! Works perfect with double quotes! RC -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 8:21 AM To: Ronald Clark Cc: [EMAIL PROTECTED] Subject: Re: [PHP] "include" question Hi, Friday, December 13, 2002, 12:07:05 AM,

[PHP] newbie - decimal places in arthimetic functions

2002-12-13 Thread Max Clark
Hi- How can I control the decimal places returned by an arthimetic function? I would like this divsion function to only return two decimal places (rounded up). $calcsize = $value / $oneGig; Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Testing smtp server

2002-12-13 Thread Max Clark
Hi- I would like to open a connection to tcp port 25 (smtp) as a conditional in a script (if succeeds to this, else to that). I found the socket_create function that is listed as experimental and requires a re-compile of php. Is there a built in way to perform this kind of test? Thanks in advanc

[PHP] Socket_connect() timeout

2002-12-15 Thread Max Clark
n message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 13 December 2002 21:30, Max Clark wrote: > I found the socket_create function that is listed as experimental and > requires a re-compile of php. Is there a built in way to perform this kind > of test? Base

[PHP] regex for fqdn test

2002-12-16 Thread Max Clark
Hi- I was wondering if someone could help me with a regex to test for a valid domain name (foo.com). Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Socket_connect() timeout

2002-12-16 Thread Max Clark
Hi- Warning: socket_connect() unable to connect [60]: Operation timed out in /usr/home/maxc/public_html/admin/functions.inc on line 66 Is there any way to time out this function? I only want to wait 5 seconds. Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] pcre pattern match help

2002-12-17 Thread Max Clark
Hi- I would like to do a pattern match against a string, sometimes this pattern will include the full string, and sometimes it will not, if the pattern does not include the second match I still want to get the first pattern match. Below is my code, and the results I am looking for. Thanks in adv

[PHP] Verisign Credit Card Processing with PHP

2002-12-17 Thread Max Clark
Hi- I was wondering anyone out there is using the verisign payflo product with php and could share their experiances with me. Are there good alternate choices that I should be looking at? Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] case statement?

2002-12-19 Thread Max Clark
Hi- I was wondering if php had a case function? Instead of building a large if/elseif/else block I would like to do a case $page in (list). Thanks in advance, Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] New mailing list

2003-03-10 Thread Ron Clark
get programmers thinking about security. -- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Why Can't I get this to work

2003-06-25 Thread Ron Clark
Hello all, I have a php script that reads a flat text file with fields seperated by a space. I explode them into an array just fine, but when I try then to load that array into a mysql database, it doesn't work. Here is my script: for ($i=0; $i<$number_of_alerts; $i++) { // Split each lin

[PHP] Re: Why Can't I get this to work

2003-06-28 Thread Ron Clark
;,'$line[7]', '$line[8]', '$line[9]', '$line[10]', '$line[11]', '$line[12]')"; $results = mysql_query($IPFWsql) or die ("Could not execute query"); } Again, any help with this issue is appreciated. Thanks, Ron Clark

[PHP] Inserting a variable into a mysql_query() statement

2002-10-14 Thread Phil Clark
I'm trying to insert the variable $hidden_manuf_id into a mysql_query() statement. If i do this: mysql_query("DELETE FROM product WHERE manufacturer=$hidden_manuf_id",$bb) or die(mysql_error()); PHP server doesn't see the variable because it is inside the string quotes"". If I do this: mysql_que

[PHP] passing variable question

2002-11-11 Thread Ron Clark
Hello all, I have a php script that reads all the files in a directory (pictures), the outputs each picture as a link to be displayed in the main frame of the html page. All of that works fine. I want to be able to "pretty up" the picture out put by placing the picture into a html table so it is c

RE: [PHP] XML to PHP help

2003-08-31 Thread Ronnie Clark
ECTED] Sent: Sunday, August 31, 2003 11:20 AM To: Ron Clark; [EMAIL PROTECTED] Subject: Re: [PHP] XML to PHP help hi Ron, There's no way you can retrieve the php on a remote server (unless of course they have a major security flow :-) ) Ron Clark wrote: >Hello all, > >Does anyon

[PHP] XML to PHP help

2003-08-31 Thread Ron Clark
of a working script and compare it to my own. Thanks, Ron Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Handling checkboxes that aren't checked!!!

2003-11-04 Thread Daniel Clark
>> I have a page with a Form and a Checkbox. >> >> I have a second page which wants to do something depending on if the >> checkbox is selected or not. >> If its selected there is no problem. But if I tryand do anything if >> it isn't selected then it says the variable is 'undefined'. How can I >

Re: [PHP] text input truncated

2003-11-04 Thread Daniel Clark
> $xyz = "Hello World"; > > echo ""; > > ?> > > The text box shows up with "Hello" NOT "Hello World". How do I get the > entire variable? I would try single quotes here. $xyz = 'Hello World'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

  1   2   3   4   5   6   >