php-general Digest 24 Oct 2006 19:35:53 -0000 Issue 4419

Topics (messages 243556 through 243587):

Is there a function can decrypt md5 ??
        243556 by: Brad Chow
        243557 by: Chris
        243583 by: tg-php.gryffyndevelopment.com
        243584 by: zerof
        243585 by: Satyam
        243586 by: zerof

Re: connectivity weirdness
        243558 by: Ivo F.A.C. Fokkema

Re: mysqldump problem from PHP
        243559 by: Roman Neuhauser
        243561 by: Chris
        243564 by: Roman Neuhauser

Re: FTP - folders
        243560 by: Roman Neuhauser
        243571 by: tedd

Re: ENV vars
        243562 by: Jochem Maas

Re: Class privacy and variable identifiers
        243563 by: Roman Neuhauser

I'm newbie in PHP
        243565 by: Hassan Arteaga Rodriguez
        243566 by: Dave Goodchild
        243567 by: Edward Kay
        243568 by: Andrei
        243569 by: Paul Scott
        243575 by: Andrei

PHP Zip Question
        243570 by: Matt Street

Re: handling multipart form-data
        243572 by: Anton Statutov

Re: PHP Search and Privacy...
        243573 by: Russell Jones

Re: Creating thumbnails using Image Functions,       then saving to folders
        243574 by: tedd

Job postings?
        243576 by: Steve Lane
        243577 by: Chris Boget
        243578 by: Edward Kay
        243579 by: Jochem Maas
        243580 by: Steve Lane
        243581 by: David Giragosian
        243582 by: Jochem Maas
        243587 by: John Nichel

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        php-general@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Dear all:

Is there a function can decrypt md5 ??
I don't have any bad ideas.
I just want to know whether md5 can be decrypted or not.

Thank you!

--
Brad

--- End Message ---
--- Begin Message ---
Brad Chow wrote:
Dear all:

Is there a function can decrypt md5 ??
I don't have any bad ideas.
I just want to know whether md5 can be decrypted or not.

It can't be decrypted (you can't get the original value back) but it can have collisions in which two items will have the same md5 sum.

http://en.wikipedia.org/wiki/MD5
http://en.wikipedia.org/wiki/MD5CRK

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
There is no practical way to 'decrypt' an MD5 hash.  It is meant to be a 
one-way encoding of data to produce a (mostly) unique ID.  It does a lot better 
job than some of it's predecessors like CRC32, in producing a unique ID, but 
apparently it still has a very slim possibility of generating the same hash/id 
off of two different bits of data.

The only practical way to get the original data from a known MD5 string is to 
sign up with one of the services that has gigs of pre-MD5 encoded data and have 
them do a lookup of the MD5 you have and tell you what it was before they 
hashed it.

The short answer is that MD5 was never meant to be reversed, it was meant for 
things like checking data integrity and authenticity verification.

-TG

= = = Original message = = =

Dear all:

Is there a function can decrypt md5 ??
I don't have any bad ideas.
I just want to know whether md5 can be decrypted or not.

Thank you!

--
Brad



___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

--- End Message ---
--- Begin Message ---
Brad Chow escreveu:
Dear all:
Is there a function can decrypt md5 ??
I don't have any bad ideas.
I just want to know whether md5 can be decrypted or not.
--
Brad
------------------
The md5 hash is not a codification, but, yes, a validation key.
In this way, it cannot be decoded!
It only can be used to validate data, like a signature.
-----
zerof

--- End Message ---
--- Begin Message ---

----- Original Message ----- From: "zerof" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Sent: Tuesday, October 24, 2006 6:00 PM
Subject: [PHP] Re: Is there a function can decrypt md5 ??


Brad Chow escreveu:
Dear all:
Is there a function can decrypt md5 ??
I don't have any bad ideas.
I just want to know whether md5 can be decrypted or not.
--
Brad
------------------
The md5 hash is not a codification, but, yes, a validation key.
In this way, it cannot be decoded!
It only can be used to validate data, like a signature.
-----
zerof


I don't think this explains why it cannot be decodified, one thing does not result from the other.

