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
functio
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 int
Hi
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 concerned
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
w
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 tha
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
But
n MAC... It works on Windows .. In Mac it still
opens up the file in it's supported software. But it's not an issue for me.
Thanks a ton guys...
On 8/23/04 10:51 AM, "John Holmes" <[EMAIL PROTECTED]> wrote:
> From: "PHP Junkie" <[EMAIL PROTECTED]>
>
>
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 function
t;[EMAIL PROTECTED]> wrote:
> 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. Doe
t'll download the file and then open it.
>
> Jon
>
> 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 gue
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...
be edited by the server.
> anything that's uploaded by the server 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,
>>
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 phpi
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
Ave,
I use the PHP Header directives to create a page which would force-download
the file for the user...
What I want is to have this window close automatically once it's launched
the Save As Dialog Box ... I tried several javascript window.close(),
self.close() functions but none of them seem
f the directory $file_dir, which you define 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,
>>
>>
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 Junk
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 f
emains.
Thanks for helping...
On 8/24/04 1:49 PM, "John Nichel" <[EMAIL 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 c
;
> On Wednesday 25 August 2004 01:31, 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 shoul
;
> On Wednesday 25 August 2004 01:31, 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 shoul
quot;Timeout & Close" scripts,
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 win
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 vie
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 Phoneboo
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:
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.
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
access
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:
D/L Window
function close_opener()
{
pare
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 understand
w" <[EMAIL 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
>>
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:
>
>
> <
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
I got it I
feel stupid that I didn't make this sense myself. 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"
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 MAC.
Thanks though.
On 9/1/04 6:52 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 wr
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 9/
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:
File $img1_name uploaded to $PHP_login
folder.";
}
}
?>
I'm not getting any errors (for some reason I don't
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 dow
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 PROTECTE
actly 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 and frustrating proble
>> 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
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
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,
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 my
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 my
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
--
PHP
t;[EMAIL PROTECTED]> 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
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" <[EMAI
this->boundary."\n".
"Content-Type: text/plain\n".
"Content-Transfer-Encoding: quoted-printable\n\n".
$this->body_plain.
"\n\n--".$this->boundary.
"\n";
}
if( is_array( $this->atcmnt_type ) ) {
reset( $this->atcmn
difference?
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 eve
g 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/2
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 i
nuel Lemos" <[EMAIL 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 probl
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 iss
next... 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 wro
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 M
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
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
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? H
NI...
Any help?
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 w
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 we
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, whi
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
Rep
gt; One thing that helped me in understanding how 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 b
64 matches
Mail list logo