I don't know what to do.
2 parameters: first:
0 D:/Google Drive/Dokumente/Programmierung/Webentwicklung/htdocs/BeLL__Webseite_fuer_Filmfestival/php/checkSession.php(6): Phip/Engine/Login->checkSession() 1 D:/Google Drive/Dokumente/Programmierung/Webentwicklung/htdocs/BeLL__Webseite_fuer_Filmfestival/login.php(3): include('D:/Google Drive...') {main}
second:
D:/Google Drive/Dokumente/Programmierung/Webentwicklung/htdocs/BeLL__Webseite_fuer_Filmfestival/php/Phip/Engine/Login/Login.php
php function
private function clean( $clean ) {
$clean = str_replace( '\\', '/', $clean );
if ( !strpos( $clean, 'D:/Google Drive/Dokumente/Programmierung/Webentwicklung/htdocs/BeLL__Webseite_fuer_Filmfestival' )) {
return str_replace( 'D:/Google Drive/Dokumente/Programmierung/Webentwicklung/htdocs/BeLL__Webseite_fuer_Filmfestival', '', $clean );
}
}
Problem:
false: var_dump( !strpos( $param1, 'D:/Google Drive/Dokumente/Programmierung/Webentwicklung/htdocs/BeLL__Webseite_fuer_Filmfestival' ) );
true: var_dump( !strpos( $param2, 'D:/Google Drive/Dokumente/Programmierung/Webentwicklung/htdocs/BeLL__Webseite_fuer_Filmfestival' ) );
I can't understand this, because this string is in both strings ... can someone help me please? Why is this not the same?
Thank you so much! I hope you unterstand what I want.
You are using
strpos()
wrongly.And more importantly:
So use it like: