Bonjour
en fait je veux ouvrir une URL avec php , j'ai ecrit le code suivant :et j'ai le message suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 <?php $connexion = oci_connect('MOIADMAA','MOIADMAA','203.35.19.104:1521/ORANIKA1'); $stid = oci_parse($connexion,'SELECT nom_campagne FROM CAMPAGNE'); oci_execute($stid); $today = date("Y-m-d"); while (oci_fetch($stid)){ //echo "\n"; $nbcols = oci_num_fields($stid); for ($i=1;$i<=$nbcols;$i++){ $column_name=oci_field_name($stid,$i); $column_value=oci_result($stid,$i); //echo $column_value . "\n"; //$handle = fopen(urlencode("http://203.35.19.123:8090/WebViewerExample/frameset?__report=SONDE.rptdesign&choisir campagne =".$column_value."&choisir date".$today."&__document=".$today.$column_value"SONDE.rptdocument"), "r+"); //echo "127.0.0.1:8090/WebViewerExample/frameset?__report=SONDE_BIS.rptdesign&campagne=%20".$column_value."&date=".$today."&__document= C:\Program%20Files\Tomcat%206.0\webapps\WebViewerExample\ ".$today."".$column_value."SONDE.rptdocument"; $handle = fopen("http://127.0.0.1:8090/WebViewerExample/frameset?__report=SONDE_BIS.rptdesign&campagne=".$column_value."&date=".$today."&__document=C:\Program%20Files\Tomcat%206.0\webapps\WebViewerExample\ ".$today."".$column_value."SONDE.rptdocument", "r+w+"); } } oci_free_statement($stid); oci_close($connexion); ?>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 Warning: fopen(http://127.0.0.1:8090/WebViewerExample/frameset?__report=SONDE_BIS.rptdesign&campagne=GEDEON&date=2011-08-03&__document=C:\Program%20Files\Tomcat%206.0\webapps\WebViewerExample\ 2011-08-03GEDEONSONDE.rptdocument) function.fopen: failed to open stream: HTTP wrapper does not support writeable connections in C:\Program Files\Xamp\htdocs\Audit_CLIENT\PHP\test.php on line 21
j'ai cherché partout, je n'ai pas trouvé de solution je commence à déprimer là
merci d'avance
Partager