PHP to ASP to Flash
Hi
I have a countdown clock that I have built in PHP but I need
to convert it to ASP, the countdown clock changes the message based
on different times on different days of the week. The clock is
based on Central Time.
-Paul
Hi
I have a countdown clock that I have built in PHP but I need
to convert it to ASP, the countdown clock changes the message based
on different times on different days of the week. The clock is
based on Central Time.
-Paul
Similar Messages
-
Include PHP file in a Flash movie
Hi all,
I have to include a PHP page in a flash movie. Is it possible ?
If so please provide me the actionscript and code.
Thanks
VipinNo, you cannot visually incorporate a PHP file into a Flash file.
-
Php and asp on same server?
Just a quicky?
Can I run both php and asp on the same server?
Some one has a website produced using asp (don't know a thing about that language) but I'd like to use the server it's on and redo some of the stuff using php just retaining a few pages which use asp, possible or not?
Cheers
Ospziecina wrote:
Hi
Yes, you can do this, (just not on the same page). I would recommend checking with your server provider first though.
PZ
Sounds promising:)
Nope, I don't want to mix and match on the same page. There's a couple of pages that I probably don't have the experience to do so I can just give them a visual makeover but retain the asp part.
Thanks
Os -
Use PHP or ASP to grab part of another site
Hello all,
I have permission to grab certain contents of pages of a site
that is a
static site. The static pages are updated fairly frequently,
otherwise,
I would just copy and paste.
I'd like to grab all code that is within a standard div tag
with an id
and insert it into my pages.
Is it possible to do this with script? I'm a beginner at both
PHP and
ASP, so any pointers would be great.
PS: to David Powers--great PHP for DW8 book.
-JohnJohn R. Lenz wrote:
> I'd like to grab all code that is within a standard div
tag with an id
> and insert it into my pages.
>
> Is it possible to do this with script? I'm a beginner at
both PHP and
> ASP, so any pointers would be great.
It's certainly doable with PHP. Do a Google search for screen
scraping
with PHP or page scraping with PHP. You'll find quite a few
tutorials.
The theory isn't all that difficult, but a lot depends on
your PHP
setup. You may need to use cURL or a socket connection if
your host has
disabled allow_url_fopen. It would also be a lot easier if
the target
page is valid XHTML and you have PHP 5. You could then use
SimpleXML to
loop through the page nodes to find the ID you want.
Rather than try to scrape the page every time somebody
accesses your
site, I would suggest scraping on a regular basis, say once
an hour, and
storing the content in a text file or a database. Of course,
that means
you need the ability to run PHP files as scheduled events.
It would be much simpler if the other site used a text file
as an
include. You could then grab the include yourself. Much
simpler, much
less hassle.
> PS: to David Powers--great PHP for DW8 book.
Thanks, John. Glad you liked it.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
How to configure OCI of Oracle9i to work with PHP or ASP on IIS5
I've been trying to make OCI of Oracle9i to work with PHP for all week. I went thourgh millions of documents and forums. And I still can't make them work. Anyone, please help me.
I used to have Oracle8i on my machine and it worked fine with both PHP and ASP on IIS5. Then I decided to change to Oracle9i. So I install Oracle9i in seperate home. And they worked fine. But one day I couldn't access some of my websites via "localhost/mywebsite". And I thought there is something wrong with IIS coz I ran very huge queries. So I reinstall IIS5. Then everything crash. PHP and ASP can't work with OCI. So I uninstalled every Oracle component (database and services) and PHP out of my machine. Then I installed Oracle9i database, redownload "php-4.3.1-installer.exe" , and install PHP.
Since I can't seem to find "php_oci8.dll" in "c:\php\" after I installed, I assume that oracle9i must provide OCI and I found the file "oci.dll" in "c:\OraHome9\Bin" directory. So I changed the extension directory in php.ini to
extension_dir = "c:\OraHome9\Bin"
And it still doesn't work. I'm kinna new to ASP so I don't know how to fix this problem.
Anyone, would you please give me any suggestion how to solve this problem or where to find the solution for this problem? I'd be very appreciated.I've been trying to make OCI of Oracle9i to work with PHP for all week. I went thourgh millions of documents and forums. And I still can't make them work. Anyone, please help me.
I used to have Oracle8i on my machine and it worked fine with both PHP and ASP on IIS5. Then I decided to change to Oracle9i. So I install Oracle9i in seperate home. And they worked fine. But one day I couldn't access some of my websites via "localhost/mywebsite". And I thought there is something wrong with IIS coz I ran very huge queries. So I reinstall IIS5. Then everything crash. PHP and ASP can't work with OCI. So I uninstalled every Oracle component (database and services) and PHP out of my machine. Then I installed Oracle9i database, redownload "php-4.3.1-installer.exe" , and install PHP.
Since I can't seem to find "php_oci8.dll" in "c:\php\" after I installed, I assume that oracle9i must provide OCI and I found the file "oci.dll" in "c:\OraHome9\Bin" directory. So I changed the extension directory in php.ini to
extension_dir = "c:\OraHome9\Bin"
And it still doesn't work. I'm kinna new to ASP so I don't know how to fix this problem.
Anyone, would you please give me any suggestion how to solve this problem or where to find the solution for this problem? I'd be very appreciated. -
[FLASH/ASP] Formulario Flash sencillo que funcione bajo ASP
Hola,
Necesito un formulario en flash sencillo (nombre,
dirección, observaciones,
etc.) que funcione bajo .asp
Tengo alguno que otro en .php pero el cliente tiene un
servidor .asp y yo no
tengo conocimiento de ningún lenguaje de bbdd, por tanto
me es imposible
adaptar el uno al otro.
Os agradecería mucho si me podéis pasar alguno que
funcione bien!
Gracias y un saludo.Aquí hay uno:
http://www.ffflashhh.com/formulario.zip
Salu2
`8¬}
Juan Muro
"Alberto DEALFIL" <[email protected]> escribió
en el mensaje
news:C1DA5F23.6386%[email protected]..
>
>
> Hola,
>
> Necesito un formulario en flash sencillo (nombre,
dirección,
> observaciones,
> etc.) que funcione bajo .asp
>
> Tengo alguno que otro en .php pero el cliente tiene un
servidor .asp y yo
> no
> tengo conocimiento de ningún lenguaje de bbdd, por
tanto me es imposible
> adaptar el uno al otro.
>
> Os agradecería mucho si me podéis pasar alguno
que funcione bien!
>
> Gracias y un saludo.
> -
Hello all,
I have a flash form that has three checkboxes and some input
text boxes. My form uses a PHP script that works perfect for the
text but not the Check boxes. I'm not using the checkbox component,
I'm using a check box i got from flash kit. Below is the code for
the checkbox movie and my php code. What do I have to declare in
the my php file to have the check box work?
on (press) {
if (Number(CB_1) == 0) {
tellTarget ("checkbox1") {
gotoAndStop(2);
CB_1 = 1;
showstate1 = "yes";
} else {
tellTarget ("checkbox1") {
gotoAndStop(1);
CB_1 = 0;
showstate1 = "no";
This is my php code
<?
// Enter your contact email address here
$adminaddress = "[email protected]";
// Enter the address of your website here include
http://www.
$siteaddress ="www.mysite.com";
// Enter your company name or site name here
$sitename = "my site";
No need to change anything below unless you want to add or
subtract functions or change the wording of things sent back to the
flash file ...
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");
// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
//Process the form data!
// and send the information collected in the Flash form to
Your nominated email address
if ($action != ""):
mail("$adminaddress","New User has Registered",
"A visitor at $sitename registered!\n
Personal Info
Name: $fname
Last Name: $lname
Address: $add
City: $city1
State: $state
Zip: $zip
Telephone: $tele
E-mail: $email
Recieve Free Book: $showstate1
Invitation to Seminar: $showstate2
Schedule Free Visit: $showstate3
Comments
$comment
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
//This sends a confirmation to your visitor
mail("$email","Thank You for visiting $sitename",
"Hi $fname,\n
We will process your request and send you a user name and
password within 48hrs.
Thank you for your registering at $sitename!\n
$sitename
$siteaddress","FROM:$adminaddress");
//Confirmation is sent back to the Flash form that the
process is complete
$sendresult = "Thank you for comments and questions. You will
receive a confirmation email shortly.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";1. You have not posting anything to show how Flash is
communicating wit the
server PHP script and it a guess that the variable in the
checkbox is not
getting sent.
2. Code with tellTarget is old and will be completely
obsolete as you want
to migrate this to newer and newer features in Flash for the
future.
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"Asesino" <[email protected]> wrote in
message
news:[email protected]...
> Hello all,
> I have a flash form that has three checkboxes and some
input text boxes.
> My
> form uses a PHP script that works perfect for the text
but not the Check
> boxes.
> I'm not using the checkbox component, I'm using a check
box i got from
> flash
> kit. Below is the code for the checkbox movie and my php
code. What do I
> have
> to declare in the my php file to have the check box
work?
>
> on (press) {
> if (Number(CB_1) == 0) {
> tellTarget ("checkbox1") {
> gotoAndStop(2);
> }
> CB_1 = 1;
> showstate1 = "yes";
> } else {
> tellTarget ("checkbox1") {
> gotoAndStop(1);
> }
> CB_1 = 0;
> showstate1 = "no";
> }
> }
>
>
> This is my php code
>
> <?
>
> // Enter your contact email address here
> $adminaddress = "[email protected]";
>
> // Enter the address of your website here include
http://www.
> $siteaddress ="www.mysite.com";
>
> // Enter your company name or site name here
> $sitename = "my site";
>
> /*******************************************************
>
> No need to change anything below unless you want to add
or subtract
> functions
> or change the wording of things sent back to the flash
file ...
>
> *******************************************************/
>
> // Gets the date and time from your server
> $date = date("m/d/Y H:i:s");
>
> // Gets the IP Address
> if ($REMOTE_ADDR == "") $ip = "no ip";
> else $ip = getHostByAddr($REMOTE_ADDR);
>
> //Process the form data!
> // and send the information collected in the Flash form
to Your nominated
> email address
> if ($action != ""):
> mail("$adminaddress","New User has Registered",
> "A visitor at $sitename registered!\n
> ---------------------------------------------
> Personal Info
> Name: $fname
> Last Name: $lname
> Address: $add
> City: $city1
> State: $state
> Zip: $zip
> Telephone: $tele
> E-mail: $email
> ---------------------------------------------
> Recieve Free Book: $showstate1
> Invitation to Seminar: $showstate2
> Schedule Free Visit: $showstate3
> ---------------------------------------------
> Comments
> $comment
>
> ------------------------------
>
> Logged Info :
> ------------------------------
> Using: $HTTP_USER_AGENT
> Hostname: $ip
> IP address: $REMOTE_ADDR
> Date/Time: $date","FROM:$adminaddress");
>
> //This sends a confirmation to your visitor
> mail("$email","Thank You for visiting $sitename",
> "Hi $fname,\n
> We will process your request and send you a user name
and password within
> 48hrs.
> Thank you for your registering at $sitename!\n
>
> $sitename
> $siteaddress","FROM:$adminaddress");
>
> //Confirmation is sent back to the Flash form that the
process is complete
> $sendresult = "Thank you for comments and questions. You
will receive a
> confirmation email shortly.";
> $send_answer = "answer=";
> $send_answer .= rawurlencode($sendresult);
> echo "$send_answer";
>
>
>
> -
Send Variable From ASP to Flash to ASP
I'm really, really new to Flash and using Flash 8 Pro. This
is what I'm trying to do. I have a list of cars, when someone
clicks on a car, they are taken to a page with details about the
car and a flash gallery. The Flash Gallery is reads the image files
names from an xml file. I'm really using an asp file (photos.asp).
Anyway, I need the pass photos.asp the vin of the car from flash.
I did this is the VehicleDetailSaleen.asp screen
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="600" height="530">
<param name="movie"
value="photogallery.swf?VIN=<%=(Recordset1.Fields.Item("VIN").Value)%>">
<param name="quality" value="high">
<param name="VIN"
value="<%=(Recordset1.Fields.Item("VIN").Value)%>">
<embed
src="photogallery.swf?VIN=<%=(Recordset1.Fields.Item("VIN").Value)%>"
width="600" height="530" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash"
vin="<%=(Recordset1.Fields.Item("VIN").Value)%>"></embed>
I just don't know how to catch it in the flash file and send
it back....
#include "scripts.as"
LoadVars;
loadPhotoXML("Photos.asp?VIN="+ this.vin);
mclThumbnails.onEnterFrame=function(){
thumbnailsRoll()
function loadPhotoXML(filename:String):Void {
photoXML.ignoreWhite = true;
photoXML.load(filename);
photoXML.onLoad = function(success:Boolean):Void {
if (success) {
photoNumber = 0;
rootNode = this.firstChild;
totalPhotos = rootNode.childNodes.length;
for (var i = 0; i<totalPhotos*2; i++) {
if (i<totalPhotos) {
thumbnails
= rootNode.childNodes.childNodes[0].firstChild.nodeValue;
url
= rootNode.childNodes.childNodes[1].firstChild.nodeValue;
titleText
= rootNode.childNodes.childNodes[2].firstChild.nodeValue;
} else {
thumbnails
=
rootNode.childNodes[i-totalPhotos].childNodes[0].firstChild.nodeValue;
url =
rootNode.childNodes[i-totalPhotos].childNodes[1].firstChild.nodeValue;
titleText
=
rootNode.childNodes[i-totalPhotos].childNodes[2].firstChild.nodeValue;
thumbnailsLoad(i);
checkProgressLoad(0);
caption.text = titleText[0];
Please, I know I don't know anything, but I've been reading
forums for 2 days and everyone seems to have a different idea but I
don't really understand them. I just need a simple, do this, then
this sort of help.
Thanks,
Heatherheatherlsi. anyway you can post your resulting code? having
probelm with writing a Flash to ASP script... thanks -
Hi!
We are looking into upgrading our intranet files at my company. Right now, although they are effectively "plain vanilla" html, for some reason we have been using the asp format.
Our next evolution may involve using FMStudio to allow the intranet users to interact with our Filemaker database. These pages would be output in the php format.
I am wondering if I can convert these to asp without losing significant functionality. Thanks!Xynoplas wrote:
...whether a page with an .asp extension can be used to call PHP functions, and how this would be done.
In case you´re running an Apache server, this is possible by adding one of the following lines to a .htaccess file which should be placed in the "public_html" user directory to affect all .asp files
a) AddType application/x-httpd-php .asp
b) AddHandler application/x-httpd-php .asp
Version a) applies when PHP is installed as module in Apache, the second version is suitable when PHP is installed as CGI binary.
The result is, that your .asp pages will be parsed by PHP and hence can contain PHP stuff. -
Is there a PHP sleep() function in Flash?
Hi!
Does anyone know of a Flash function similar to the PHP
function sleep() ?what i want to do is to remove some movie clips through a
loop, but i don't want them do dissapear all at once, but one by
one... let's say 0.2 seconds between them...
thanks
quote:
Originally posted by:
anonymous thing
not directly... You can use a timer(setInterval) that will
change state of your application; it might be a boolean value for
example. Could you post, with more details, what you want to do? -
Need to run php script before the Flash component kicks in
I have a slide show component in Flash which uses an xml file to load images. The xml file, however, is created dynamically when the user selects which slide show they want to see. How do I run the php script BEFORE the slide show component has a chance to look for it? Usually it begins as soon as the .swf is run.
thanks,
chopthank you for responding.
I'm still new at as3 so forgive me for needing details.
I searched adobe for help and came up with the following to import the component. However, it seemed too easy to be true and so it was. I received errors when I ran it. The component is a commercial one called SlideshowBox and is in my library with that exact name.
//add a component to the stage
import fl.controls.SlideshowBox;
var aSlideshowBox:Button = new Button();
addChild(aSlideshowBox);
errors:
Scene 1, Layer 'Actions', Frame 1, Line 3 1172: Definition fl.controls:SlideshowBox could not be found.
Scene 1, Layer 'Actions', Frame 1, Line 3 1172: Definition fl.controls:SlideshowBox could not be found.
Scene 1, Layer 'Actions', Frame 1, Line 4 1180: Call to a possibly undefined method Button.
thank you, k -
Comparing JSP ,PHP AND ASP
Hello
Can you send me few reasons why is JSP better then ASP nad PHP.
Thanks JelenaI don't know much of PHP but I can defintely compare it to ASP. ASP is a Windows proprietary technology that runs primarily on Windows machines. It uses either JavaScript or VBScript as the underlying language and has some limitations. For one there is the lack of multithreading which makes tasks that require asyncronous processing rather difficult. VBScript is a subset of Visual Basic which means there are a lot of things (objects and such) left out. You can create objects encompassing anymissing functionality out of COM using a CreateObject statement but if the objects were created using Visual Basic then there are threading issues that severly limit the amount of concurrent access. There is no direct support for polymorphism and inhereitance in VB which means Visual Basic is not a true object oriented language.
JSP overcomes all of these limitations by using Java as the underlying programming language. Java has language level support for threading that eases the burden of concurrent access and makes asynchronous tasks a snap. It is based on the J2EE standard rather than a proprietary technology. There are various implementations of this standard that allow you to plug JSP apps into virtually any webserver running on almost any hardware. Java includes direct support for polymorphism and inheritance making it a true object oriented language.
ASP.Net/VB.Net overcomes all of the mistakes made with ASP/VB by mimicking the Java/JSP platform. This shows that the ideas implemented in Java are rather strong ideas and have longevity. If you are writing your 1st web app and have limited knowledge of how the net works then maybe VB/ASP is a better starting point for it's simplicity and integrated environment. However, when you are ready to build scalable enterprise level web apps then JSP is definitely the better choice. Take it from someone experieinced in both.
Cliff -
Loading Variables from ASP into Flash
I can find plenty of tutorials detailing how to load
variables from a defined asp page into Flash, but here's my
dilemma...
I have an asp page that is reading a URL with a unique
identifier in it (www.sampleURL.com?id=123456), and then turns the
id number from the URL into a variable. On the same page then, sits
my swf where I need to use LoadVars to pull in that ASP variable
via Actionscript. If I don't have a static asp page to pull the
variables in from and I want to pass the variable within the same
asp page the swf is located on, how do I do it? Many thanks in
advance..."bonzomn65" <[email protected]> wrote in
message
news:ej0630$pjh$[email protected]..
>I can find plenty of tutorials detailing how to load
variables from a
>defined
> asp page into Flash, but here's my dilemma...
>
> I have an asp page that is reading a URL with a unique
identifier in it
> (www.sampleURL.com?id=123456), and then turns the id
number from the URL
> into a
> variable. On the same page then, sits my swf where I
need to use LoadVars
> to
> pull in that ASP variable via Actionscript. If I don't
have a static asp
> page
> to pull the variables in from and I want to pass the
variable within the
> same
> asp page the swf is located on, how do I do it? Many
thanks in advance...
>
You don't need LoadVars for this at all. You can just pass
the variable to
your Flash movie by specifying a query string when you are
calling the
movie.
If you are using the straight object, embed method then it
would look
something like this:
<param name="movie" value="movie.swf?id=11111">
<embed src="movie.swf?id=11111" ... >
If you are using the ActiveContent JavaScript for your movie
then you just
leave off the .swf... so
"name", "movie?id=11111"
Then, in flash you can access the value of id from the _root,
like
var idInFlash:Number = _root.id;
Of course in the above example you would replace 11111 with
the proper
syntax for printing a variable's value in ASP. -
Good I have a page ASP (flash4.asp) with this code (Part of
this))
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQLSUC = "SELECT top 1 nombre FROM CLIENTES"
objRS.Open strSQLSUC, objConn,1
Dim Clientes
response.write "clientes=" & objRS("nombre")
objRS.Close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
This variable I have it to happen to a FLASH. I in the flash
have the following thing to
var MiLoadVars = new LoadVars();
MiLoadVars.onLoad = function(){ _root.recibir.text =
MiLoadVars.clientes; }
MiLoadVars.load("flash4.asp");
This this in frame1 and the content of the variable must
appear in a Text whose name of instance is to receive. The problem
is that instead of putting the name they appear to me comiles. now
if in the page of asp I put response.write
“&clientes=Nicolas&” there if it works I have
proven añadiente &, comiles everything but cannot cause
that it takes the value from the consultationheatherlsi. anyway you can post your resulting code? having
probelm with writing a Flash to ASP script... thanks -
Passing variables from server-side asp to Flash
I'm having some difficulty passing the server's date/time to
Flash.
I'm getting this error message: Error #2101: The String
passed to URLVariables.decode() must be a URL-encoded query string
containing name/value pairs.
However, it appears as if I am sending name/value pairs. Both
my files reside in the same directory. Can anyone help?Hi,
Like Mamata said you can use .call() method to call the client methods to send data. If you want to send the duration and someother stream related data, you can use onMetaData even handler. This will be called at the client side when ever the client plays a stream. You can retrive the duration, video/audio codecs, frame size etc. of the stream.
var nc:NetConnection = new NetConnection();
var ns:NetStream;
var myClient:Object = new Object();
nc.connect("rtmp://myserver/app");
nc.addEventListener(NetStatusEvent.NET_STATUS, onNCStatusEvent);
function onNCStatusEvent(infoObj:Object):void {
trace(infoObj.info.code);
if(infoObj.info.code == "NetConnection.Connect.Success"){
ns = new NetStream(nc);
ns.client = myClient;
myClient.onMetaData = metaDataHandler;
ns.play("mp4:myfile.mp4");
function metaDataHandler(metaDataObj:Object):void {
for(var p in metaDataObj){
trace("metaDataObj."+p+":"+metaDataObj[p]);
//Here you get the metadata of the stream which is being played.
If you trying to send some other data to the client which is not found in the metaData then you will have follow what mamata had mentioned.
Regards,
Janaki L
Maybe you are looking for
-
Creation of G/L account (multilingual)
Hi Guys, Is it possible to create G/L accounts in more languages?E.g when logging on in italian I wanna see only the italian description for this account. We are on ECC 6.0, currently non-unicode. Thanks in advance Thomas
-
Acrobat won't install on my iMac
I bought a Fujitsu S1500 snanner bundled with set up software and Adobe acrobat 9 Standard which I installed on my pc. I have now changed the pc to an iMac and the Acrobat software will not install. I find it very strange that the software supplied d
-
Hi Guys, we are doing scenarios where the credit card information is passed through xi and we dosent want to persist this data in the xi database, are there any options by which we can eliminate the data storage in xi. we have proxy to soap scenario,
-
How to change to order of sorter
If I use Move up/down column the list page will order by ascending by the sort field, that mean the latest data will be in the last page, therefore I want to change the order I found some code seems related to the sort function $tso_listdrama_ship_ma
-
Exception:java.lang.IllegalAccessError in OIE
After applying CU2 update and OIE.K we are receiving errors when entering expenses: In the expense report responsibility, I created new expense. Entered the expense line then clicked Next Then I receive the error "Request URI:/OA_HTML/OA.jsp Exceptio