[PHP] javascript, forms and php

2005-12-01 Thread Kelly Meeks
Hi all, I'm hoping someone can help me with this problem. I'm using javascript for some client side field validation in a form (method=post) that gets managed via php. This particular form makes extensive use of checkboxes. I've always like how when named properly (field name of

[PHP] php/pear question

2005-04-28 Thread Kelly Meeks
I'm trying to get pear up and running, and I can't get it to work. I've tried it on a couple of different systems: fedora c2 and c3 with php 4.3.10 I can run pear from the shell, install new modules (pager, html_quickform,...) but when ever I try using any pear code in a php script with the

[PHP] authentication question

2004-11-02 Thread Kelly Meeks
with the htaccess file so if the user has already logged in via the session system, they don't have to then enter the same data again via http authentication? Kelly Meeks Right Angle, Inc. PO Box 356 Northampton, MA 01060 413-586-4694 ext. 11

[PHP] please help,newbie to sessions..

2003-04-05 Thread Kelly Meeks
Hi all, I've pulled my hair out on this, so I'm turning to the experts. I'm trying to make a directory of a site password protected: http://www.ivepulledmyhairout.com/protected I'm getting there from: http://www.ivepulledmyhairout.com I've got a login.php page that gets a username and

[PHP] php/mysql grouping output

2003-03-09 Thread Kelly Meeks
I've got a multi-table query, (pulling from both an orders and an orders_products (line items) file), and I'd like to group the output to help reduce multiple appearances of of the product skus. The query: select

[PHP] query question

2003-01-14 Thread Kelly Meeks
I've got an array of values, that I need to query against a database to see if any records have any of the values in the array - the array is a list of zip codes, and the database contains a list of stores. Basically i need to find what stores have zip codes in the array. I know that mysql

[PHP] php/dreamweaver mx/mysql server question...

2002-12-20 Thread Kelly Meeks
I'm trying to get dreamweaver mx working with php/mysql and a remote server. My remote server is named localhost. How can I change it's name? Is it as simple as change the host value for the user's login? I've tried several things to no avail. TIA, Kelly

[PHP] making php and perl talk to each other...

2002-11-19 Thread Kelly Meeks
Is there any way to get a php script to grap the output from a perl script? Can you reverse that and have a perl script grab the output from a php script? Kelly

[PHP] how to read text file one line at a time

2002-11-19 Thread Kelly Meeks
here's an example of a text file I need to read... abcd|test1|morevalues|otherstuff efghijklm|a;kd;laskf;alskdjf;alskdf;askldjasldkf|;askd;lakjl;asdf|al;sdjf;alf I believe each line is seperated by a carriage return. How can I read this in one line at a time in to a variable? I'm assuming

[PHP] syntax question...

2002-11-12 Thread Kelly Meeks
I saw this used in a script, but after a couple of searches didn't come up with anything on php.net. ? $var=content table tr td font color=red $phpvarhere /font /td /tr /table content; echo $var; ? So, does this allow you to output mixed html/php without having to escape offending characters

[PHP] OT - mysql question...

2002-11-01 Thread Kelly Meeks
Sorry for the OT post, quick mysql question... I've found a couple of cool utilites that will create basic forms from a mysql table (add/edit/delete/search), which look they could save some time coding. However, I can't connect with them because my server is setup as localhost. I How do you

[PHP] fun with register_globals

2002-09-04 Thread Kelly Meeks
Hi folks, I might be late to the game with these questions, but I've just been bit by the register_globals=off situation. I'm trying to figure out the scope of what I need to change to accomodate register_globals=off, and I need some help. Looking around php.net, for example: 'If

[PHP] executing php at shell level...

2002-08-21 Thread Kelly Meeks
Hi folks, Having a strange problem... I've got a php script named 'phptest' with the following code: #!/usr/bin/php -q ? var_dump($argv); ? I've set the permission on the file to 755, and am executing the file by typing: ./phptest var1 var2 var3 The only output I get is NULL. No matter what

[PHP] php/shell/permissions problems....

2002-08-19 Thread Kelly Meeks
Hopefully I can explain this properly I've got a php form, that gathers certain information, and then passes that info on to a couple of shell scripts to move files around, create links, import data into some mysql databases via sql files, etc. The two shell scripts work fine when I'm

[PHP] question about executing a bash shell script...

