Jump to content

uncleronin

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

uncleronin's Achievements

Member

Member (2/5)

0

Reputation

  1. >_< Python you say? Now that's a bugger - don't know anything about it! What is OOo and if it's open to python surely there must be a way to use the same wrapper thingy for php? Basically, PHP on linux = no easy way of manipulating .doc? Geh. My primary objective is to create and use a PHP script which takes an existing .doc file on the linux PC and edits it and emails it to the person performing whatever action. You can guess that this is web driven. The contents of the .doc depend on the user and the page. In any case, since the user doesn't actually upload any .doc's I've decided to just use .rtf *nods* and edit it like normal text docs. As a matter of interest - what does this python .doc script thing look like?
  2. Is it possible to edit a .doc file on linux? I know about doing it on Windows using COM but thats not much use on linux.
  3. I've tried using no-cache but not with must-revalidate. Will see what happens.
  4. Refreshing the page doesn't help. I've even gone so far as to prevent the actual page from caching but that doesn't do much either. Then again, images cache differently to pages. In IE the graphs refresh nicely but in FF the caching is handled differently so they dont refresh. I dunno, maybe FF has a cache setting somewhere but I have no idea how to force it to refresh pages. Maybe there's something in PHP which does this?
  5. I'm using a bunch of graphs all over my site to display various statistics. Some pages have lots, some have one. The big issue is that if I display the graphs for a particular page multiple times in a row (changing the parameters each time) the graphs don't refresh. Instead the same graphs are shown each time! Is this because of caching or some php setting or some apache setting (using apache2 btw)? Is there any way to get around this or to force the graphs to refresh?
  6. Alright. The thing is if I just simply state Session_Start() on every page E_NOTICE has a field day and starts telling me that a session has already been started. I know it gets handled automatically but E_NOTICE feels the need to make me fully aware of it. To circumvent this I'm assuming that you'll have to make use of some check for against the size of the Session array? As for $_POST['var'], if I had to catch it in an if statement every time it's used my code starts becoming messy and really, REALLY loses readability. At the moment I pass most of my $_POST['var'] as parameters in functions so if there is no such post variable then its not a problem. Also the only instances where these variables can be used is where a corresponding session variable is used and I already check that. I also check for null/nonset post variables in my page handlers so thats not an issue either. I guess its just the interpreters way of telling me to do these things 'properly' and in a very inconvenient manner. Would you recommend I try and adhere to the 'guidelines' used by the interpreter or just code normally and ignore them? As far as I can tell, unless the post variables are absolutely critical or can cause huge problems it really shouldn't be necessary to check if they have been set? I dunno, what do you guys with eperience say?
  7. Okay, I've been coding in PHP for a while now and I decided to enable the E_NOTICE setting in php.ini. Big mistake! I get all sorts of notices saying I'm a terrible coder and my CSS styles get messed up. Is this a problem with the PHP interpreter or what? If its me then how do I do the following: Use Session_Start() and not call it when a session is already active? (Just check the size of the session array?) Reference session variables without using $_SESSION? (Got a notice moaning about variable SESSION) Reference $_POST variables without using $_POST['Name']? (Notice about unreferenced index - it would be ridiculous to reference each post variable by its index because there are on average about 50 of the things) Keep my CSS styles without everything getting messed up? *sigh* I have already disabled E_NOTICE because otherwise the site becomes unusable but should I worry about something like this or just carry on like normal, aka the majority.
  8. Damn it but Internet Explorer 6- is crap! Why does it reload an entire .php page when an internal page hyperlink is clicked? It's s'pposed to only navigate within the page not the internet! Is there any way to force IE to stay within the page and NOT reload the entire page and THEN navigate to the rigth internal link?
  9. Thanks for the replies. The main issue was trying to use the same graphing.php page to generate all my graph images. I forgot to mention that I'm building my graphs and charts using jpgraph. I tried using basic session variables but because only the last values for the variables was used when the graphs were drawn, the same graph would be drawn multiple times. So then I was forced to use a session variable storing an array of graph values and then it worked using $_GET to get each graphs position in the array.
  10. *nudge bump* C'mon... I'm definately not the only person here who's used the GD library. I've got it up and runnning in any case. Using a session array and the querystring. If anyone wants the code let me know cause apparently this is something nobody knows about.
  11. I'm using the GD library to generate a bunch of graphs. I am trying to display these graphs inside <IMG> tags. The thing is I don't want to have a separate page for each graph. I also don't want to have to store the image anywhere. Temporarily or no. I also can't pass through parameters in the querystring either since they are bad for security and would otherwise be visible. Originally I tried: $graph = BuildBarGraph(Parameters); //This generates the actual graph image echo '<IMG src="'.$graph.'" />'; But this is a bugger because of the way GD builds its images. So I got messages saying must be before output, etc. I then tried: echo '<IMG src="'.BuildBarGraph(Parameters).'" />'; But that was the same thing in any case so that obviously didn't work >_< Then I tried: echo '<IMG>'.BuildBarGraph(Parameters).'</IMG>'; But got the same error again. I am really at a loss. To do this using the querystring or individual pages for each graph is simple but not very good because then there'll be tons of graph pages. Can anybody help me with or provide some form of alternative? This is driving me bloody nuts!
  12. Really? That would make life alot simpler! *rubs hands together* kinda sneaky but awesome
  13. >_< That sucks much. Its a pity I can't use Word docs but PDF is always cool. There's probably a huge number of helpful pdf stuff floating around. Shot for the input.
  14. ??? After less than 24 hours this was already at page 4! Bloody hell! *huuuge bump*
  15. I'm running Apache, PHP and MySQL on a linux box. I have a word document template. I want to replace certain text within that word document. Is this possible to do on Linux or can it only be done on Windows?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.