An analogy of why it cannot be decodified is thinking of the MD5 as the remainder of a division. Even if you know the divisor and the remainder, there are many numbers that could have produced that result. The remainder or modulo operation loses information thus the original cannot be reconstructed. It is a one way operation, while the same number will always produce the same MD5, many numbers can be the origin of that result and which one was it cannot be guessed. While dividing by 2 will only give you reminders of 0 and 1 for every number, the result of Md5 produces a very good variety of results with a good spread of values over the whole range of possible results.

Satyam

--- End Message ---
--- Begin Message ---
Satyam escreveu:
An analogy of why it cannot be decodified is thinking of the MD5 as the remainder of a division. Even if you know the divisor and the remainder, there are many numbers that could have produced that result. The remainder or modulo operation loses information thus the original cannot be reconstructed. It is a one way operation, while the same number will always produce the same MD5, many numbers can be the origin of that result and which one was it cannot be guessed. While dividing by 2 will only give you reminders of 0 and 1 for every number, the result of Md5 produces a very good variety of results with a good spread of values over the whole range of possible results.
Satyam
----
        
You are absolutely correct. What I wanted to say is that hash md5 does not have to be used to encrypt nothing, therefore, this is not its purpose.
------
ex-corde,
zerof

--- End Message ---
--- Begin Message ---
On Mon, 23 Oct 2006 16:52:54 -0500, Richard Lynch wrote:

> On Fri, October 20, 2006 11:40 am, Richard Lynch wrote:
> Changing the gateway to the one that NATs fixed things.

Good you got things fixed!

> PS
> On another fun job this weekend...
> NOTE TO SELF:  Always check to make sure nobody kicked the wall wart
> loose from the power strip before you waste an hour trying to fix your
> boss' Win98 2Ed. computer after he claims that the whole Internet is
> "down"
> Every damn change to the IP/netconfig required re-inserting the damn
> OS CD and re-booting!  What the hell is up with that?
> No wonder I told him I was no longer supporting that box five years
> ago...

Since we're OT here anyway: The older the Windows get, the more often you
need to reboot. That's where this joke came from: "Windows detected you
moved the mouse cursor. Please restart Windows for the changes to take
effect". Win98 particularly sucks with that, but Win/2000 and WinXP are a
lot better, but then again never as good as Linux. I only need to reboot
after upgrading my kernel :)

Ivo

--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-10-23 16:34:16 +0100:
> > >>It appears that it could be because the user that runs the scripts is
> > >>not allowed to. When I run them on the commandline, I run them as the
> > >>root user.

    that's very simple to check (man su)

> > yes I know of CRONtabs but wont this still leave us with the user
> > permission of running mysqldump? because essentially it will still be a
> > PHP file to run the shell command to create the dump file?

    Are you concerned about what user it runs as or what language
    it's written in?

> No, cron will typically run as root. You don't need to involve PHP.
 
    How are those two things connected at all in the first place?

> It looks to me as if you are trying to use web scripting (PHP) to do the
> sysadmin on your server, for which other methods are more suitable.

    Those would be? What makes PHP unsuitable for non-web programming?

    "Don't write the SMTP server in C, that's only for text editors."

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

--- End Message ---
--- Begin Message ---
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-10-23 16:34:16 +0100:
It appears that it could be because the user that runs the scripts is
not allowed to. When I run them on the commandline, I run them as the
root user.

    that's very simple to check (man su)

yes I know of CRONtabs but wont this still leave us with the user
permission of running mysqldump? because essentially it will still be a
PHP file to run the shell command to create the dump file?

    Are you concerned about what user it runs as or what language
    it's written in?

No, cron will typically run as root. You don't need to involve PHP.
How are those two things connected at all in the first place?

It looks to me as if you are trying to use web scripting (PHP) to do the
sysadmin on your server, for which other methods are more suitable.

    Those would be? What makes PHP unsuitable for non-web programming?

I think the point was php doesn't *need* to be used for everything - use the best tool for the job.

mysqldump is provided on the system and doesn't need to be called through php - what's the point of doing it that way?

I use php for non-web programming at times when I can't find something else to do what I want.. most of the time though there's a tool already out there somewhere that does exactly what I want already (for sys admin tasks).

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-10-24 17:58:45 +1000:
> Roman Neuhauser wrote:
> ># [EMAIL PROTECTED] / 2006-10-23 16:34:16 +0100:
> >>It looks to me as if you are trying to use web scripting (PHP) to do the
> >>sysadmin on your server, for which other methods are more suitable.
> >
> >    Those would be? What makes PHP unsuitable for non-web programming?
> 
> I think the point was php doesn't *need* to be used for everything - use 
> the best tool for the job.

    IMO the post I argued was equating PHP with web scripting which is
    something else from what you're saying. Besides that you're right of
    course. It's just that I can see how PHP could be the best tool for
    this job: if your only tool is a hammer...
 
> mysqldump is provided on the system and doesn't need to be called 
> through php - what's the point of doing it that way?

    You might want to have some logic around the mysqldump. I would
    write such things in a combination of POSIX sh and make, but that's
    just my taste.
 
> I use php for non-web programming at times when I can't find something 
> else to do what I want.. most of the time though there's a tool already 
> out there somewhere that does exactly what I want already (for sys admin 
> tasks).

    Lucky! ;)

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

--- End Message ---
--- Begin Message ---
Don't top-post.

# [EMAIL PROTECTED] / 2006-10-23 20:35:16 -0500:
> On 10/23/06, tedd <[EMAIL PROTECTED]> wrote:
> >At 8:42 PM +0100 10/23/06, Stut wrote:
> >>Rob Kritzer wrote:
> >>>Is it possible to FTP a folder and all it's content? I can do a
> >>>file at a time, but not a folder.
> >>>
> >>>Also there is times when I will not know the folder name, so I
> >>>would like it to just upload everything it finds in the folder I
> >>>set.
> >>>
> >>>Is this possilbe?
> >>
> >>Yes[1][2].
> >>
> >>[1] http://catb.org/~esr/faqs/smart-questions.html
> >>[2] There is no function to upload a folder, but it's quite easy to
> >>code. Check out http://php.net/glob and/or http://php.net/readdir
> >
> >Perhaps I'm confused (certainly could be), but I think the OP is
> >asking for a way to upload multiple files from a desktop folder to a
> >server (client-side to sever-side) by just selecting the desktop
> >(client-side) folder.
>
> Yes Tedd,
> 
> This is what I am having trouble with, I can see where you can upload
> each file, but all I really need it to do is take the contents of a
> folder and upload everything it finds in the directory.

    This is unrelated to PHP.

    And please:

    1. You asked about "FTPing" whole directories.
    2. You meant to ask about a feature missing from your browser that
       would allow you to mark whole directories for upload.

    "FTP a folder" is already pretty vague but the second problem makes
    this moot anyway. Do read the catb.org reference carefully.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

--- End Message ---
--- Begin Message ---
At 8:35 PM -0500 10/23/06, Rob Kritzer wrote:
Yes Tedd,

This is what I am having trouble with, I can see where you can upload each
file, but all I really need it to do is take the contents of a folder and
upload everything it finds in the directory.

Rob

Rob:

I understand what you're trying to do, and it _is_ php related -- ignore the troll.

Richard and Stut provided reference to the solution, namely:

http://us2.php.net/sockets

I have not done this myself, but I think the idea* is to have your server-side php script communicate with a your client-side php script via socket functions. As you can see, this takes two scripts -- one server-side and the other client-side. If you cannot set-up php on both ends, then you are left with uploading only one file at a time via a server-side php script.

hth's

tedd


* Gang -- please correct me if I'm wrong.
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
jekillen wrote:
> Hello again;
> I'm wondering if it is possible to create an $_ENV var with a php
> script running under a web server. I'm not sure where to look
> in the manual or other documentations for this. Isn't there a
> set_env() function or something like it? (would apply to php 4 0r 5x)

http://php.net/set_env
http://php.net/mailinglist_credit_depletion

> Thanks in advance.

<VirtualHost _default_:80>
        #blablablabla

        #use rewrite engine to determine/set stuff that ends up in $_SERVER
        RewriteEngine   On
        RewriteLogLevel 0
        RewriteMap      dom2ver         
txt:/usr/local/beeldspraak/files/bcms/rewritemap/dom2ver.txt

        RewriteRule     ^.*$            -       
[C,E=LIB_VERSION:${dom2ver:%{SERVER_NAME}|${dom2ver:LIB_DEFAULT}}]
        RewriteRule     ^.*$            -       
