[PHP] Capitalize Function ??

2001-07-23 Thread PHP Junkie
I know this one will be an easy one ... I'm taking in first name and last name data into a MySQL db through a form. Users sometimes don't capitalize their first and last names when entering the data. Is there a function to clean this up for consistency? If so, what is the name of the

RE: Re: [PHP] Capitalize Function ??

2001-07-24 Thread PHP Junkie
True. or what about the Irish.. The Mc***'s or the Mac*'s !! Hmmm? This will be a challenge for sure!! Alexander Skwar [EMAIL PROTECTED] wrote: So sprach »PHP Junkie« am 2001-07-23 um 21:39:07 -0400 : I'm taking in first name and last name data into a MySQL db through a form. Users

[PHP] Moving a PHP/MySQL web site ???

2001-07-27 Thread PHP Junkie
Hi ?PHPrEAks!? I will be having to face the dubious task of moving my PHP/MySQL-based website to another server. Can anyone out there point me to some GOOD documentation on this? The .php files I'm not as concerned about. I've been using the $DOCUMENT_ROOT in all of my includes. I'm more

Re: [PHP] creating a folder in php

2004-10-12 Thread PHP Junkie
I want an IDE that will let me speak code into it. Anyone else want anything? Oh.. I'd like a flat-screen monitor that would interpret the program that I have in my mind, generate the code for it on screen, save it and run the program everytime I say KaBoom. I'd like a side-order of that IDE

[PHP] mysql_num_rows()

2004-09-27 Thread PHP Junkie
Ave, In one of my scripts, I'm getting the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /Library/WebServer/Documents/limiteduse.net/dumptoday.php on line 56 I¹m not clearly sure why. I¹m running PHP5 with mySQL 4 ... Is there a compatibility issues

[PHP] Attaching 2 files in Mail

2004-09-30 Thread PHP Junkie
Ave, I'm facing a little problem. I have this code which enables me to attach a file and send the file as an attachment with the Mail. What I need to do is slightly different. Firstly, I want to send 2 files as attachment, and not one. Secondly, I don't want the user to select attach the file,

[PHP] Why won't my attached PDF go through ??

2004-10-01 Thread PHP Junkie
Ave, I created a form which can accept 2 file attachments and send an HTML Email... Everything works great... The files even get attached and sent, the ONLY problem is... The PDF file I'm sending attached open up empty! They are all blank.. Like everything has been wiped off from them!! Here's

[PHP] [PHP Attachement Problems

2004-10-04 Thread PHP Junkie
Ave, I created a form which can accept 2 file attachments and send an HTML Email... Everything works great... The files even get attached and sent, the ONLY problem is... The PDF file I'm sending attached open up empty! They are all blank.. Like everything has been wiped off from them!! Here's

[PHP] Can anyone help me with Attachments?

2004-10-04 Thread PHP Junkie
Ave, I'm trying to send Attachments via a mail script... The only problem is, my attached files go corrupted or damaged, and I don't understand why! Can anyone help me? I've already made 2 posts earlier with my code and all and no one responded. Really need some help here. Thanks, Junkie --

Re: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread PHP Junkie
] wrote: PHP Junkie wrote: Ave, I'm trying to send Attachments via a mail script... The only problem is, my attached files go corrupted or damaged, and I don't understand why! Can anyone help me? I've already made 2 posts earlier with my code and all and no one responded. Really need some help

Re: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread PHP Junkie
Ave, Exactly, that's the problem. I can very well see the binary information in the attached PDF in a text editor ... But when I open it in Adobe... The file does open, it's just that it's all blank. White pages. All wiped off. All information erased!! On 10/5/04 12:21 PM, Jay Blanchard [EMAIL

Re: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread PHP Junkie
( $this-to, $this-subject, $this-makebody(),$this-makeheader() ); } } ? On 10/5/04 12:24 PM, Marek Kilimajer [EMAIL PROTECTED] wrote: PHP Junkie wrote: Ave, I didn't find any php warnings... Instead there was a whole bunch of coding much of which seemed like junk. I ran a search but no php

Re: [PHP] Re: PHP Attachement Problems

