PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Erreur connexion PHP4WD.php
Erreur connexion PHP4WD.php
Started by Sani19, Jun., 25 2017 2:36 AM - No answer
Connect yourself…
Sani19
#1
Registered member
21 messages
Popularité : +1 (1 vote)
Posted on June, 25 2017 - 2:36 AM
Bonjour
j'ai un problème avec le PHP4WD.php ver 9.2.0.0 , je m'explique:
-j'ai telechargé le pack (c_Php4WX, connect.php et php4wd.php) ver 9.2.0.0
- installer la classe sur wdmobile 20
- modifier le fichier connect.php selon ma config du serveur comme suit
-----------CONNEXION MYSQL -----------
$serv = 'mysql-mysite.alwaysdata.net';
$user = 'mysite';
$pass = 'mypsw';
$base = 'mybdd_test';
- modifier le fichier php4wd.php comme suit :
//***************************************************************************************************************************
// analyse de la demande et recuperation des requetes et variables pour les procedures stockées
//***************************************************************************************************************************
$cmds =str_replace(';','',$_POST['requete']);
$methode =$_POST['methode'];
$typeBase =$_POST['typeBase'];
$crypteretour =$_POST['crypteretour'];
if ($crypteretour =="") $crypteretour ='NON';
if ($_POST['mybdd_test'] != "") $base =$_POST['mybdd_test'];
$bind =$_POST['bind'];
$bindLen =$_POST['bindLen'];
$bindVal =$_POST['bindVal'];
$bindType =$_POST['bindType'];
$bind = Decoupe_chaine($bind);
$bindLen = Decoupe_chaine($bindLen);
$bindVal = Decoupe_chaine($bindVal);
$bindType = Decoupe_chaine($bindType);
-copier les deux fichier sur le serveur sous le rep /www/
-lorsque je lance le test ("
http://mysite.alwaysdata.net/php4wd.php…
") ,
ça retourne l'erreur ("Fatal error: Uncaught Error: Function name must be a string in /home/axcialdz/www/php4wd.php:232 Stack trace: #0 {main} thrown in /home/axcialdz/www/php4wd.php on line 232")
sachant que la ligne 232 contient ce code : $session = $func_connect($serv, $user, $pass, $base) or die("<p class='Perror'>·Failed - err Connect: ".print_r($func_error())."</p>");
Merci pour votre aide
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text