[PHP] mail function in 4.2.2

2006-06-01 Thread Aaron Todd
I am working with a server that has version 4.2.2 on it. I know...I know...its old. Its my ISPs server so I don't have too much control over it. Anyway, I am seeing a problem where when I use the mail function to send out an email only some of the messages get to the destination. I wrote a

Re: [PHP] mail function in 4.2.2

2006-06-01 Thread Aaron Todd
Thanks for the reply. I'll ask the ISP about throtteling next time I talk with them. I would also like to mention that I am also getting intermitent results when just sending a single email. One if the web pages I am testing is a support request form. When the form is submitted it sends an

[PHP] weird results from imagettfbbox()

2005-08-31 Thread Aaron Todd
I have an array of strings in which I am passing to imagettfbbox() in order to calculate the height of the text box for each string. I am then subtracting the height from the y position in order to deviate the pivot point form the top left corner to the bottom left corner when I used

[PHP] Re: incrementing a register global

2005-06-17 Thread Aaron Todd
Just so there is no confusion...I mistyped the line: $names = substr(strrchr($_SERVER['QUERY_STRING'],),7,1); It should be a 5 instead of a 7 at the end: $names = substr(strrchr($_SERVER['QUERY_STRING'],),5,1); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: incrementing a register global

2005-06-17 Thread Aaron Todd
Thanks for all the suggestions. I am going to plan on trying them out just to see some other ways of making it work. I finally got it to work after hours of just playing around with the code. Here is what I ended up doing: for($i=1;$i=$boxes;$i++){ echo $_GET['name'.$i]; } Moving the $i

[PHP] incrementing a register global

2005-06-15 Thread Aaron Todd
I dont know it this is possible, but here it goes. Hopefully I cac explain it well enough for someone to understand. I am posting data to a php script. I have several variables that are the same except the number at the end is different. So the url of the called script will be something

Re: [PHP] rawurldecode

2005-03-29 Thread Aaron Todd
this functionality? Thanks Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aaron Todd wrote: I am trying to use the rawurldecode() function to decode a variable that is begin passed from a different page through the url. The PHP manual doesnt say much for this function

[PHP] Re: rawurldecode

2005-03-29 Thread Aaron Todd
character in a filename so I must acount for it. Has anyone previously dealt with this and might be able to give me a quick work around? Thanks Aaron Todd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to use the rawurldecode() function to decode a variable that is begin

Re: [PHP] rawurldecode

2005-03-29 Thread Aaron Todd
I got it. After you said I shouldn't need it I started playing around and found that you were right...I didnt need it for spaces and other punctuation. But I was then having a problem with amperstands. It was dropping everything after an amperstand off. I ended up doing a rawurldecode of

[PHP] rawurldecode

2005-03-28 Thread Aaron Todd
I am trying to use the rawurldecode() function to decode a variable that is begin passed from a different page through the url. The PHP manual doesnt say much for this function, but it does have quite a bit on the urldecode() function which says using urldecode on a $_GET variable wont produce

[PHP] FREETYPE and GD

2005-03-02 Thread Aaron Todd
Hello, I've created a simple script that takes in image and draws some lines and some text on top of it. I am having a problem with the text part of this. When the string that I am drawing on the image contains and apostrophe ( ' ) there is always a backslash ( \ ) before it. It make sense

Re: [PHP] FREETYPE and GD

2005-03-02 Thread Aaron Todd
BEAUTIFUL Thats exactly what I was looking for. I'm not doing anything with MySQL so I am going to leave Magic Quotes on and just use stripslashes() Thanks a bunch. Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aaron Todd wrote: I've created a simple script

[PHP] Image Creation

2005-02-15 Thread Aaron Todd
I just wrote a little script to play around with the GD library but I am having a problem displaying it in the browser. I have not problem at all when I just run the script. But I was trying to make the image in a custom function which will return the image when its called. All I end up

[PHP] Re: Image Creation

2005-02-15 Thread Aaron Todd
error reporting on for your script. Hope you find the bug, thats quite a nice function you have there. J Aaron Todd wrote: I just wrote a little script to play around with the GD library but I am having a problem displaying it in the browser. I have not problem at all when I just run

[PHP] Re: Image Creation

2005-02-15 Thread Aaron Todd
Hey Guys, I think I fixed my own problem. I tried calling the PHP script from a different page like this: img border='0' src='include/pie.php?slice=100total=200' This gave me the results I wanted. Thanks for all your help. Aaron Aaron Todd [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] fireing function with onChange

