[php-list] Session information goes away upon a file upload

2007-11-07 Thread Marian Briones
Hi I am writing a pretty complex admin set of tools for some managers and their staff. So there are certain admin rights that I have registered into the session variables that get 'carried around' the admin area. There is an area where mangaement can upload new documents and notices for their sta

[php-list] Re: Writing to a .htpasswd file

2007-04-05 Thread Marian Briones
u know what to put in the .htaccess file. > Regards, Bob Exton. > > > - Original Message - > From: "Marian Briones" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, April 04, 2007 9:35 PM > Subject: [php-list] Writing to a .htpasswd file > > > >

[php-list] Writing to a .htpasswd file

2007-04-04 Thread Marian Briones
Hi everyoen I am writing an access system and it needs to be able to encrypt the username and password to a certain directory's .htpasswd file. I'm not sure how to do it. I found a link with this code: // The following class encrypts a password, and writes it to a .htpasswd // file for use with

[php-list] Displaying color choices from a db - it's becoming cumulative and I don't want t

2007-01-25 Thread Marian Briones
I'm trying to show a catalog and there are colors available for each product. The query queries the color choice out of a table by the item's ID which is also in that table. It then prints a line to show that. The problem is, the next item, those variables aren't being cleared out so I see the l

[php-list] Re: Preventing more than one 'sweepstakes entry'

2006-11-06 Thread Marian Briones
Gordon Stewart <[EMAIL PROTECTED]> > To: php-list@yahoogroups.com > Sent: Friday, November 3, 2006 3:11:15 PM > Subject: Re: [php-list] Preventing more than one 'sweepstakes entry' > > > > > > > > > > > > > >

[php-list] Preventing more than one 'sweepstakes entry'

2006-11-03 Thread Marian Briones
And today's task is... I"m doing a site that allows everyone one free sweepstakes entry. How can I control that? I thought of using the env variable that has the IP address but if there are multiple users behind a firewall, that would prevent more than one person behind that firewall from enteri

[php-list] Re: Finding out when a domain name was registered (a little OT)

2006-11-02 Thread Marian Briones
Man I really needed my caffeine...duh whois DUH! I guess my anniversary is December 13th Thanks, Nick --- In php-list@yahoogroups.com, "Nick" <[EMAIL PROTECTED]> wrote: > > --- In php-list@yahoogroups.com, "Marian Briones" wrote: > > > > Hi gang

[php-list] Finding out when a domain name was registered (a little OT)

2006-11-02 Thread Marian Briones
Hi gang I was on archive.org and found that the first time my personal site was archived was in June, 1997. I'm trying to find out when I first registered my domain and can't find any facility that has that info. Any ideas? Thanks. Community email addresses: Post message: php-list@yahoogro

[php-list] Re: Making custom templates (themes) in WordPress

2006-10-23 Thread Marian Briones
I'm looking at one of the stylesheets now...I guess that'll work. Pretty simple... Thanks, Pete! --- In php-list@yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote: > > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL PROTECTED]> writes > >Well

[php-list] Re: Making custom templates (themes) in WordPress

2006-10-22 Thread Marian Briones
Well I'd love to see the back end code on how it integrates Word Press into it. I have to build such a thing for one of my clients. Thanks --- In php-list@yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote: > > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL

[php-list] Making custom templates (themes) in WordPress

2006-10-22 Thread Marian Briones
And my other fun thing I'm doing today is trying to figure out how to make my WordPress blog look like the rest of my website by dressing it in my website's graphic set. Has anyone done this? I found mountains of documentation in Wordpress's support sites but no simple explanation to get started.

[php-list] Calendar of events - marking fixed annual events, assuming year....

2006-10-22 Thread Marian Briones
I have an interesting one here... I have a website with 'seasonal' headers on it (like we've all seen google have fun with). I have a database that lists them with a start date and an end date for each of them. So, for example, I am running my halloween header from now until Halloween with it

[php-list] Best way to just have so many per page...

2006-10-18 Thread Marian Briones
Hi I have a database table with like 2000 items in it. What I want to do is have like 25 per page showing with next previous etc. I'm not sure how to write that up. Can someone point me in a creative, effective direction? Thanks! Community email addresses: Post message: php-list@yahoogrou

[php-list] Readdir and then sorting by filename

2006-10-04 Thread Marian Briones
Hi I wrote a nifty 'photo album generating' script I wrote that reads the directory for image files, then presents them in a thumb gallery. How could I get it to sort that list of files (instead of in stored order) by file name? Marian Community email addresses: Post message: php-list@yah

[php-list] AOL Blocking my form submissions Part Deaux

2006-09-19 Thread Marian Briones
Well i called the AOL postmaster and no, my server isn't being blocked. They had no explanation and neiher do I. Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcu

[php-list] AOL is blocking form submissinos

2006-09-19 Thread Marian Briones
Hi gang I have a site that is a membership site and it sends a confirmation email to the person wanting to create an account. AOL is blocking them. I have a valid email address and not a spammy subject line. I have had the same problems with other AOL users and form submissions. Help! If I use

[php-list] Membership section handling with sessions but...

2006-06-27 Thread Marian Briones
Hi everyone I've been handed my Harley Owner Group's website to take care of. One of the things that Harley has stressed to us is that we can't have any photos of members in any public facing pages. The other webmaster has been controlling the members only directory with the tried and true (and g

[php-list] Re: Replacing tabs with |'s

2006-05-16 Thread Marian Briones
Thanks guys. I got it workin' and realized why change a tab delimited file to something else - an extra step.  So I had it split on the tab instead. Works like a charm. I learned a lot today.  :-) Marian --- In php-list@yahoogroups.com, "Patrick Bierans" <[EMAIL PROTECTED]> wrote: > > >

[php-list] Replacing tabs with |'s

2006-05-16 Thread Marian Briones
Headache number 2 is here. I figure the customer isn't going to be too great at replacing tab characters with | characters for their flat file upload/export.  I've been trying to find something that will convert tabs in my file to | character. I have tried str_replace, eregi_replace preg_rep

[php-list] Re: Importing a flat pipe delimited file into a MySQL data table

2006-05-16 Thread Marian Briones
Split wouldn't do it but explode did. --- In php-list@yahoogroups.com, "Marian Briones" <[EMAIL PROTECTED]> wrote: > > Hi James > > The code **looks** like it should work, I modified it as I need to so > it would address my db but it is giving me a

[php-list] Re: Importing a flat pipe delimited file into a MySQL data table

2006-05-16 Thread Marian Briones
r die("Shoot:  $q" . mysql_error());         header ("Location:http://return page/admintools/managemailinglist.php?listname=$name");   } I'm not sure why it is not getting the data.  --- In php-list@yahoogroups.com, James Keeline <[EMAIL PROTECTED]> w

[php-list] Importing a flat pipe delimited file into a MySQL data table

2006-05-16 Thread Marian Briones
Hi I have done this in perl but eeew I don't want to use perl anymore.  I want to be able to take a flat file that looks like this: [EMAIL PROTECTED]|Marian|Briones [EMAIL PROTECTED]|Bob|Smith [EMAIL PROTECTED]|Jane|Doe (etc) The table has more than 3 fields, so I'd want to proces

[php-list] sprintf won't cut it for what I'm doing....back to the dwg b oard...

2006-02-20 Thread Marian Briones
Well, I tried to use sprintf to insert the variables from a form into a string and print that out to a file, but since there is no way to match up the variables in the string with the variables from the form **reliably**, it doesn't cut it. I removed all of the % signs from the template and it ma

[php-list] Re: Running a script and porting the output to a file

2006-02-20 Thread Marian Briones
irst variable that is coming in. I just don't get it. But it's sort of hit and miss since I can't be more firm in the text string with %s rather than match the named variable placeholder since I can't name the placeholders in the string. (More hair is being yanked on)... It's rea

[php-list] Re: Running a script and porting the output to a file

2006-02-20 Thread Marian Briones
OH yes, I've been doing the $ name but it won't write the value to the file. I'm trying it with printf now with the variaable as $svarnamestill nothing... --- In php-list@yahoogroups.com, Michael Sullivan <[EMAIL PROTECTED]> wrote: > > On Mon, 2006-02-20 at 00:25

[php-list] Re: Running a script and porting the output to a file

2006-02-19 Thread Marian Briones
he file with the variable names in there instead of the variable values. Not sure how to make it write the variable values into the form. Does that make more sense? --- In php-list@yahoogroups.com, Michael Sullivan <[EMAIL PROTECTED]> wrote: > > On Sun, 2006-02-19 at 22:32 +, Maria

[php-list] Running a script and porting the output to a file

2006-02-19 Thread Marian Briones
I finally put my finger on what I am trying to doI'm trying to combine a form with some preformatted text and have the form fill in the variables in the preformatted text and output that to a file. So how do I do that? It is easy to do to the screen, I can fill out a form and then have it ret

[php-list] Writing to a file and not having to do an fputs for each line

2006-02-19 Thread Marian Briones
Hi gang I'm trying to output HTML files with php. I have read that in order to do this, I have to preface each line with something likes; fputs($filepointer, "the line that I want"); This is painful. I want it to just spit out text that is already in paragraphs and junk with all of the HTML Cod

[php-list] Re: Clearing out the $_FILES variable

2006-01-29 Thread Marian Briones
else this is another type of file > else { > $error = "true"; > $errorNo = 1; > } > } > > else { > $uploadFileName = ""; > } > > if($error == "true&qu

[php-list] THE S COUNTSRe: Clearing out the $_FILES variable

2006-01-29 Thread Marian Briones
I had $_FILE[yadda] instead of $_FILES[yadda] Banging head on desk --- In php-list@yahoogroups.com, "Marian Briones" <[EMAIL PROTECTED]> wrote: > > Well, I latched onto the size value of the upload and figured okay, if > the value is greater than 0, then process

[php-list] Re: Clearing out the $_FILES variable

2006-01-29 Thread Marian Briones
But guess what? IT STILL DOESN'T WORK! It won't even process the image now even though the size is greater than 0! I am stumped PS James, thank you for your great info here. This particular area is only available to site administrators with passwords. --- In php-list@yahoogroups.

[php-list] Re: Clearing out the $_FILES variable

2006-01-29 Thread Marian Briones
--- In php-list@yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote: > > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL PROTECTED]> writes > >I'm having trouble with my $_FILES variable. What my program does is > >allow a person to have an image f

[php-list] Re: Clearing out the $_FILES variable The Code

2006-01-28 Thread Marian Briones
thought by saying if ($_FILES['pageimage']) { yadda } that it will only run the image processing code if that incoming file is there. This is making me nuttier than I already am. --- In php-list@yahoogroups.com, Brian Cummiskey <[EMAIL PROTECTED]> wrote: > > Marian Briones wr

Re: [php-list] Clearing out the $_FILES variable

2006-01-27 Thread Marian Briones
I actually did post the block yesterday. I guess I'm lucky in the response I get here! :-P On Jan 27, 2006, at 2:13 PM, Brian Cummiskey wrote: > Marian Briones wrote: >> I posted yesterday and no one answered; I"m wondering if this list is >> having tech difficul

[php-list] Clearing out the $_FILES variable

2006-01-27 Thread Marian Briones
I posted yesterday and no one answered; I"m wondering if this list is having tech difficulties I'm having trouble with my $_FILES variable. What my program does is allow a person to have an image file on their web page. So if there is an upload, it processes it (resizes it if need be). If t

[php-list] Re: Predeclaring Variables - what kind of a variable is an uploaded file?

