Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Language Crossing
Author Message
n1ghtwish
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 28 in 8 posts
Joined: Jan 2016
Reputation: 0



Post: #1
Wink Language Crossing
Who else does this on a daily basis?? LolLol

PHP Code:
$dir = new DirectoryIterator($scriptPath);
foreach (
$dir as $file){
    if (
$file->getExtension() == "scp"){
        if (
preg_match("/(points.*?)/i"$file)){
            echo 
"Ignoring $file ... \n";
            continue;
        endif 
// <---------
        
        
echo "Scanning $file ... \n";
        
$fullPath $scriptPath $file;
        
$total += areadefExport($fullPath$file$conn);
    }

(This post was last modified: 02-17-2018 01:09 PM by n1ghtwish.)
02-17-2018 01:08 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes n1ghtwish's post
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #2
RE: Language Crossing
What are you trying to do?

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
02-18-2018 03:10 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
n1ghtwish
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 28 in 8 posts
Joined: Jan 2016
Reputation: 0



Post: #3
RE: Language Crossing
Oh, that's just a piece of a PHP script I wrote to search .scp files for stuff. I spent a few minutes trying to figure out why PHP was throwing an unexpected string error and then I realized I ended the IF block with "ENDIF" instead of a bracket.
02-18-2018 12:56 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes n1ghtwish's post
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #4
RE: Language Crossing
Lol now I see. Ya this happens when you play with multiple coding languages.

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
02-19-2018 12:36 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)