Skip to main content

All Questions

Tagged with
0 votes
3 answers
55 views

Regexp to search for strings like 'cpt' => on Notepad++

I'm trying to build a list of array of mime types for PHP. I got a long list of mime types but I need to remove all the 'xxx' => upfront. How to detect them using regexp cos I tried '[\u][a-z0-9]' =...
wipor20530's user avatar
1 vote
1 answer
152 views

Google Translate Documents php text

I'd like to run thousands of php language keys through Google Translate Documents on https://translate.google.com. The text looks like this: $lang['activate_deactivate'] = "Activate / Deactivate&...
N0xr-2's user avatar
  • 25
0 votes
2 answers
74 views

How to add single quote at beginning and end of array variable in php using notepad++

I have delared variables like this. I have created more than 100 variables in every page. <?php echo $rsedit[customer_name]; ?> <?php echo $rsedit[address]; ?> <?php echo $rsedit[city]...
Aravinda MV Naik's user avatar
1 vote
0 answers
125 views

How to bulk edit php function to replace certain keyword with custom list of keywords

I have a function that adds new custom user roles. Now I need to add over 682 new user roles and I am doing it with the following function: add_role( 'accountants-needed-western cape', __( '...
redlaw's user avatar
  • 37
2 votes
4 answers
2k views

Notepad++ syntax highlight of embedded SQL in PHP files

Notepad++ works with Scintilla lexer to recognize switches in language within a .php file somehow. It seems to default to HTML and recognizes <?php ... ?>, and <script type="text/javascript"&...
Peter Brand's user avatar
-1 votes
2 answers
64 views

Search random document "titles" between new lines on a large document

How can I manage to count for a random "title" on a large (700mb) and "non-formatted" txt file? The "title" is always in this format: \n + random title + \n. However multiple \n can appear ...
zppinto's user avatar
  • 287
0 votes
0 answers
428 views

Xdebug not showing PHP variables in Notepad++ (XAMPP environment)

I need to debug my PHP scripts in a local environment but I'm having a "small" problem with my current set-up. I was able to successfully install Xdebug, XAMPP, and the DBGp plugin for Notepad++. ...
LucaP's user avatar
  • 83
-1 votes
1 answer
48 views

notepad++ wildcard how to replace php code including an SESSION array

Hello there! So i'm currently programming with PHP and i need to replace code that includes an array which means i'm in need of using a wildcard for this.. I researched a bit but didn't find any ...
BlueEvil's user avatar
1 vote
0 answers
116 views

Notepad++ syntax highlight - php keywords in different cases

In Notepad++ PHP syntax highlight works only for keywords in lower case (preg_replace, define, etc) and doesn't work for different cases (getSingleton, getTableName, etc). How to change it? Settings -...
Michal's user avatar
  • 21
0 votes
2 answers
275 views

How to properly use language format in Notepad ++

I have this situation trying to disable a sequence into a .php file (the black commented lines, back-to-top text button); I've read about block commenting in notepad ++ and setting the language of the ...
typo_'s user avatar
  • 11
-1 votes
1 answer
76 views

Random Time & Date increment with Excel or php

i want to increase time and date by between 8 & 12 minutes randomly . Example: Start time : 2018-06-25 19:00:10 Next : 2018-06-25 19:09:36 Next : 2018-06-25 19:20:12 ... .....
Babak Babazadeh's user avatar
1 vote
1 answer
447 views

How do I set syntax highlighting in Notepad++ for a PHP file outputting JS?

PHP is most commonly used to echo out HTML, but for this project I'm using PHP to echo out JavaScript. How can I set syntax highlighting in Notepad++ to assume that anything outside of PHP tags is JS?...
Josh Powlison's user avatar
0 votes
2 answers
18 views

trying to have different error through login with two hardcoded logins

if(empty($_POST['mail']) || empty($_POST['password'])) { header("Location: login1.php?error4"); } else { if(($_POST['mail'] == "[email protected]" && $_POST['password'] == "...
Mushi Mushi's user avatar
-1 votes
1 answer
212 views

get a console in notepad++ like Netbeans

At school we are learning PHP, and are using netbeans for this. I myself have learned how to code before i started this study and used Notepad++ so i am kinda familiar with that. My problem: We use ...
Gert Jan Van der Gugten's user avatar
0 votes
0 answers
57 views

Retrieve notepad++ data when system goes down

I was working on notepad++ file this morning. Suddenly my lap goes down. When I restart laptop and reload the file which I was working on (.php file), I got the code lines as follows: NUL NUL NUL.... ...
Dhara's user avatar
  • 302

15 30 50 per page
1
2 3 4 5
12