2005-02-10 Thread Aaron Todd
I have a loop that is putting the filenames of files in a certain directory into a listbox. I am then using the onChange event of the listbox to fire a function. In this script the onchange event sends the function the path an filename of the chosen file from the list. I have tested what I

[PHP] DATE()

2004-11-08 Thread Aaron Todd
Is there any way yo get the date and time using date() from a Internet time server? Right now I am getting it from my servers date and time which seems to be unpredictable since my ISP seems to change it at random. Windows shows two time servers time.windows.com and time.nist.gov and I was

[PHP] constant tasks

2004-10-18 Thread Aaron Todd
I'm wondering if it is possible to have some kind of script running all the time. I have a site that collects data that users enter and emails certain people and does other various tasks with the data. Some of the information collected contains dates and times that could be up to three months

[PHP] Push file to FTP Server

2004-10-06 Thread Aaron Todd
Does anyone know how I might be able to have php push a file to an FTP server? Thanks, Aaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session Variable Security

2004-09-30 Thread Aaron Todd
Can anyone tell me how secure a session variable is. I realize that if someone wanted to take the time to break into my site they will eventually succeed, but I dont want to make it too easy. I have a database that stores a username and an encrypted password which both are verifyed when the

[PHP] Download Script

2004-08-27 Thread Aaron Todd
I've created a download script that works quite nicely. The only issue with it is that when I download a file where the file name is like filename v1.0.2.1.exe there is some extra characters added into the name when it is downloaded. So that file will be filename v1[1].0.2.1.exe. I am

[PHP] Re: Download Script

2004-08-27 Thread Aaron Todd
; -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Aaron Todd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've created a download script that works quite nicely

[PHP] Re: crypt()

2004-08-26 Thread Aaron Todd
] Aaron Todd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have developed a PHP based site that requires users to login. Their login information is kept in a MYSQL database. Currently, I am using an IF statement to verify what the user enters as their password with what

[PHP] crypt()

2004-08-25 Thread Aaron Todd
I have developed a PHP based site that requires users to login. Their login information is kept in a MYSQL database. Currently, I am using an IF statement to verify what the user enters as their password with what is in the the database. If they are the same a session is created and they

Re: [PHP] downloading files

2004-08-23 Thread Aaron Todd
I did exactly what you said but its not working for me. I am getting the following error: Warning: filesize(): SAFE MODE Restriction in effect. The script whose uid is 20373 is not allowed to access /var/www owned by uid 0 in /home/virtual/site341/fst/var/www/html/test.php on line 3 I

[PHP] readfile()

2004-08-23 Thread Aaron Todd
I'm trying to use readfile() to allow a user to download a file that is outside of my webroot. webroot = /var/www/html downloads dir = /var/www/downloads Here is the code that I have been using: $file = /var/www/downloads/test.txt; header(Content-Description: File Transfer);

Re: [PHP] readfile()

2004-08-23 Thread Aaron Todd
with something this advanced. Is there anything else I can do to further diagnose this problem? Thanks again, Aaron Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 2004-08-23 at 13:02, Aaron Todd wrote: I'm trying to use readfile() to allow a user to download a file

Re: [PHP] downloading files

2004-08-20 Thread Aaron Todd
be used then by the script to allow access to that file (but this way might be more complicated without real benefits). Teddy Teddy - Original Message - From: Aaron Todd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 19, 2004 8:30 PM Subject: [PHP] downloading files

[PHP] downloading files

2004-08-19 Thread Aaron Todd
I posted a simular question before and never really got an answer. The post drifted off into some other valuable information, but I still have the same question. I am trying to create a site with file downloads. The files on the server that are to be downloaded need to be protected somehow. I

[PHP] str_split()

2004-08-12 Thread Aaron Todd
I was just wondering if anyone can look an the following code and tell me if there are any obvious errors. I wrote this in DZsoft PHP editor where it works perfectly. But then when I run it on my webserver it gave me a fatal error: Fatal error: Call to undefined function: str_split() in

Re: [PHP] str_split()

2004-08-12 Thread Aaron Todd
in message news:[EMAIL PROTECTED] Aaron Todd wrote: I was just wondering if anyone can look an the following code and tell me if there are any obvious errors. I wrote this in DZsoft PHP editor where it works perfectly. But then when I run it on my webserver it gave me a fatal error