2006-01-26 Thread Marian Briones
Okay, now that works, with the {[type], temp name, etc. BUt now I am having a different problem. My content management system allows the user to edit their page and it shows a thumb of their existing image. They can choose to upload a new image, or leave it alone (the old image file name is stor

[php-list] Predeclaring Variables - what kind of a variable is an uploaded file?

2006-01-26 Thread Marian Briones
As I strive to secure my scripts to please my ISP and ensure I am doing my part to keep my srever secure, I have rewritten my content management system to predeclare stuff coming in from a form. But, it's not handling the uploads, and I suspect an uploaded file doesn't get referenced inthe $_GET o

[php-list] Echoing $_POST and $_GET hashes to the screen

2006-01-25 Thread Marian Briones
I am testing a form with lots and lots of fields and gearing all of my scripts to predeclaring variables so I can have globals turned off (per my ISP's request) and is there an easy way I can just have the hashes print to the screen so I can print it out and avoid potential typos when I am predecla

[php-list] Determining when Daylight savings time starts and ends

2006-01-23 Thread Marian Briones
Hi gang Thanks for all of the responses to how to prevent spam drones from exploiting my email forms! I'll be plugging that in so my server does not get attached again. I found all sorts of holes I had created on my server. Not good. (sigh). Anyway, I have this one site that has a countdown to

[php-list] The big picture: import a textarea into db tables

2006-01-09 Thread Marian Briones
My old system used a perl script to read a | delimited file and pour the content into a database. Now, I made a system that uploads the file and pours it in. I am trying to now modify it further to make it NOT upload a file, but take the file contents from a text area and each line is one record

[php-list] Re: Trouble with preg_replace

2006-01-09 Thread Marian Briones
; $export = str_replace( ',', '', $export); $export = preg_replace( '/\t/', '|', $export); --- In php-list@yahoogroups.com, "Bob" <[EMAIL PROTECTED]> wrote: > > Hi Marian, > > Marian Briones wrote: > > But

[php-list] Trouble with preg_replace

2006-01-09 Thread Marian Briones
Hi all I'm trying to fix a line that looks like this: 123 MAIN STREET ANYTOWN "$729,950 " DE 15823 2 To look like this: 123 MAIN STREET|ANYTOWN|$729950|DE|1582|3|2 I have no trouble getting it to convert the tabs to | with $export = preg_replace( '/\

[php-list] Re: Doing a Split the way I used to do it in perl - overwhelmed with options

2006-01-04 Thread Marian Briones
link on the "data updated" query to take me to the page that displays the data. Cool beans! --- In php-list@yahoogroups.com, James Keeline <[EMAIL PROTECTED]> wrote: > > --- Marian Briones <[EMAIL PROTECTED]> wrote: > > > Hi gang > > I'm trying t

[php-list] Doing a Split the way I used to do it in perl - overwhelmed with options

2006-01-03 Thread Marian Briones
Hi gang I'm trying to export data from a pipe delimited file (|) with php, trying to get away from perl entirely. My old perl script opens the file and sticks it in an array, then handles each line as a record in the database table by splitting the line like this: ($MLSNo, $Status, $DOM, $Addres

[php-list] Re: Digest Number 1909

2006-01-02 Thread Marian Briones
oh that'll workI already have a system like that in place for my email subscription manager! I'll have to do that. Thanks. --- In php-list@yahoogroups.com, "Marc Boncz" <[EMAIL PROTECTED]> wrote: > > Hi Marian, > > >How do I prevent spam bots from exploiting php scripts that send mail? > >

[php-list] Preventing spam drones from abusing our mail scripts

2006-01-02 Thread Marian Briones
Hi gang How do I prevent spam bots from exploiting php scripts that send mail? Need to know... (SIGH) Happy New year by the way. Marian Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [E

[php-list] Script that attaches a file to an email - how to do this securely

2005-12-19 Thread Marian Briones
Hi all - happy holi-daze I have a customer who runs a promotional item company and they would like their customers to be able to submit their artwork online via an email form. This, of course, involves the file being copied up to the server which terrifies me - I've been hacked when I had an in

[php-list] How to replace double quotes with single quotes

2005-11-24 Thread Marian Briones
I am writing a page that outputs a bunch of JavaScript lines, and the stuff coming out of the database contains double quotes, which must be single quotes in order for my Javascript to work. (It's a scrolling news box). I tried str_replace and preg_replace and had bad results. How do I do this?

[php-list] Re: Substitution in strings from form fields

2005-11-18 Thread Marian Briones
the nl2br function worked great (love how it's named...New Line 2 BR (new line to br) Now how can I, when the person goes to edit what they put in that form field, get it to take the BR's back out (the HTML tags)? Strreplace? --- In php-list@yahoogroups.com, Brian Cummiskey <[EMAIL PROTECTED]> wr

[php-list] Re: CMS help

2005-11-18 Thread Marian Briones
Of course, a function. PHP rocks with its functions! Thanks !--- In php-list@yahoogroups.com, valentin <[EMAIL PROTECTED]> wrote: > > Hello there. Could anybody help me with a CMS script or tutorial? i need to offer somebody (the company that asked my for a website) the right/capability to

[php-list] Substitution in strings from form fields

2005-11-18 Thread Marian Briones
Hi gang I have done this very successfully in perl, but need to do this in php now. The user submits a form. The textarea field contains paragraphs of information. So, I need to substitute the \n (line breaks) with HTML . How do I do this in php? I have tried without success in the past. Than

[php-list] Re: CMS help

2005-11-18 Thread Marian Briones
There are a lot of free, open source solutions; two come to mind: drupal and Exponent. Problem is, they are tough to learn to use if you want to make a custom website. They refer to the look and feel as themes and sure you can create your own but the how to is a b---ch to learn. Good luck! -

[php-list] Need a thorough explanation of a MySQL LEft Join

2005-09-28 Thread Marian Briones
Hi gang I have been scouring the internet trying to find a good, solid, visual explanation of a left join. I "kind of" get it but I get confused. If I could see a visual - I get confused by the on clause. I have a database of articles. 1 table is the article itself. Another is article categori

[php-list] Angels are singing, the world is happier....

2005-08-25 Thread Marian Briones
James - THANK YOU! IT WORKED FINALLY! This place is filled with confetti, balloons and choirs of angels! THANK YO!1 Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12hgj04vo/M=362335.6886445.783973

[php-list] Re: SALT

2005-08-25 Thread Marian Briones
groups.com, James Keeline <[EMAIL PROTECTED]> wrote: > --- Marian Briones <[EMAIL PROTECTED]> wrote: > > > Well I couldn't get this to work. I do not know what to do. I can't > > find anything on it except what **should** work and it does not. > > &g

[php-list] SALT

2005-08-25 Thread Marian Briones
Well I couldn't get this to work. I do not know what to do. I can't find anything on it except what **should** work and it does not. I tried m5, I tried crypt, and neither made a workable password that allowed me to then try to login as that user. I can run htpasswd from the command line and cr

[php-list] Still in trouble: Re: SALT encryption via php to the .htaccess file

2005-08-25 Thread Marian Briones
I tried using crypt to write to the htpasswd file and it still isn't doing it right; username bill and password bill came out like this: bill:$1$UQTtAy2y$9IQPNd5iYtaks4faHMSfE1 (throwing hands hopelessly into the air) --- In php-list@yahoogroups.com, James Keeline <[EMAIL PROTECTED]> wrote: > --

[php-list] Re: Virtual Directories?

2005-08-25 Thread Marian Briones
I just did something very similar in a project I"m working on; I used ReWrite Rules in my .htaccess file to accomplish it. There is a ton of info about it, if you want more, shoot me an email. Hope this helps. Marian --- In php-list@yahoogroups.com, "Nate" <[EMAIL PROTECTED]> wrote: > Hey all

[php-list] Re: SALT encryption via php to the .htaccess file

2005-08-23 Thread Marian Briones
> > For password protection you will have some statements in the .htaccess file > which set the name of the realm, type of authentication (usually "basic"), and > the location of the file in the filesystem with the usernames and encrypted > passwords. Right, I have that. It is outside of the pu

[php-list] SALT encryption via php to the .htaccess file

2005-08-23 Thread Marian Briones
Hi gang I have done this in perl before, but I am writing a username and password not only to a member database, but also to the .htacceess file that will contain the usrename and passwords (Apache stuff). Can someone point me in the right direction to write te right code to make that? crypt() I

Re: [php-list] Re: Uploading a file and stripping things from the file name

2005-08-22 Thread Marian Briones
Oh I misread the face. $condition="gruntled"; On Aug 21, 2005, at 3:14 PM, Pete wrote: > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL PROTECTED]> writes >> I'm not hassling; I'm just trying to find some answers and it's gotten >&

[php-list] Re: Uploading a file and stripping things from the file name

2005-08-21 Thread Marian Briones
rote: > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL PROTECTED]> writes > >So now I can finish some projects which have been a huge 16 ton weight > >on my head! > > And stop hassling us (;-> > > -- > Pete

[php-list] Re: Uploading a file and stripping things from the file name

2005-08-20 Thread Marian Briones
yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL PROTECTED]> writes > >Because I've tried to do that and it doesn't work. My script bombs. > >I posted lines of the code and it just bombs. >

[php-list] Re: Uploading a file and stripping things from the file name

2005-08-19 Thread Marian Briones
Mike Franks" <[EMAIL PROTECTED]> wrote: > > Not sure which "stuff" in this thread remains an issue? > > If you don't want embedded spaces in file names, why not convert them to > underscores before you allow the file to be uploaded? > > Mike > > &g

[php-list] Re: Uploading a file and stripping things from the file name

2005-08-19 Thread Marian Briones
I could be in a time warp.. But no I don't have a working answer yet in this dilemma MJB --- In php-list@yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL PROTECTED]> writes > >Same stuff diffe

[php-list] Re: Uploading a file and stripping things from the file name

2005-08-19 Thread Marian Briones
Same stuff different day. Can anyone help me? --- In php-list@yahoogroups.com, "Marian Briones" <[EMAIL PROTECTED]> wrote: > I'm still stuck here, and my clients are repeatedly breaking my system > by uploading files with spaces even though I keep telling them

[php-list] Re: Digest Number 1783

2005-08-18 Thread Marian Briones
That's exactly what I want to do but I can't get the code to do it. I'd much rather have an ID assigned to the file name and handle it like that. I just can't get it to work. This project is going on 5 months over due now. Ugh. --- In php-list@yahoogroups.com, "Marc Boncz" <[EMAIL PROTECTED]>

[php-list] Re: Uploading a file and stripping things from the file name

2005-08-16 Thread Marian Briones
I'm still stuck here, and my clients are repeatedly breaking my system by uploading files with spaces even though I keep telling them DON'T DO THAT. Help? (she cried meekly) --- In php-list@yahoogroups.com, "Marian Briones" <[EMAIL PROTECTED]> wrote: > Ok

[php-list] Re: Uploading a file and stripping things from the file name

2005-08-12 Thread Marian Briones
Okay this is the whole sha-bang (#!?) What happens, as you'll see, is that I do some manipulation to the photo with ImageMagick down the road, and then eventually add the info (the person is updating or creating a profile) to a db table, and obviously, I need the varname that I created when I str

[php-list] Re: Uploading a file and stripping things from the file name

2005-08-12 Thread Marian Briones
y one that it goes up with. ? --- In php-list@yahoogroups.com, Brian Cummiskey <[EMAIL PROTECTED]> wrote: > > From: "Marian Briones" <[EMAIL PROTECTED]> > > I need to strip illegal characters out of an uploaded photo now. I am > > trying this

[php-list] Uploading a file and stripping things from the file name

2005-08-11 Thread Marian Briones
Me again with a variation on the earlier problem. I need to strip illegal characters out of an uploaded photo now. I am trying this without results: $photofile=ereg_replace("[^[:alnum:]+$]", "", $_POST['photo']); copy($photo, "/home/user/public_html/memberfiles/$photofile_name")

[php-list] Re: Getting rid of unwanted characters in a string

2005-08-11 Thread Marian Briones
Thanks, it seems to be working now, and writing the RewriteRule for me as well. Yay!!! --- In php-list@yahoogroups.com, Brian Cummiskey <[EMAIL PROTECTED]> wrote: > Marian Briones wrote: > > > How can I make sure it strips spaces? > > > >>

[php-list] Re: Getting rid of unwanted characters in a string

2005-08-11 Thread Marian Briones
e!"; > } > elseif (strlen($dirname) >=8) { > echo "Directory '$dirname' created"; > } > } > ?> > > > - Original Message - > From: "Marian Briones" <[EMAIL PROTECTED]> > To: > Sent: Monday, August 08,

Re: [php-list] Re: Getting rid of unwanted characters in a string

2005-08-08 Thread Marian Briones
or if it sees that there is illegal stuff in the form submission. I dont' know why it isn't working, but I am so frustrated I'm ready to chuck the file folder out the window and let the dusty cat eat it... On Aug 8, 2005, at 10:33 AM, Mike Franks wrote: > > On 8/8/2005

[php-list] Re: Getting rid of unwanted characters in a string

2005-08-08 Thread Marian Briones
wrote: > Hi Marian, > Is this what you're looking for? > > $raw = "$$$ %mysite% #!$@ 123 #!$@ $$$"; > $raw = preg_replace('/\W/', '', $raw); > echo $raw; > ?> > > > - Original Message - > From: "Marian Brio

[php-list] Getting rid of unwanted characters in a string

2005-08-07 Thread Marian Briones
I have a function where users can upload their photos to a photo area. I can't seem to find a good way to strip unwanted characters out of the filename. I also need this to work when they are choosing a username for their webspace. It is coming in off a form submission. I don't want any spaces,

[php-list] Re: Figured out the symlink, but problems

2005-08-07 Thread Marian Briones
ere onto others. Marian --- In php-list@yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL PROTECTED]> writes > >--- In php-list@yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote: > >> In message <[EM

[php-list] Getting by with a little help from my friends - THANK YOU

2005-08-06 Thread Marian Briones
HI gang Okay I finally got my membership site to perform the way I need it to perform! Learning about ReWrite Rules was my key. So James and everyone, thank you! I can finally move forward. My next ?? is how to disallow illegal characters - spaces, $ # ! , . in these names. Thanks! (throwing

[php-list] Re: Figured out the symlink, but problems

2005-08-05 Thread Marian Briones
--- In php-list@yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL PROTECTED]> writes > >The way people would come upon this page is by typing something like: > > > >www.somedomain.com/cat > &

[php-list] Re: how to ascertain no of links on web site

2005-08-05 Thread Marian Briones
I would think you'd do something like read a directory then count each file name and spit it out in a count variable. Maybe this is elementary, but I'm thinking something like $count=0; $direcotryObject = dir("/home/someuser/public_html/files"); print "Files:\n"; while ($fileName = $dorectpruPb

[php-list] Re: Figured out the symlink, but problems

2005-08-05 Thread Marian Briones
but as usual, I am wrong. --- In php-list@yahoogroups.com, James Keeline <[EMAIL PROTECTED]> wrote: > > > --- Marian Briones <[EMAIL PROTECTED]> wrote: > > > That didn't work either. > > > > I don't know what to do. > > > > If I ca

[php-list] Re: Figured out the symlink, but problems

2005-08-05 Thread Marian Briones
oups.com, James Keeline <[EMAIL PROTECTED]> wrote: > > > --- Marian Briones <[EMAIL PROTECTED]> wrote: > > > I figured out the symlink, but when I go to that in my browser, I > > don't see a web page. I see the code to create a web page. I need to &

[php-list] Re: Figured out the symlink, but problems

2005-08-05 Thread Marian Briones
that index page to show their information? I'm goin to try this header thing. THis is making me fruity. --- In php-list@yahoogroups.com, James Keeline <[EMAIL PROTECTED]> wrote: > > > --- Marian Briones <[EMAIL PROTECTED]> wrote: > > > I figured out the symlink

[php-list] Figured out the symlink, but problems

2005-08-05 Thread Marian Briones
I figured out the symlink, but when I go to that in my browser, I don't see a web page. I see the code to create a web page. I need to see a web page. HELP! Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12hhdfkep/M=362335.6886445.783973

[php-list] Correct syntax for making a symlink

2005-08-05 Thread Marian Briones
I think I'm trashing the idea of making directories for my membership site in favor of making a symlink instead if I can get it to emulate that. Thing is, I can't find the proper syntax for making a symlink with php. What I'm thinking is that it will link to a page that will bring up the user's i

[php-list] Re: Good Reference for PHP 4?

2005-08-04 Thread Marian Briones
This book is also a fabulous reference: http://www.amazon.com/exec/obidos/tg/detail/-/0764535617/qid=1123196490/sr=8-1/ref=pd_bbs_sbs_1/104-9249526-1847948?v=glance&s=books&n=507846 Additionally, email me andI can email you a pdf PHP manual that is excellent. --- In php-list@yahoogroups.com, "Ste

[php-list] Creating a directory and index file in it on the fly

2005-08-04 Thread Marian Briones
Hi I'm still working on this membership site where the members get to name a directory for themselves, i.e. http://www.somesite.com/catlady I then try to write out an index file in that directory but it won't. When I did the mkdir command, I put in 0777 but when I check it, the permissions are 7

[php-list] Re: stripping spaces and other illegal chars out of filenames

2005-07-20 Thread Marian Briones
That produced a nasty error: Warning: Compilation failed: range out of order in character class at offset 7 in /home/user/public_html/toolsuite/script.php on line 15 Line 15 being $photo=preg_replace("/[^a-z9-0_\-]+/","",strtolower($photo)); --- In php-list@yahoogroups.com, "Patrick Bier

[php-list] stripping spaces and other illegal chars out of filenames

2005-07-19 Thread Marian Briones
I am working with a system that will have users uploading files,and I can't depend on them not using spaces and other things Unix doesnt' like in their file names (like ', ., etc). What's the best way to handle the upload? The variable is called photo I'm looking at osmething like:

[php-list] Re: WRiting a PHP file to a directory with php

2005-07-08 Thread Marian Briones
the syntax to do what you are telling me about. Grrr.. --- In php-list@yahoogroups.com, Bruno Lustosa <[EMAIL PROTECTED]> wrote: > On 7/8/05, Marian Briones <[EMAIL PROTECTED]> wrote: > > But how can I do this - I do not have root on my server... > > > yup, basicall

[php-list] Re: WRiting a PHP file to a directory with php

2005-07-08 Thread Marian Briones
But how can I do this - I do not have root on my server... --- In php-list@yahoogroups.com, Brian Cummiskey <[EMAIL PROTECTED]> wrote: > Bruno Lustosa wrote: > > On 7/8/05, Brian Cummiskey <[EMAIL PROTECTED]> wrote: > > > >>Plus, there's LOTS of inherit chmod permisssion problems with the > >>mkd

[php-list] WRiting a PHP file to a directory with php

2005-07-08 Thread Marian Briones
Hi gang I'm almost done with this site I'm doing. It is a membership site, so part of it is they choose a membername so someone can bringup their profile easily - www.thesite.com/membername So, it does a mkdir and now I have to have it also write an index.php page that will bring up their profile

[php-list] Date calculations

2005-06-27 Thread Marian Briones
Thanks for the zip code stuff - I'm going to give that first solution a shot. Keeping it simple at this moment! Now the next thing, I am writing a script that will run as a cron job to delete records from a table that are more than 14 days old. The entry date is just the good old date field in t

[php-list] SEarching by a partial zip code

2005-06-27 Thread Marian Briones
Hi - I'm trying to wrap up a project and one of the features is to match zip codes so someone can find a service provider by their location. I want to match it to 4 digits of their 5 digit zip code. So if the service provider has 94536 listed, if the person searching enters 94539, is there a way

[php-list] Session Troubles

2005-06-10 Thread Marian Briones
Hi gang I have a site that I am working on with a member login feature and from what I understandof sessions, it's almost like being able to carry around a hidden variable from page to page as long as we know there is an active session, and declaring the session variable as okay to view that page

[php-list] Re: Auto Expiring records in a MySQL table

2005-06-09 Thread Marian Briones
every time the data is queried it could delte, but if it's a load on MySQL to do that, then the cron job is the better alternative. Thanks. Marian --- In php-list@yahoogroups.com, James Keeline <[EMAIL PROTECTED]> wrote: > --- Marian Briones <[EMAIL PROTECTED]> wrote: > &g

[php-list] Auto Expiring records in a MySQL table

2005-06-09 Thread Marian Briones
Is it possible to have records go away in a MySQL table after a given amount of days have passed? Or should I tackle it as a by product of a script that retrieves records from it? (The first part of it would go and delete records older than a given date, based on the current date using the date()

[php-list] Trouble with GetImageSize call

2005-05-24 Thread Marian Briones
Hi gang I'm uploading a photo and then checking the image size, and keep getting an illegal division by zero error. Here's the code: // upload the photo if ($photo) { copy($photo, "/home/user/public_html/memberfiles/$photo_name"); // let's make s

[php-list] Using a graphic with letters & numbers to verify user is human...

2005-05-22 Thread Marian Briones
We've all seen this - in fact Yahoo Groups uses it to join its groups now. You are registering for something and are presented with a graphic with a combo of letters and numbers, sometimes at weird angles and diff. fonts and you have to type in exactly what you see and it has to match. Kicking th

[php-list] Re: HELP

2005-05-22 Thread Marian Briones
; sort of thing. It's super easy to do. --- In php-list@yahoogroups.com, Pete <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Marian Briones > <[EMAIL PROTECTED]> writes > >Another way: What I always do is have the username be the person's > >

  1   2   >