Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > iPhone Developer Exchange

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2008, 07:54 AM
jowo
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 175
Rep Power: 11
jowo is on a distinguished road
Default [MobileSafari] view local file with Beta 3

is it possible to view local file (pdf) in safari with beta3? thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 12:04 PM
eddy123
Status: Offline
Respected Member
 
Join Date: Aug 2007
Posts: 757
Rep Power: 0
eddy123 is on a distinguished road
Default

Since I cannot load the Installer, I am not sure whether it is possible for me to install lighthttpd in beta 3 firmware.

But one thing is that Safari can view common document files including pdf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 06:34 AM
jowo
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 175
Rep Power: 11
jowo is on a distinguished road
Default

safari does not allow me to open my pdf because it is a local file. is there a hack or work around in order to view local pdf with safari? thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 04-18-2008, 09:00 AM
javacom's Avatar
javacom
Status: Offline
Developer
 
Join Date: Mar 2008
Posts: 304
Rep Power: 23
javacom will become famous soon enoughjavacom will become famous soon enough
Default

Quote:
Originally Posted by eddy123 View Post
Since I cannot load the Installer, I am not sure whether it is possible for me to install lighthttpd in beta 3 firmware.

But one thing is that Safari can view common document files including pdf
Yes you can install lighttpd and also PHP in beta 3, but you have to do manually download them using wget in iPhone , or ssh/scp to iPhone.

If you want to disable/enable the lighttpd, you have to do it in a shell script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 01:50 AM
jowo
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 175
Rep Power: 11
jowo is on a distinguished road
Default

Quote:
Originally Posted by javacom View Post
Yes you can install lighttpd and also PHP in beta 3, but you have to do manually download them using wget in iPhone , or ssh/scp to iPhone.

If you want to disable/enable the lighttpd, you have to do it in a shell script.
with no Installer on 2.0 beta, where can i download lighttpd? and do i just ssh it into Applications folder on my iPhone? thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 04-19-2008, 01:39 PM
volkspost
Status: Offline
iPhone Moderator
 
Join Date: Aug 2007
Posts: 3,611
Rep Power: 215
volkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to all
Default

Quote:
Originally Posted by jowo View Post
safari does not allow me to open my pdf because it is a local file. is there a hack or work around in order to view local pdf with safari? thanks
What eddy123 was trying to explian is that safari is able to open and display PDF among other formats. To use the feature you have to send an E-Mail with the attached PDF to your own (IMAP) account.
I set up an IMAP folder named docs-on-the-go and moved it on my pc to that folder. On the iPhone connect to your E-mail account, goto that folder and open the mail/attached PDF. It's displayed, you can scroll pages zoom etc. Even better, once done that, the PDf will even be available (same way) when you are oggline (no Wi-Fi no EDGE).

volkspost
__________________
Read the stickies and search the forum before posting!
If you want to become a Hackint0sh supporter click here
----------
iPhone 3GS factory unlocked (3.1.2; Blackra1n, Cydia, OpenSSH, custom 3.0 ipcc file (no sig), tethering hack by Dev team, 32 GB)
iPhone 3G (3.0.1; Redsn0w 0.8, Cydia, OpenSSH) 16 GB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #7 (permalink)  
Old 04-20-2008, 12:00 PM
jowo
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 175
Rep Power: 11
jowo is on a distinguished road
Default

Quote:
Originally Posted by volkspost View Post
What eddy123 was trying to explian is that safari is able to open and display PDF among other formats. To use the feature you have to send an E-Mail with the attached PDF to your own (IMAP) account.
I set up an IMAP folder named docs-on-the-go and moved it on my pc to that folder. On the iPhone connect to your E-mail account, goto that folder and open the mail/attached PDF. It's displayed, you can scroll pages zoom etc. Even better, once done that, the PDf will even be available (same way) when you are oggline (no Wi-Fi no EDGE).

volkspost

Mail (beta 3) can't read multi-pages pdf. my solution for now is to convert my pdf into jpeg using Adobe Acrobat or Apple Preview. then might them in iPhoto
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 04-21-2008, 10:01 AM
javacom's Avatar
javacom
Status: Offline
Developer
 
Join Date: Mar 2008
Posts: 304
Rep Power: 23
javacom will become famous soon enoughjavacom will become famous soon enough
Default

Quote:
Originally Posted by jowo View Post
with no Installer on 2.0 beta, where can i download lighttpd? and do i just ssh it into Applications folder on my iPhone? thanks
You can download lighttpd from

http://repo.smxy.org/iphone-apps/zip...d-1.4.17-2.zip

use this command to download using wget
Code:
wget --header "User-Agent: CFNetwork/152.4" http://repo.smxy.org/iphone-apps/zips/lighttpd-1.4.17-2.zip
You can refer to the installation script from the Installer, to install lighttpd
Code:
			<key>install</key>
			<array>
				<array>
					<string>CopyPath</string>
					<string>Library</string>
					<string>/Library</string>
				</array>
				<array>
					<string>CopyPath</string>
					<string>usr</string>
					<string>/usr</string>
				</array>
				<array>
					<string>CopyPath</string>
					<string>var/log</string>
					<string>/var/log</string>
				</array>
				<array>
					<string>IfNot</string>
					<array>
						<array>
							<string>ExistsPath</string>
							<string>/var/root/Sites</string>
						</array>
					</array>
					<array>
						<array>
							<string>CopyPath</string>
							<string>var/root</string>
							<string>/var/root</string>
						</array>
					</array>
				</array>
				<array>
					<string>Exec</string>
					<string>/bin/launchctl load /Library/LaunchDaemons/com.amcgregor.lighttpd.plist</string>
				</array>
			</array>

Last edited by javacom; 04-21-2008 at 10:04 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 04-21-2008, 02:33 PM
underwaterdub's Avatar
underwaterdub
Status: Offline
Member
 
Join Date: Mar 2008
Posts: 58
Rep Power: 5
underwaterdub is on a distinguished road
Default

What do you mean by:
"You can refer to the installation script from the Installer, to install lighttpd"???

What exactly do I have to do to get lighttpd installed?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #10 (permalink)  
Old 04-22-2008, 07:59 AM
javacom's Avatar
javacom
Status: Offline
Developer
 
Join Date: Mar 2008
Posts: 304
Rep Power: 23
javacom will become famous soon enoughjavacom will become famous soon enough
Default

Quote:
Originally Posted by underwaterdub View Post
What do you mean by:
"You can refer to the installation script from the Installer, to install lighttpd"???

What exactly do I have to do to get lighttpd installed?

I suppose you know and understand the install scripts (from Installer) that I attached. Just follow the scripts to install.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +2. The time now is 05:55 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!