daniel7912's Profile
Reputation: 1
Neutral
- Group:
- Members
- Active Posts:
- 207 (0.25 per day)
- Joined:
- 24-February 10
- Profile Views:
- 3,524
- Last Active:
Jul 05 2011 10:29 AM- Currently:
- Offline
My Information
- Member Title:
- Dedicated Member
- Age:
- 23 years old
- Birthday:
- November 24, 1988
- Gender:
-
Male
- Location:
- Wisbech, Cambridgeshire
- Interests:
- Sports, Web Design, Music
Contact Information
- E-mail:
- Private
- MSN:
-
daniel7912@hotmail.com
- Website URL:
-
http://www.dh-designs.co.uk
Users Experience
- Experience:
- Intermediate
- Area of Expertise:
- Designer/Coder
Posts I've Made
-
In Topic: How much would you charge?
04 July 2011 - 11:57 AM
-
In Topic: How much would you charge?
04 July 2011 - 11:50 AM
I'm not really sure, it would probably take me a couple of months at least to get it going, and a normal website I would probably charge around £700-800 for, but at that rate it would be over £10,000 which seems alot for a website -
In Topic: Wordpress events booking plugin
01 July 2011 - 04:03 PM
-
In Topic: How to install/use phpseclib?
22 June 2011 - 03:02 PM
SniderDK, on 22 June 2011 - 02:47 PM, said:yes, don't see why not
managed to get it working
Haven't used a lot of these PHP functions before but it's good to learn. Here's what I used in the end so hopefully it will help people in the future:
<?php include('Net/SFTP.php'); $image = 'logo.jpg'; //image to be uploaded - needs to be in the same directory as this script e.g. just logo.jpg $image_contents = file_get_contents($image); // location of image to be uploaded $sftp = new Net_SFTP('***.**.**.**'); // server address to connect to if (!$sftp->login('***', '***')) { // server login details exit('Login Failed'); } echo $sftp->pwd(); $sftp->put($image, $image_contents); // upload a file $image with the image contents. ?>
Couldn't get SSH working in the end so I tried SFTP and that was much easier. -
In Topic: How to install/use phpseclib?
22 June 2011 - 02:32 PM
SniderDK, on 22 June 2011 - 02:13 PM, said:you would be better of using the shh2 package on PECL http://pecl.php.net/package/ssh2
copying files from server > server is actually really easy with it!
http://uk.php.net/ma...p-send-examples
hope you find that interesting
Command to run to install on linux (because its a beta package you have to specify the channel... it is 6 year old code so don't take the beta bit to seriously)
Thanks for your reply SniderDK. I'm actually running WAMPserver on Windows at the moment to test it out, could you explain how to use it on here please?
I tried SFTP as an alternative like this:
<?php include('Net/SFTP.php'); $sftp = new Net_SFTP('***.**.238.87'); if (!$sftp->login('media', '*****')) { exit('Login Failed'); } echo $sftp->pwd(); $sftp->put('test.txt', 'hello, world!'); ?>
and that creates a file called test.txt which contains the hello world writing, and this uploads to the server OK. Is it possible to upload an image using this method?
Friends
daniel7912 hasn't added any friends yet.
Help




Find My Content
Display name history
Comments
hosam alaa
24 Nov 2010 - 04:58Ben
24 Feb 2010 - 14:23