[C,E=VHOSTS_ROOT:/var/www/vhosts]
</VirtualHost>
> JK
> 

--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-10-23 15:07:29 -0500:
> i) Does the language provide a way to generate a private or
> local class that is accessible only within another function
> or a parent class.

    no

> Does PHP 5 supply a good way to generate a little utility class
> without polluting the public namespace?

    no

> Or are local variables in functions, class methods and class
> properties the only entities that can be hidden from public access?

    yes
 
> ii) Suppose I would like to be able generate any of several
> classes at runtime, for which constructor interfaces are the
> same. These might, for example, be specialized subclasses of
> a common parent. Based on the idea of a variable variable,
> I am tempted to try to replace the class name by a variable,
> as in
> 
>     $object = new $class_name_variable($param1,$param2,....)

    that's even an idiom, although I'd urge you to use

    try {
        $rc = new ReflectionClass($class_name_variable);
        $object = $rc->newInstance($param1, $param2);
        // ...
    } catch (ReflectionException $e) {
        // handle it
    }

    since $o = new $cls may result in fatal error.

> Is this legal PHP 5?

    hard to tell, the only thing that defines "legal" PHP is the grammar
    implementation (there's no spec). other than that... it's worked
    for years, probably will.

>     $object_instance->$property_name_variable
>     $object_instance->$method_name_variable()
 
    both work

> The idea of a 'variable variable' name seems quite useful,
> but I'm not sure how general the concept is. Is there a
> well-defined rule for when the parser will accept a string
> value of a variable as a replacement for a literal
> identifier. If so, is the rule documented?

    if it's not in http://php.net/manual/en/langref.php, then no.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

--- End Message ---
--- Begin Message ---
Hi all:

Sorry if this question become a very simple but i'm getting errors when i
try to connect to MySQL Server.
I setup the PHP correctly..As example I run <?php phpinfo(); ?> from one web
site I have been created.
Then testing MySQL server with this simple code

<?php
$link = mysql_connect('myserver', 'myuser', 'mypass');
if (!$link) {
   die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

i got this error

*Fatal error*: Call to undefined function mysql_connect() in *
D:\WEB\aplicaciones\TestPHP\testmysql.php* on line *2*


Any Help please ?

best regards

--
MSc.Hassan Arteaga Rodríguez
Microsoft Certified System Engineer
IT Specialist.
ColdFusion & .NET Programmer

--- End Message ---
--- Begin Message ---
Doesn't look like you have mysql support compiled with PHP.





--
http://www.web-buddha.co.uk

--- End Message ---
--- Begin Message ---
I expect this is because you haven't installed the MySQL extension. Look at
the output from phpinfo() - there should be a section called MySQL. If it's
not there, you haven't got the MySQL extension installed.

Edward

> -----Original Message-----
> From: Hassan Arteaga Rodriguez [mailto:[EMAIL PROTECTED]
> Sent: 24 October 2006 11:39
> To: php-general@lists.php.net
> Subject: [PHP] I'm newbie in PHP
>
>
> Hi all:
>
> Sorry if this question become a very simple but i'm getting errors when i
> try to connect to MySQL Server.
> I setup the PHP correctly..As example I run <?php phpinfo(); ?>
> from one web
> site I have been created.
> Then testing MySQL server with this simple code
>
> <?php
> $link = mysql_connect('myserver', 'myuser', 'mypass');
> if (!$link) {
>     die('Could not connect: ' . mysql_error());
> }
> echo 'Connected successfully';
> mysql_close($link);
> ?>
>
> i got this error
>
> *Fatal error*: Call to undefined function mysql_connect() in *
> D:\WEB\aplicaciones\TestPHP\testmysql.php* on line *2*
>
>
> Any Help please ?
>
> best regards
>
> --
> MSc.Hassan Arteaga Rodríguez
> Microsoft Certified System Engineer
> IT Specialist.
> ColdFusion & .NET Programmer
>
>

--- End Message ---
--- Begin Message ---
        If you don't have mysql support built in your PHP compilation, check
your php.ini file (you see its location in phpinfo()), go to ;Windows
Extensions part and check the line

extension=php_crack.dll

to be uncommented.

        Andy

Hassan Arteaga Rodriguez wrote:
> Hi all:
> 
> Sorry if this question become a very simple but i'm getting errors when i
> try to connect to MySQL Server.
> I setup the PHP correctly..As example I run <?php phpinfo(); ?> from one
> web
> site I have been created.
> Then testing MySQL server with this simple code
> 
> <?php
> $link = mysql_connect('myserver', 'myuser', 'mypass');
> if (!$link) {
>    die('Could not connect: ' . mysql_error());
> }
> echo 'Connected successfully';
> mysql_close($link);
> ?>
> 
> i got this error
> 
> *Fatal error*: Call to undefined function mysql_connect() in *
> D:\WEB\aplicaciones\TestPHP\testmysql.php* on line *2*
> 
> 
> Any Help please ?
> 
> best regards
> 

--- End Message ---
--- Begin Message ---
On Tue, 2006-10-24 at 14:15 +0300, Andrei wrote:

> extension=php_crack.dll
> 
> to be uncommented.

What does the CrackLib have to do with MySQL??? Surely you meant the
php_mysql.dll extension? Oh, and if you are on a real operating system,
you will enable the extension with a .so extension, not a .dll

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

--- End Message ---
--- Begin Message ---
        Ah sorry, I ment php_mysql.dll, forgot to change the name in copy&paste
(as mine is builtin).
        The guy which wrote said:


[QUOTE]
i got this error

*Fatal error*: Call to undefined function mysql_connect() in *
D:\WEB\aplicaciones\TestPHP\testmysql.php* on line *2*
[/QUOTE]

        So he's on Window$ (not a real operating system indeed :p).

Andy

Paul Scott wrote:
> On Tue, 2006-10-24 at 14:15 +0300, Andrei wrote:
> 
>> extension=php_crack.dll
>>
>> to be uncommented.
> 
> What does the CrackLib have to do with MySQL??? Surely you meant the
> php_mysql.dll extension? Oh, and if you are on a real operating system,
> you will enable the extension with a .so extension, not a .dll
> 
> --Paul
> 
> 
> 
> ------------------------------------------------------------------------
> 
> All Email originating from UWC is covered by disclaimer 
> http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

--- End Message ---
--- Begin Message ---
Dear all,

I am trying to create a zipping mechanism that allows the user to select a
number of files from a list; these files are then zipped and downloaded to
the user's machine. I presently have:

$zip = new ZipArchive();                
$filename = $zipfinalpath."tutor/zipfiles/".$tutorzipfile;
                
if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) {
        exit("cannot open <$filename> \n");
}
else {
        $loopCount = 0;
        foreach ($filelisttozip as $i => $fileValue) {  
                //the 
                $zip->addFile($fileValue,$filenamelisttozip[$loopCount]);
                $loopCount ++;
        }
}
                                
$zip->close();

In my test sample of files I have the following file types:

.doc
.zip
.jpg
.doc

And the zip mechanism works when I ask for all or omit any of the files from
the list, except when I omit the zip file! E.g.

1. Asking for all works
2. Asking for .zip,.jpg,.doc works
3. Asking for .doc,.zip works
4. Asking for .doc,.jpg,.doc doesn't work - 7-zip tells me that the file is
not support archive and windows tells me the Compressed(folder) is invalid
or corrupted!

I have used different zip files to make sure that it's not the file, but all
to no avail. . .but if I add:

$zip = zip_open($filename);
while ($zip_entry = zip_read($zip)) {
      $file = basename(zip_entry_name($zip_entry));
                        
        echo 'a'.$file.'<br>';
}
zip_close($zip);

to the bottom of my page it correctly displays, on screen, the 3 files I
expect to be in the zip file.

Any help would be very gratefully received as this is driving me mad!!!

Matt

--- End Message ---
--- Begin Message ---
Richard Lynch wrote:
I think you want that HTTP_RAW_POST_DATA setting thingie that's in the
manual...

I tried HTTP_RAW_POST_DATA with same result as php://input did. When form enctype is "url-form-encoded" they both works fine, but when enctype is "multipart/form-data" they both are empty. I need second one to be able to upload files.

In this case HTTP_RAW_POST_DATA are set to "test1=&test2=&upload=" when you submit the form:

        <form action="" method="post">
                <input name="test1" />
                <input name="test2" />
                <input type="file" name="upload" />
                <input type="submit" />
        </form>

In this case HTTP_RAW_POST_DATA is empty:

        <form action="" method="post" enctype="multipart/form-data">
                <input name="test1" />
                <input name="test2" />
                <input type="file" name="upload" />
                <input type="submit" />
        </form>

--- End Message ---
--- Begin Message ---
You're right - i dont know if there is even a standards body that would
cover something like this. I am assuming, along with that answer, that none
of the popular php site search tools have implemented it yet. Ill see if i
can throw something into one of the more common scripts...

Russ

On 10/23/06, Chris <[EMAIL PROTECTED]> wrote:

Russell Jones wrote:
> Does anyone know if any of the PHP Site-Search tools have implemented
the
> new #privacy search standard (http://www.poundprivacy.org). Looking to
> install a new site-search and I would really like to install something
that
> is compliant...

Don't know of any off hand but that site looks like a campaign to make
something happen, not a standard. Two completely different things.

"Pound Privacy" is a *campaign* to create the first standard for search
engine query privacy.

--
Postgresql & php tutorials
http://www.designmagick.com/


--- End Message ---
--- Begin Message ---
Chris asked:

 Is there a way to use a php FTP function to FTP the file out of the
 buffer to a directory on the server, or some other way to write a file
 to a folder without making that folder 0777?

What about changing the folder's permission to 0777 during the operation and then changing it back after? That's what I have to do with my virtual host.

The following is a demo I wrote that you might want to review.

hth's

tedd

---

// how to call the function

<?php

$ftp_path = "public_html/rw/";  // note the ftp path
$theDir = "tmp";
$theFile ="text.txt";
FtpPerms($ftp_path, $theDir, $theFile);
?>


// the function

<?php
// create directory and change perms via FTP connection

function FtpPerms($path, $theDir, $theFile)
{

$server='ftp.yourdomain.com'; // ftp server
$connection = ftp_connect($server); // connection

$user = "you";
$pass = "yourpassword";
$result = ftp_login($connection, $user, $pass); // login to ftp server

if ((!$connection) || (!$result))
{
echo("No connection<br/>");
return false;
exit();
}
else
{
echo("Made connection<br/>");
ftp_chdir($connection, $path); // go to destination dir

echo("Change Perms<br/>");
$str="CHMOD 0755 " . $theDir; // change perms for dir (note the space after 0775 )
ftp_site($connection, $str);
echo("$str<br/>");

$filename = "$theDir/$theFile";
$contents = "This is the contents of the file.";

echo("<hr><br/>Writing file <br/><br/>");

$file = fopen( $filename, "w" );
fwrite( $file, $contents);
fclose( $file );
chmod($filename,0777);

echo("Change Perms<br/>");
$str="CHMOD 0600 " . $theDir; // change perms back for dir
ftp_site($connection, $str);
echo("$str<br/>");


echo("Close connection<br/>");
ftp_close($connection); // close connection
}

}
?>
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Greetings all:

This is a general etiquette question.

I have a job posting for a junior PHP programmer. Are there any of the PHP
mailing lists to which it would be appropriate to post that?

If not, can anyone recommend a good place to post, especially a place that
might be read by many people with specifically PHP skills?

Thanks --

-- 
Steve Lane
Vice President
Soliant Consulting, Inc.
(610) 788-2124 (V)
(847) 890-6029 (F)

--- End Message ---
--- Begin Message ---
This is a general etiquette question.
I have a job posting for a junior PHP programmer. Are there any of the PHP
mailing lists to which it would be appropriate to post that?
If not, can anyone recommend a good place to post, especially a place that
might be read by many people with specifically PHP skills?

This is exactly what you are looking for:

http://finance.groups.yahoo.com/group/phpjobs

thnx,
Chris
--- End Message ---
--- Begin Message ---
> > This is a general etiquette question.
> > I have a job posting for a junior PHP programmer. Are there any 
> of the PHP
> > mailing lists to which it would be appropriate to post that?
> > If not, can anyone recommend a good place to post, especially a 
> place that
> > might be read by many people with specifically PHP skills?
> 
> This is exactly what you are looking for:
> 
> http://finance.groups.yahoo.com/group/phpjobs
> 

Except that it only has three messages from May 2001 :)

Personally, I keep an eye on http://www.thinkvitamin.com/jobs/

Edward

--- End Message ---
--- Begin Message ---
Steve Lane wrote:
> Greetings all:
> 
> This is a general etiquette question.

this is the [php]general mailing list. some say
etiquette here is generally lacking :-)