Re: [PHP] str_split()

2004-08-12 Thread Aaron Todd
HAH...I found it. I have version 4.3.3 Does that version not have this function or something? Thanks, Aaron John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aaron Todd wrote: I was just wondering if anyone can look an the following code and tell me if there are any

Re: [PHP] str_split()

2004-08-12 Thread Aaron Todd
John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aaron Todd wrote: I thought someone might ask me that. I honestly dont know. I have been looking for a comand that I can run to find out, but I havent found one. I have SSH access to the server so if you know of a way

[PHP] download script

2004-08-10 Thread Aaron Todd
I was going to post another follow-up question in a pending thread here but it seems to have been deleted. Anyway, I am trying to write a download script that will downloaded files from my site. All these files need to be protected so just anybody cant come to the site and download them. I have

[PHP] download script

2004-08-10 Thread Aaron Todd
I was going to post another follow-up question in a pending thread here but it seems to have been deleted. Anyway, I am trying to write a download script that will downloaded files from my site. All these files need to be protected so just anybody cant come to the site and download them. I have

[PHP] Embeded PHP

2004-08-10 Thread Aaron Todd
I was just wondering if anyone out there is using PHP for an embeded development or knows of any devices that use PHP on their system. Thanks, Aaron Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] download script

2004-08-10 Thread Aaron Todd
, but it is only about 400 bytes and cannot be read. Thanks again for your help, Aaron John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aaron Todd wrote: snip ?php $file = /home/dlr/test/.$_GET['file'].; if (file_exists(basename($file))) { header(Content-Description

[PHP] embedded php

2004-08-10 Thread Aaron Todd
could do the same but also run some php scripts. Thanks, Aaron Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] download script

2004-08-10 Thread Aaron Todd
Why would this be a security hole if I do not filter the file name before I use it? Thanks, Aaron Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The other guys addressed how to get the script working, but I thought I might also mention that you're presenting a potential

Re: [PHP] Need Some Direction

2004-08-09 Thread Aaron Todd
/test/ So far under this config I cant get it to work, but I'm not sure if I'm still under the webroot in my config. Do I need to move my test directory to lets say /var/www/ or even /var/? Thanks again, Aaron Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aaron Todd

Re: [PHP] Need Some Direction

2004-08-06 Thread Aaron Todd
PROTECTED] Aaron Todd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So far I have made this work. But now I have to ask...what about a pdf file? I cant add php code to it so what do I do. I need to be able to restrict the pdf so a user can only get to it during a current

Re: [PHP] Need Some Direction

2004-08-06 Thread Aaron Todd
to what Miles says, use the fopen and fread commands (see manual on the PHP site) for accessing the PDF files so that you can send copies of them to the user. Examples are in the user comments of the manual. -Original Message- At 05:42 PM 8/5/2004, Aaron Todd wrote: So far I have made

[PHP] Need Some Direction

2004-08-05 Thread Aaron Todd
Hello, I am trying to build up a members only site, but I need some direction. So far I have written a page that will let a user register for access. That script emails me their info so I can validate it, sends them a thankyou email and then sends the data to a temporary MySQL database table.

Re: [PHP] Need Some Direction

2004-08-05 Thread Aaron Todd
, they will be redirected automatically to the login page. Trust this his helpful - Miles Thompson At 11:42 AM 8/5/2004, Aaron Todd wrote: Hello, I am trying to build up a members only site, but I need some direction. So far I have written a page that will let a user register for access. That script emails me

[PHP] running a script

2004-08-03 Thread Aaron Todd
Is there any way to run a php script by clicking a link? Thanks, Aaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] running a script

2004-08-03 Thread Aaron Todd
having a link in the email so when I click on it, it runs a script that will enter all my info into the database. Any help/suggestions is appreciated. Thanks, Aaron John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tuesday 03 August 2004 12:25, Aaron Todd offered up

Re: [PHP] running a script

2004-08-03 Thread Aaron Todd
I like both of these methods...Is one of them more used regularly with PHP. I don't want to start down a road that will eventually dead end if you know what I mean. Thanks, Aaron John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tuesday 03 August 2004 13:08, Aaron Todd

Re: [PHP] running a script

2004-08-03 Thread Aaron Todd
temp_users WHERE ID=$id Thanks again. Aaron John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tuesday 03 August 2004 13:32, Aaron Todd offered up the following tid-bit of information : I like both of these methods...Is one of them more used regularly with PHP. I don't want