2004-10-05 Thread PHP Junkie
? Junkie. On 10/5/04 12:43 PM, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, On 10/04/2004 10:24 AM, Php Junkie wrote: I created a form which can accept 2 file attachments and send an HTML Email... Everything works great... The files even get attached and sent, the ONLY problem is... The PDF

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread PHP Junkie
the problem. My problem however is, I have to use the MAC and not a linux or windows or whatever. So what do I do now? How do I make these scripts work fine on a MAC ?? Thanks, Junkie On 10/5/04 12:43 PM, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, On 10/04/2004 10:24 AM, Php Junkie wrote: I

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread PHP Junkie
Manuel, Really appreciate your help. I created a new empty php file and put your given code in it. Upon running the test.php in my browser, it prints exactly this in my browser: could not open file I have a PowerMac G5 Machine, with MacOS X. I have PHP 5 installed from entropy.ch and have the

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread PHP Junkie
PROTECTED] wrote: Hello, On 10/05/2004 04:40 PM, PHP Junkie wrote: Really appreciate your help. No problem. Sending mail with PHP is a saga to many users, not just Macs. If there is something that can be done to workaround PHP problems to avoid your problem, I will integrate

Re: [PHP] Upload problems

2004-10-05 Thread PHP Junkie
Ave, What's the upload_max_filesize set to in your php.ini ? Under File Uploads in the php.ini, you will find this value. Junkie On 10/5/04 4:33 PM, Pablo Gosse [EMAIL PROTECTED] wrote: Hi, folks. I'm running into a strange upload problem and am not sure if it's a php or apache issue.

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-06 Thread PHP Junkie
... I¹m looking into the Mac compatibility issue everywhere but I don¹t see anywhere anyone else complaining about such a thing. Thanks again, Junkie On 10/5/04 10:22 PM, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, On 10/05/2004 04:57 PM, PHP Junkie wrote: I replaced the code and added my

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-06 Thread PHP Junkie
Ave, One more thing I'd like to point out, which I just discovered. The php code I was using earlier, prior to using Manuel's mail class... Was not able to send any kind of attachment except .txt files. Niether images nor pdf nor anything would go through without being corrupted. However, using

[PHP] PHP on MAC

2004-07-13 Thread PHP Junkie
Astrum Et Securis We've just bought a new Power Mac G5 Macintosh computer for the office and I'll need to do some backend engineering work using it. I've never worked with PHP on MAC, so I really have no experience with what happens on a MAC... are there on issues regarding working with PHP on a

RE: [PHP] PHP on MAC

2004-07-13 Thread PHP Junkie
Astrum Et Securis AWESOME!! Needed to hear something like that.. Thanks a ton! And I will definitely get the Installer from the mentioned location. Thank you. Dominor, RSJ -Original Message- From: Larry E. Ullman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 7:32 PM To: PHP

[PHP] The Mail Server

2004-07-21 Thread PHP Junkie
Astrum Et Securis, We're running our Apache Web Server with PHP MySQL on a Power MAC G5 (MacOS X) system. And we're currently thinking of making it our web server giving public access to our website hosted on this machine. PHP, MySQL, FTP etcetera are all fine, but what about the Mail Server?

Re: [PHP] The Mail Server on Mac OS X

2004-07-21 Thread PHP Junkie
? Thanks, RSJ On 7/21/04 5:11 PM, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, On 07/21/2004 06:05 PM, Php Junkie wrote: We're running our Apache Web Server with PHP MySQL on a Power MAC G5 (MacOS X) system. And we're currently thinking of making it our web server giving public access

[PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Astrum Et Securis, I'm using a PowerMac G5 machine, which has the MacOS X Panther. It comes with the Postfix mail server, which I'm now trying to use with PHP. I was able to define the sendmail_path to the Postfix sendmail in the PHP.INI .. Now what happens is, on my localhost when I run the

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Astrum Et Securis I used the Postfix Enabler software which sets up the mail server. How do I test the mail server? How can I determine if it actually sends mail? RSJ On 7/22/04 2:45 PM, Matthew Sims [EMAIL PROTECTED] wrote: Astrum Et Securis, I'm using a PowerMac G5 machine, which has

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Astrum Et Securis I tried using the mail command at the Terminal Window In fact it did have all my sent messages recorded there, but they are all giving an error... Which is something like this: __ Content-Description: Delivery error report Content-Type: message/delivery-status

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
the mail process worked was to walk through it manually from the terminal. It's ridiculously simple what goes on in transferring a message to another mail server. Which explains why some viruses have there own mail servers built-in. On Jul 22, 2004, at 4:49 PM, PHP Junkie wrote: Astrum Et Securis

[PHP] PHP Calendar/Planner Project

2004-08-10 Thread PHP Junkie
Ave, I'm working to create a sophisticated PHP Calendar/Planner application for my company's web server. I was wondering if there is a nice powerful calendar/planner application out there which could help me in guidance towards building my project. What I'm looking for is something sophisticated

[PHP] Save Dialog Box

2004-08-18 Thread PHP Junkie
Ave, I'm working on creating a File Manager for my Company, in PHP MySQL. I had a question The File Manager allows authenticated users to download upload various types of files from the available Zones. What I basically do is specify a link to the Original file stored on the server so that

[PHP] How do I open Save As Dialog Box?

2004-08-23 Thread PHP Junkie
Ave, I'm facing a little problem. I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT DOC. What I want to do is basically... When the user clicks on the Download

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread PHP Junkie
. Thanks a ton guys... On 8/23/04 10:51 AM, John Holmes [EMAIL PROTECTED] wrote: From: PHP Junkie [EMAIL PROTECTED] I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF

[PHP] unlink() rmdir() ... Problems.

2004-08-23 Thread PHP Junkie
Ave, I do not really know what the problem is because I don't get an error, and in fact my scripts execute fine... Except that, niether is the directory deleted, nor is the file deleted. Only corresponding database entries are deleted which I specify in my SQL code. There are 2 different

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-23 Thread PHP Junkie
: PHP Junkie wrote: Again, no error... The entries in the table get deleted.. But file remains in the directory. Any suggestions? Neither of these functions return an error. They will return false on failure. Does the user/group which your web server is running as have permission

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread PHP Junkie
PHP Junkie wrote: Ave, IT WORKS!! There wasn't one bit of a problem.. I'll just paste the code here again for anyone who might be looking for it. I guess I was very close to it but just doing one thing wrong... I wasn't specifying the Basename directive. ?php $file = $P/$F; header

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-23 Thread PHP Junkie
Ave, Well here's my situation... You see the File Manager allows users to Upload files ... Once a user uploads the file... It resides in a particular folder on my server. Users will be constantly uploading, downloading, deleting files. I can't possibly CHMOD 777 all the time... My question is...

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-23 Thread PHP Junkie
is owned by it, and thusly can be edited. as a side note, you'd have to chmod 777 the directory to be edited if you want uploads to work. PHP Junkie wrote: Ave, Well here's my situation... You see the File Manager allows users to Upload files ... Once a user uploads the file

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-23 Thread PHP Junkie
I guess phpinfo() is *OUR* friend!! Great guy! Although I'd be happier if my files folders started getting deleted with the script, which still ain't happening. On 8/23/04 2:32 PM, John Nichel [EMAIL PROTECTED] wrote: Jason Wong wrote phpinfo() is your friend. I thought phpinfo() was

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-23 Thread PHP Junkie
Ave, Richard... What exactly did you mean by this? system('rm -rf',$user_dir,$ret_val); I don't understand. On 8/23/04 12:11 PM, Richard Whitney [EMAIL PROTECTED] wrote: system('rm -rf',$user_dir,$ret_val); On Mon, 23 Aug 2004 11:57:35 -0400, PHP Junkie [EMAIL PROTECTED] wrote: Ave

[PHP] Closing my Window after Download

2004-08-24 Thread PHP Junkie
Ave, I use the PHP Header directives to create a page which would force-download the file for the user... ?php $file = $P/$F; header(Content-Description: File Transfer); header(Content-Type: application/force-download); header(Content-Disposition: attachment; filename=.basename($file));

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
befiorehand $ret_val displays to you what happened. if you tget nothing, it did not work. HTH! Richard On Mon, 23 Aug 2004 16:24:23 -0400, PHP Junkie [EMAIL PROTECTED] wrote: Ave, Richard... What exactly did you mean by this? system('rm -rf',$user_dir,$ret_val); I don't understand

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
Ave, Trust me I do... I double checked it actually.. On 8/24/04 1:41 PM, Richard Whitney [EMAIL PROTECTED] wrote: Dumb question - are you sure you got the path right? i.e. /home/public_html/rest/of/your/path On Tue, 24 Aug 2004 13:31:06 -0400, PHP Junkie [EMAIL PROTECTED] wrote: Ave

Re: [PHP] Closing my Window after Download

2004-08-24 Thread PHP Junkie
Ave, The browser window which launched the Save As window... On 8/24/04 1:41 PM, John Nichel [EMAIL PROTECTED] wrote: PHP Junkie wrote: Ave, I use the PHP Header directives to create a page which would force-download the file for the user... ?php $file = $P/$F; header(Content

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
PROTECTED] wrote: PHP Junkie wrote: Ave, Nope... Didn't work. Didn't return an error or anything, didn't delete the folders either! If you cannot delete via the php functions or via system calls, then you have a permission problem. What user/group is Apache running as? What

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
, PHP Junkie wrote: Ave, Nope... Didn't work. Didn't return an error or anything, didn't delete the folders either! system('rm -rf',$user_dir,$ret_val); That should be: system(rm -rf $user_dir, $ret_val); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] unlink() rmdir() ... Problems.

2004-08-24 Thread PHP Junkie
, PHP Junkie wrote: Ave, Nope... Didn't work. Didn't return an error or anything, didn't delete the folders either! system('rm -rf',$user_dir,$ret_val); That should be: system(rm -rf $user_dir, $ret_val); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Closing my Window after Download

2004-08-26 Thread PHP Junkie
, I've tried many javascript functions. I don't get any errors ... The window just doesn't close... On 8/24/04 2:09 PM, John Nichel [EMAIL PROTECTED] wrote: PHP Junkie wrote: Ave, The browser window which launched the Save As window... PHP cannot do this. You'll have to use JavaScript

[PHP] sharing records with assigned users

2004-08-26 Thread PHP Junkie
Ave, I'm working on a Phonebook Application for my company. Much of it's functions and application are pretty much clear and workable for me. But there's one aspect which I'm trying to figure out. It's a multi-user application where there's 2 kinds of users... Admin User. The User can only

Re: [PHP] sharing records with assigned users

2004-08-26 Thread PHP Junkie
Ave, Jay.. Firstly thanks a lot for the tips. I appreciate that and in fact I do try to go methodically in most cases, even using the pen paper to create my flow charts and diagrams of what I'm about to program. I actually love that method of designing an application. In fact, for this

Re: [PHP] sharing records with assigned users

2004-08-26 Thread PHP Junkie
Ave, That makes sense... Actually I think I know exactly what you're saying and I think it's gonna work that way. Let me do this. Thanks a ton! On 8/26/04 2:42 PM, Jason Wong [EMAIL PROTECTED] wrote: On Friday 27 August 2004 01:49, PHP Junkie wrote: Coming back again to my problem

Re: [PHP] sharing records with assigned users

2004-08-27 Thread PHP Junkie
Ave, Hey thanks a lot. I'm reading up on those. I appreciate this. Thanks. On 8/26/04 10:07 PM, David Bevan [EMAIL PROTECTED] wrote: On Thu, 2004-08-26 at 13:49, PHP Junkie wrote: Ave, Jay.. Firstly thanks a lot for the tips. I appreciate that and in fact I do try to go methodically

Re: [PHP] sharing records with assigned users

2004-08-27 Thread PHP Junkie
Ave, Thanks a ton... And this is exactly what I figured I need to do. Someone else also wrote in something similar which prompted me to go in this direction. It's working out now by creating an additional table that maps the users records through ID and holds information on who is allowed

Re: [PHP] Closing my Window after Download

2004-08-30 Thread PHP Junkie
Ave, It still doesn't work. Not only that, I put up a close window button in the page and even that doesn't show up. Although that's still not what I want. What I want is the window to close automatically. Here's my page: ?php $file = $P/$F; header(Content-Description: File Transfer);

Re: [PHP] Closing my Window after Download

2004-08-31 Thread PHP Junkie
Ave, I hear you... Even I feel it's a different problem but I don't know what. My first thought was that HTML or anything doesn't work after the Force-Download script in general But since you seem to use it, I guess it does. Now I don't know what to do, how to make it work. I can't

Re: [PHP] Closing my Window after Download

2004-08-31 Thread PHP Junkie
PROTECTED] wrote: * Thus wrote PHP Junkie: Ave, It still doesn't work. Not only that, I put up a close window button in the page and even that doesn't show up. Although that's still not what I want. What I want is the window to close automatically. Here's my page: ?php $file = $P/$F

Re: [PHP] Closing my Window after Download

2004-08-31 Thread PHP Junkie
Ave, Indeed, it didn't work. Anymore suggestions? On 8/31/04 2:09 PM, Jasper Howard [EMAIL PROTECTED] wrote: try this, after you force download of the file, use: header(Location: close_window_script.php); where the only code in that file is something like this: script

Re: [PHP] Closing my Window after Download

2004-09-01 Thread PHP Junkie
Ave, Which page do you give this code in? For example, I have a page admin.php Therein is the link on which, when a user clicks, a window admin_dl.php opens. The admin_dl.php contains my force-download code and it is that window that I'm trying to close. If I specify this following code in

Re: [PHP] Closing my Window after Download

2004-09-01 Thread PHP Junkie
. But then again, once in a while you need a hit on the head with a mallet just like this. Thank you so much. PHPJunkie. On 9/1/04 8:52 AM, John Holmes [EMAIL PROTECTED] wrote: From: PHP Junkie [EMAIL PROTECTED] Which page do you give this code in? For example, I have a page admin.php Therein

[PHP] importing DBF data into mysql

2004-09-01 Thread PHP Junkie
Ave, Is there a PHP script that is able to import or convert DBF data into mySQL tables? I need to get my DBF data into mySQL and PHPMyAdmin couldn't handle it. Another problem I have is I'm running a MAC OS X... There is a very simple and efficient DBF2MYSQL program for windows but not for

