As it is the error? As it is the error?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

As it is the error?

Started by Piceo2k, August 28, 2007, 09:38:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Piceo2k

I am using the 2,0 and the code is the following one:


<?php
  
include ".galeria/cpmfetch/cpmfetch.php";
  include 
"./Style.css";
  
$objCpm = new cpm("./galeria/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastUpdatedAlbumsFrom(4,4,2,array([b]imagelink => "album",[/b"imagestyle" => "test1"windowtarget => "_blank"));
  
$objCpm->cpm_close();
?>



Result: Parse error: syntax error, unexpected '[', expecting ')' in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 5


Nibbler


Piceo2k

I do not understand that it is what I must clear.

Greetings,

Nibbler

remove the [ b ] and [ /b ]

Piceo2k


<?php
  
include ".galeria/cpmfetch/cpmfetch.php";
  include 
"./Style.css";
  
$objCpm = new cpm("./galeria/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastUpdatedAlbumsFrom(4,4,2,array(imagelink => "album""imagestyle" => "test1"windowtarget => "_blank"));
  
$objCpm->cpm_close();
?>



Error: Warning: main(.galeria/cpmfetch/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 2

Warning: main() [function.include]: Failed opening '.galeria/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 2

Warning: main() [function.main]: Unable to access ./Style.css in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 3

Warning: main(./Style.css) [function.main]: failed to open stream: No such file or directory in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 3

Warning: main() [function.include]: Failed opening './Style.css' for inclusion (include_path='.:/usr/local/lib/php') in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 3

Fatal error: Cannot instantiate non-existent class: cpm in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 4

Piceo2k

I have already solved it. Thank you very much.

Joachim Müller

For the benefit of others with simlar issues you should have posted what you actually did to solve your issue.