> 
> I have a job posting for a junior PHP programmer. Are there any of the PHP
> mailing lists to which it would be appropriate to post that?

a short message here (with a link to full details) shouldn't bother
anyone too much. it wouldn't be the first post of its kind here and given the
fact that topics seem to range from beerbrewing kits** to javascript libraries
(with the occasional php question for good measure) I see no reason
why a php-job post could be considered bad form... besides you are looking for
php help!

rgds,

**you know who you are ;-)

> 
> If not, can anyone recommend a good place to post, especially a place that
> might be read by many people with specifically PHP skills?
> 
> Thanks --
> 

--- End Message ---
--- Begin Message ---
Thanks Jochem. If I can't find a junior PHP dev, it sounds as though I'll at
least be able to improve my beer technique :-)

-- SGL


On 10/24/06 10:02 AM, "Jochem Maas" <[EMAIL PROTECTED]> wrote:

> Steve Lane wrote:
>> Greetings all:
>> 
>> This is a general etiquette question.
> 
> this is the [php]general mailing list. some say
> etiquette here is generally lacking :-)
> 
>> 
>> I have a job posting for a junior PHP programmer. Are there any of the PHP
>> mailing lists to which it would be appropriate to post that?
> 
> a short message here (with a link to full details) shouldn't bother
> anyone too much. it wouldn't be the first post of its kind here and given the
> fact that topics seem to range from beerbrewing kits** to javascript libraries
> (with the occasional php question for good measure) I see no reason
> why a php-job post could be considered bad form... besides you are looking for
> php help!
> 
> rgds,
> 
> **you know who you are ;-)
> 
>> 
>> If not, can anyone recommend a good place to post, especially a place that
>> might be read by many people with specifically PHP skills?
>> 
>> Thanks --
>> 
> 