Re: [PHP] importing DBF data into mysql

2004-09-02 Thread PHP Junkie
PM, Thornton [EMAIL PROTECTED] wrote: This is probably what your looking for http://www.coolnet.cz/miro/dbf2mysql/dbf2mysql.tar.bz2 It should handle your needs On Wed, 2004-09-01 at 14:08, PHP Junkie wrote: Ave, Is there a PHP script that is able to import or convert DBF data

Re: [PHP] importing DBF data into mysql

2004-09-02 Thread PHP Junkie
Ave, It was the permissions issue. Although even before I used the script, I knew permissions would play a role so I had set the permissions appropriately. Unfortunately I didn't set them for an enclosed folder where I was storing the DBF file. Anyhow, it's working now... Thanks a ton! On

[PHP] Checking file_exists()

2004-09-15 Thread PHP Junkie
Ave, I have a simple file upload form, which uploads without a problem. Today I added the file_exists() function to my PHP code. And everything stopped working. What am I doing wrong here: ?php if($upload_file) { $db = mysql_connect(localhost,usr,pwd); mysql_select_db(imsafm,$db); $date =

[PHP] File Download Problems

2004-09-15 Thread PHP Junkie
Ave, I've been having a very nagging and frustrating problem for a while and I hope someone can help me out with this. I created a simple File Manager application, a lot of you already know about it as you helped me with coding at different stages. The problem is this: The Download. When you

Re: [PHP] Checking file_exists()

2004-09-15 Thread PHP Junkie
Ave, I can swear it wasn't working with the Double Quotes either because I tried it first. But well, now it is so no point in anything. Thanks a lot. On 9/15/04 3:19 PM, John Holmes [EMAIL PROTECTED] wrote: From: PHP Junkie [EMAIL PROTECTED] $trauma = 'imsafm/$PHP_login/$img1_name

Re: [PHP] File Download Problems

2004-09-16 Thread PHP Junkie
variables. But what if I really needed to send the ID variable? I don¹t exactly understand how this setup of Variables affected the file being downloaded. Thanks anyways. On 9/15/04 5:35 PM, Marek Kilimajer [EMAIL PROTECTED] wrote: PHP Junkie wrote: Ave, I've been having a very nagging