Posts by ravenwill

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says

Hi,

Your looking for php $_GET

In your case it would be:

$onum = $_GET['onum'] ;
$balance = $_GET['balance'];

You can then use the variables $onum and $balance as you wish

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says

Sorry yes my mistake “w” truncates the file, you need to use “c” which doesn’t truncate and puts pointer at the start of file

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says

Hi Tim,

Glad I could help. Good to see your making progress!

At the moment you have the “a” flag set on your fwrite command, this puts the pointer at the end of the file, so therefore in your case after the closing </items> tag.

You will need to move the pointer using fseek, but first you will need to change the “a” to “w” as the “a” flag doesn’t support fseek.

“w” moves the pointer to the start of the file but then allows you to use fseek to move it around.

Here is the documentation for fseek.

http://www.php.net/manual/en/function.fseek.php

I’d imagine in your case you would want to use SEEK _END for the whence parameter and then move backwards to the first newline (PHP_EOL) which in your file would be the line immediately before </items>

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says

No just test whether its undefined.

So for mozilla you would say:

if(document.getElementById(id).style.MozTransform != “undefined”){ var rotation = document.getElementById(id).style.MozTransform }

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says

What browser are you testing that in. I know it sounds obvious but that will be undefined in any browser other then firefox/mozilla

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says

Hiya,

Yep ajax is the way, your converting from client side to server side code.

You could easily make a javascript value from php by echoing out script but not the other way around

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says
o-transform:rotate(20deg)    <--  OTransform = ‘rotate(20deg)';

-ms-transform:rotate(20deg)  <-- msTransform = 'rotate(20deg)';

Its only IE 9 that supports rotation through this method though. The other MS method you mention for older IE browsers is based on a matrix I think so is alot more complex.

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says

Hi,

Very basic example, you can do alot more than this.

$file = fopen('myXML.xml', 'a') // Open the file with write permissions, put pointer at the end of the file, if file doesn't exist this creates it

$newXML = '<item type="image" src="1.jpg" autoplay="true" controls="false" \/>\n';

fwrite($file, $newXML); // Writes new string to file
fclose($file); // Closes file

Again this is very basic you would want to do checks and validation and also maybe change the pointer position

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says

Hi,

For mozilla its:

document.getElementById(id).style.MozTransform = ‘rotate(20deg)’;

and webkit browsers:

document.getElementById(id).style.webkitTransform = ‘rotate(20deg)’;

But be aware that this is not cross browser supported, currently it is only newer versions of mozilla and webkit browsers that support this, older versions without css3 won’t.

Also although I haven’t tested it may cause issues with passwords/text selection etc

260 posts
    Has been part of the Envato Community for over 5 years Has referred 1+ members Has sold $5,000+ on Envato Market Has collected 10+ items on Envato Market
+4 more
ravenwill says

Hi Tim,

What language are you currently using?

This is fairly straight forward with php using fopen/read/write etc but largely depends on the complexity of the structure of your xml

You could also parse the xml in javascript, but ultimately to create a file from the data you will need to use a server side language.

by
by
by
by
by
by