# Large html/php file in resources?

**URL:** <https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996>\
**Category:** RapidWeaver Classic\
**Created:** [January 18, 2016, 10:48am UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996 "2016-01-18T10:48:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lance](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/lance/32/2678_2.png) [@Lance](https://forums.realmacsoftware.com/u/Lance)\
**Post date:** [January 18, 2016, 10:48am UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996/1 "2016-01-18T10:48:14Z")

</div>

My php script on a HTML stack is now several hundred lines long and growing…  
I use TextWrangler to write and sadly the bit of the script I am working on is below the HTML page on RW and it won’t scroll down so I have to cut and paste the whole thing every time I want to publish.

Can I have an editable file in the resources and call it from my HTML page stack?

Please… thank you 🙂

---

<div class="post-metadata">

**Author:** ![Oscar](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oscar/32/80_2.png) [@Oscar](https://forums.realmacsoftware.com/u/Oscar)\
**Post date:** [January 18, 2016, 1:01pm UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996/2 "2016-01-18T13:01:16Z")

</div>

@Lance  
Did you try to integrate the code in a text stack or a paragraph stack, instead of in an HTML Stack?  
Maybe you can scroll better. Do not forget to ignore formatting.

I have no problems with scroll down in an HTML stack.

---

<div class="post-metadata">

**Author:** ![Lance](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/lance/32/2678_2.png) [@Lance](https://forums.realmacsoftware.com/u/Lance)\
**Post date:** [January 18, 2016, 9:11pm UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996/3 "2016-01-18T21:11:36Z")

</div>

Hi Oscar,

Yes tried a text stack but same problem.  
The lines of code exceed the size of the RW window and basically when I click on the stack to edit it, the code gets cut off at the bottom of the window with no way to scroll down. Quite annoying.

I might have to set it up as an include file and upload it separately.

I would add a screen grab but can’t see an attachment option here.

---

<div class="post-metadata">

**Author:** ![Oscar](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oscar/32/80_2.png) [@Oscar](https://forums.realmacsoftware.com/u/Oscar)\
**Post date:** [January 19, 2016, 8:28am UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996/4 "2016-01-19T08:28:02Z")

</div>

@Lance  
Here you can publish your images. Maybe you need to wait. New users can not publish images immediately. But you have joined Jan 7 !?

 ![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/f/f322546e391746679a576322ad840927238b8d83.png)

Perhaps this helps, when the file is on the server.  
`<a href="http://www.-----------.com/----/resources/php.html">Link to the file</a>`  
or this  
`<a href="%resource(php.html)%">Link to the file</a>`

But the file is not editable.

I have 600 lines of PHP code. There’s no problem.  
Which version of RW and Stack are you working on?

---

<div class="post-metadata">

**Author:** ![Oscar](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oscar/32/80_2.png) [@Oscar](https://forums.realmacsoftware.com/u/Oscar)\
**Post date:** [January 19, 2016, 9:10am UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996/5 "2016-01-19T09:10:56Z")

</div>

@Lance

When you saved the php file in TextWrangler as —.txt file, you have the complete php code in the browser window. Otherwise you see only a bunch of code.

[Look here!](http://www.oscar-schmid.ch/testsites/tesla/)

 ![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/3/3863dc7786cc504d5815a5101a6a323c79a21e78.png)

---

<div class="post-metadata">

**Author:** ![Lance](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/lance/32/2678_2.png) [@Lance](https://forums.realmacsoftware.com/u/Lance)\
**Post date:** [January 19, 2016, 10:07am UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996/6 "2016-01-19T10:07:30Z")

</div>

Hi Oscar,

I have attached 2 grabs. The first is when I click on the HTML stack to edit it. The bottom of the window is as far as I can scroll. You can see that there is quite a bit of code below.  
The second grab is after I toggle the Info pane… presto, I can now edit the whole script.

Not sure why that happens but at least there is a work around.

Cheers,  
Lance

 ![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/4/41168b251a829e57337f5b26eeaeddf8c1350d36.jpg)  
 ![](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/9/96e16b0ed0a85608967236df76d4be54b80f83a6.jpg)

---

<div class="post-metadata">

**Author:** ![Oscar](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oscar/32/80_2.png) [@Oscar](https://forums.realmacsoftware.com/u/Oscar)\
**Post date:** [January 19, 2016, 12:23pm UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996/7 "2016-01-19T12:23:32Z")

</div>

@Lance

The problem is known to me.  
I have this problem too, but only in RW 5.3.2, with Stacks 2, not with RW 6 and Stacks 3.  
There is another workaround 😉  
Enlarge the window of RapidWeaver, then all of the code appears.

---

<div class="post-metadata">

**Author:** ![Lance](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/lance/32/2678_2.png) [@Lance](https://forums.realmacsoftware.com/u/Lance)\
**Post date:** [January 19, 2016, 12:52pm UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996/8 "2016-01-19T12:52:57Z")

</div>

Pleased to hear that I’m not going mad 🙂

My RW version: Version 6.3.7 (15153)  
My stack version: 2.7.2 — maybe here is the issue - thought I upgraded!

Thank you for your support.

btw, do you know if the RealMac forum registration form is available as a stack?  
ie, the real time checking of an email address being available and valid, etc.

Many thanks,  
Lance

---

<div class="post-metadata">

**Author:** ![Oscar](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/oscar/32/80_2.png) [@Oscar](https://forums.realmacsoftware.com/u/Oscar)\
**Post date:** [January 19, 2016, 1:04pm UTC](https://forums.realmacsoftware.com/t/large-html-php-file-in-resources/4996/9 "2016-01-19T13:04:01Z")

</div>

> [@Lance](#):
>
> btw, do you know if the RealMac forum registration form is available as a stack?ie, the real time checking of an email address being available and valid, etc.

Unfortunately no information.  
I’m only a free moderator 😉