--- End Message ---
--- Begin Message ---
I've seen PHP/programming job postings on Craig's List. I was kind of
shocked by it, but nonetheless...

David

--- End Message ---
--- Begin Message ---
Steve Lane wrote:
> Thanks Jochem. If I can't find a junior PHP dev, it sounds as though I'll at
> least be able to improve my beer technique :-)

lol. we can also do 'drink-away-your-sorrows' in OO and procedural styles.

> 
> -- SGL
> 
> 
> On 10/24/06 10:02 AM, "Jochem Maas" <[EMAIL PROTECTED]> wrote:
> 
>> Steve Lane wrote:
>>> Greetings all:
>>>
>>> This is a general etiquette question.
>> this is the [php]general mailing list. some say
>> etiquette here is generally lacking :-)
>>
>>> I have a job posting for a junior PHP programmer. Are there any of the PHP
>>> mailing lists to which it would be appropriate to post that?
>> a short message here (with a link to full details) shouldn't bother
>> anyone too much. it wouldn't be the first post of its kind here and given the
>> fact that topics seem to range from beerbrewing kits** to javascript 
>> libraries
>> (with the occasional php question for good measure) I see no reason
>> why a php-job post could be considered bad form... besides you are looking 
>> for
>> php help!
>>
>> rgds,
>>
>> **you know who you are ;-)
>>
>>> If not, can anyone recommend a good place to post, especially a place that
>>> might be read by many people with specifically PHP skills?
>>>
>>> Thanks --
>>>
> 

--- End Message ---
--- Begin Message ---
Steve Lane wrote:
Greetings all:

This is a general etiquette question.

I have a job posting for a junior PHP programmer. Are there any of the PHP
mailing lists to which it would be appropriate to post that?

If not, can anyone recommend a good place to post, especially a place that
might be read by many people with specifically PHP skills?


This list is fine to post that sort of thing, at least in my view.
However, if you're looking for someone local, you might do better
posting it to the mailing list of your local LUG.

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--- End Message ---

Reply via email to