2002-08-16 Thread Kelly Meeks
Hi folks, I'm learning shell scripting via linux, and have written a script that creates the core files necessary for a users website from a master set of files. Works from the shell just fine (bash makethesite.sh username pathtoputfiles pathtogetfiles) Trying to execute this via php, and

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Kelly Meeks
param2 param3'); echo $bashresult; Doesn't execute the script, nothing in $bashresult Kelly - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Kelly Meeks [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 16, 2002 4:44 PM Subject: Re: [PHP] question about executing

[PHP] OT - javascript question..

2002-07-29 Thread Kelly Meeks
Sorry for the off topic post, but this is by far the most experienced list I've found. I've got a php page that show all the .gif and .jpeg files in an directory via a form based drop down menu. On the same page, I've also got a link that opens a new window, and allows the user to upload an

[PHP] php/shell question...

2002-07-18 Thread Kelly Meeks
I know that it's pretty easy for a shell script to call a php page to do something. What's the best way to have a php page call a shell script? I'm trying to automate the creation of directories with certain files in them (people creating their own temporary websites..), and figured a simple

[PHP] newbie regex question..

2002-07-10 Thread Kelly Meeks
Hi folks, I'm trying my hand at some pattern matching, and I have a question. I need to take all the text between the title tags of a page, and replace it. This I can do, with the following: $fixedfile=ereg_replace(title.*/title,title? echo \$bstitle; ?/title, $fixedfile); works like a

[PHP] help with eval problems...

2002-07-05 Thread Kelly Meeks
If I had this information stored in a database field, img src=? echo $content_output[site_logo]; ? how could I assign it to a variable and output it? I've gone thru the info on eval() php.net, but it's not getting thru my skull very well. I keep getting errors I can't correct. Can anyone

[PHP] grabbing content of a web page...

2002-06-27 Thread Kelly Meeks
Howdy, I know there has to be a way to grab output of an url on another site? Let's say you wanted to get the output of yahoo.com (just for example)? Is there any way you can stick that into a variable, and then manipulate it? Thanks, Kelly

[PHP] OT cron/perl/php..

2002-06-05 Thread Kelly Meeks
I've found a really handy php script (mysqlphpbak) that will backup all mysql databases for me via mysqldump. I'm using a cobalt raq server, and according to them, I can create a script and put it in a cron-daily directory, and that script will be executed. How do I create that script? Does

[PHP] OT - php/mysql/cron

2002-06-03 Thread Kelly Meeks
Any way to use cron to automate the mysqldumping of databases on a nighly basis? Any examples would be greatly appreciated. TIA, Kelly

[PHP] OT - 1u linux web servers...

2002-05-27 Thread Kelly Meeks
Hi folks, sorry for the off topic post. I'm a semi frustrated cobalt xtr user, and I'm thinking about another 1u rack mount server. Does anyone have any experience building them? Any good vendors for parts? Any how-to websites/books? Any other brands you'd recommend? The cobalts seem to

[PHP] brain cramp, ouch!

2002-05-17 Thread Kelly Meeks
Ok Let's say I'm querying a table, and looping thru the results: $connect=mysql_connect(host,user,pass); $thedb=mysql_select(database1); $thequery=select * from foo; $theresult=mysql_query($thequery) or die (mysql_error()) while ($output=mysql_fetch_assoc($theresult)){ do stuff here.. }

[PHP] php/.htaccess/.htpasswd

2002-05-01 Thread Kelly Meeks
Is is possible to use php to admin a password file used by a .htaccess file? I know that sometimes it is easier/more robust to manage password protection via sessions/database, but I've got a client that wants to use a .htaccess file. How do you deal with the encryption of the passwords, etc?

[PHP] OT - linux/htaccess question..

2002-04-24 Thread Kelly Meeks
Sorry for the off topic post. I know that you can setup a .htaccess file that will provide basic security access to a directory. Is it possible to create a .htaccess file that will provide username and password security for a specific file in a directory, without effecting the other files?

[PHP] mysql quickie..

2002-04-17 Thread Kelly Meeks
Hi folks, I need to get the next auto_increment value of a mysql table thru php. Looking at my mysql manual, it makes reference to a last_insert_id() function? How would I use this via php, or is there some other way to do it? Thanks Kelly -- PHP General Mailing List (http://www.php.net/)

[PHP] site map function..

2002-04-08 Thread Kelly Meeks
I'm trying to write some code that will look at a table of records, and output a 'tree' of those records, based on a parent/child relationship betweent their respective record id numbers. Anyone written anything like this they would be willing to share? I'm up against a deadline, and I'm

[PHP] store locator/zip code question...

2002-03-22 Thread Kelly Meeks
Hi folks, I've got a client that wants to show users dealers of their products based on mileage from their location. I've seen this done, and I assume it's based on either a database relating the zip info to miles, or to some kind of hash on the zipcode itself. Anyone have any experience

[PHP] ecommerce solutions..

2002-03-21 Thread Kelly Meeks
Howdy folks, Anyone have recommendations for ecommerce packages for linux (pref. linux/mysql/php opensource..)? Thanks Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] search engine friendly urls

2002-03-21 Thread Kelly Meeks
Does anyone have any ideas/info (or can you point me to) regarding how to make dynamic php content more search engine friendly (losing the '?' when dealing with url variables)? As a Cold Fusion convert, you could do something like this: http://www.blabla.com/dynamicpage.cfm/205 were 205

[PHP] easy quickie..

2002-01-02 Thread Kelly Meeks
Happy New Year, Does php set a variable that tells you the url of the page that a user has just come from? So if I wanted to create my own 'Back' button in a pop up window, for instance? Thanks in advance, Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] form layout tool

2001-12-19 Thread Kelly Meeks
On going Cold Fusion convert question... I use CF Studio as my primary editor. When working with cold fusion itself, it will let you specify an database and table, and it will then create a series of html forms that allow you to add/edit/delete information in that table. Very, very handy.

[PHP] CF convert question..

2001-11-08 Thread Kelly Meeks
Hi there, In the middle of porting over a large cold fusion project to php. CF has a tag called cflocation which lets you jump to another page/location. Does php have an equivalent? I've been able to get the combo of an include/exit to work in a similar fashion, it just seems a bit heavy

[PHP] OT question..

2001-05-08 Thread Kelly Meeks
Hey folks, What language is associated with a web page with a .epl extension? Thanks Kelly -- 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: [EMAIL