[PHP] PHP, SWF and XML

2001-10-26 Thread Michiel van Heusden
I needto use php to open *.swf, and then send some xml code to it. anyone knows if this is possible, and if so, how to send code (via POST) to the *.swf after opening it? thnx Michiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] POSTing values to file

2001-10-28 Thread Michiel van Heusden
anybody help me please... how can I open a file from php (something like require, but without closing the php-file) and then send some string to that file with POST is thispossible?/? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] stupid little problem

2001-11-16 Thread Michiel van Heusden
sorry..I'm quite new in this php-stuff i've got a little problem if I write a$ = test; b$ = test2; data$ .= a$ . . b$ ; echo data$; it outputs: test test2 instead of: test test2 I really need that spaces.. any help? thnx -- PHP General Mailing List (http://www.php.net/)

[PHP] little problem with ' and stuff

2003-02-10 Thread Michiel van Heusden
hi there, i'm having a small problem, wondering if anybody can help // a line in my script defining $url $url = $directory . '/main.php?id=' . $id; // a line later on in the frameset calling this $url echo 'frame name=main scrolling=no src='$url''; this gives me a paring error on the last

[PHP] Re: and ' giving problems

2003-02-11 Thread Michiel van Heusden
you could use stripslashes or stripcslashes to remove the '\'-s, otherwise i wouldn't know.. Pag [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, When a user wants to add a comment on my site and uses either or ', and when it gets printed out, comes out

[PHP] Q. on ereg_replace

2003-02-11 Thread Michiel van Heusden
i'm creating sort of a very simple css-alike-thing for outputting html to flash actionscript. the php gets a string ($text) from the database, which look something like: h1header 1 /h1 etc... then, from a 'css' file it reads the strings $replace and $replacement it looks something like:

[PHP] Re: Q. on ereg_replace

2003-02-11 Thread Michiel van Heusden
never mind it i've solved it trimming the $replace and $replacement before using them in ereg_replace() thanks anyway Michiel Van Heusden [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i'm creating sort of a very simple css-alike-thing for outputt

[PHP] selection in form-field

2003-02-21 Thread Michiel van Heusden
i have quite an easy question: is there a way in PHP to trace the selection in a certain form-field? i need this for building a simple html-edit application, which allows a user to select his/her text within a field, and then click 'bold' for instance..the PHP should insert b before the

[PHP] passing variables to flash

2003-02-21 Thread Michiel van Heusden
i want to pass variables to a shockwave-flash-file currently that's working fine with print PARAM NAME=movie VALUE=\$movie?idlinks=$idlinksidcontent=$idcontentidknoppen=$idknoppen\ etc... but passing the variables through GET makes iexplore think it's loading a new *.swf-file how to fix this?

Re: [PHP] passing variables to flash

2003-02-21 Thread Michiel van Heusden
thanks for your reply What I do in these cases is either having PARAM name=movie.swf?var1=text the first thing you mention is exactly the problem I'm having since the file.swf?var=xxx makes iexplore reload it Or use a file (something.php) which spits text like var1=var2=. Flash can

[PHP] Re: Efficient db connect function?

2003-02-23 Thread Michiel van Heusden
$db = mysql_connect$db_host, $db_user, $db_pass) or die (Cannot connect to database); mysql_select_db($db_name, $db) or die (Cannot select database); $result = mysql_query($query ,$db) or die (Query not executed); and all the outputting code... grace michiel Cf High [EMAIL

[PHP] Re: Dynamic combobox in Flash with PHP

2003-02-23 Thread Michiel van Heusden
my experience is that interaction between flash and php runs best through GET so, you could try using GET instead of POST and in your actionscript insert the ';' on the end of the lines for: test = this[list_label+i] myItem.label = test grace michiel Pei_world [EMAIL PROTECTED] wrote in

[PHP] passing arrays to a session-variable

2003-02-28 Thread Michiel van Heusden
I'm using this script to test passing arrays to a Session-variable. ? session_start(); // method 1 $_SESSION['array1'] = array(item1, item2); // method 2 session_register(array2); $array2 = array(itemA, itemB); header (Content-type: text/html); echo $array1[0]. br /; echo $array2[0]; ?

[PHP] some help needed building chat-app

2003-03-05 Thread Michiel van Heusden
i'm working on a chat-app which has to be extremely plain and simple mysql is available i tried stripping some of the big scripts, but ended up in a mess so i've ended up building a little app myself i'm just wondering whether i'm using the right principe to get the data refreshed in the chat..

Re: [PHP] some help needed building chat-app

2003-03-05 Thread Michiel van Heusden
any crash, sql server will take care of this Michiel van Heusden wrote: i'm working on a chat-app which has to be extremely plain and simple mysql is available i tried stripping some of the big scripts, but ended up in a mess so i've ended up building a little app myself i'm just wondering

[PHP] attaching php-action to form-button

2003-03-07 Thread Michiel van Heusden
my problem is this I have some variables defined which i'm sending through get form name=form1 method=get action=result.php // input's etc /form now I have $var1 defined in my PHP and I want to send it through that GET as well is there a way to do this? so it's not a user-defined but

[PHP] storing files in database

2003-03-18 Thread Michiel van Heusden
is there any possibility using PHP 4 to store entire files as a database field in a MySQL database? and if so, does anybody know a way, or a tutorial describing this? thanks michiel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Eliminating space between HR and Image

2003-03-19 Thread Michiel van Heusden
this is an HTML-problem, not php..but anyway i have no clue why the extra space would appear, but I'd try to add absolute positiong to the HR and IMAGE as well, that should solve the problem like: style type=text/css !-- hr { position: absolute; top: 0px; } img { position: absolute; top:

[PHP] Re: mysql_close();

2003-03-21 Thread Michiel van Heusden
I've been told (in this newsgroup as well :) that PHP automatically closes the MySQL connections on closing the file or session.. probably when you ended your last '?' PHP closed the MySQL connection a way to solve it is to insert the closing-command right after you finished using the connection