Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can I change PHP via flash?

New Here ,
Apr 20, 2008 Apr 20, 2008
I want to the a variable and put its content into a PHP file. (an existent PHP file)
For example, I got a var with "<test1234>" inside and I want to put his content into the PHP, witch making the inside of the PHP lo like this:
<test1234>

Is it possible?
TOPICS
ActionScript
927
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2008 Apr 20, 2008
yes, use loadvars to send and received data from a php file.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2008 Apr 20, 2008
Thanks for the help.
But this is not what I need.
I want to take all the content of the var and put it inside the PHP file... and vice versa.
Is that Possible?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2008 Apr 20, 2008
why do you say, "..But this is not what i need"?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2008 Apr 20, 2008
Did "use loadvars" can help me?
Can you show me example?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2008 Apr 20, 2008
are you trying to inject executable code into a php file? if so, why (and you can't do it but you can work-around it).
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2008 Apr 20, 2008
I want to put HTML into the PHP...
Like this:
<body><font color="#ffffff">Content-test</font></body>
So I will put it into a var and then I want to put this line into the PHP.
Did you understand me? can I do it?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2008 Apr 20, 2008
yes. use loadvars.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2008 Apr 20, 2008
Sorry for my stupidity.
But I don't know how to do it...
Can you please show me?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2008 Apr 20, 2008
:

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2008 Apr 20, 2008
I can't see how that code is changing the whole content of the PHP file...
Is the var named "str" is changing for ever? or only when I run the flash?
because I need a flash that will change the whole content of the PHP file.
Hope you still understand me.
Thank you for that help.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 21, 2008 Apr 21, 2008
What is it you are attempting to do anyway? Why would you need to actually
change a php file? I'd say you should probably be storing your data
elsewhere - like in a database.

--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 23, 2008 Apr 23, 2008
LATEST
>What is it you are attempting to do anyway? Why would you need to actually
>change a php file? I'd say you should probably be storing your data
>elsewhere - like in a database.

..or in a XML file or in a combination with XML/CSS

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2008 Apr 21, 2008
you can't delete any code from a php file, so you can't "change" anything in a php file.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 21, 2008 Apr 21, 2008
I working on a system to edit the content of the website...
And editing a PHP can be very usefull for me.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 21, 2008 Apr 21, 2008
and that you can probably do.

for example, if you want to create a dynamic html page using php, you can control the tags and content used using variables from flash. i gave an example above.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 23, 2008 Apr 23, 2008
I don't think kGlad understands your question, in all due respects because
kglad is very helpful always.

So somehow you want to make a flash interface to change your script. You
will need a 2nd php script on your server that you can tell it to write the
php file. You will probably need your flash file to read in the entire
script, in your flash you will insert/change the html, then pass it (using
load I believe) to another basic php script that saves the file to the
server. I don't know what the limit to the length of the data you can send
is, but there probably is one.

Good luck,

TR

"StavBN" <webforumsuser@macromedia.com> wrote in message
news:fuis8t$a8c$1@forums.macromedia.com...
> 1. I working on a system to edit the content of the website...
> And editing a PHP can be very usefull for me.
>
> 2. And one more thing, somthing like: sendLV.str = "1234"test"Cont";
> is not working because the " that is inside another ".
> what can I do about it?
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines