If accessing our projects requires a subscription why do we still have to pay poins too? In addition to the project being limited to 300MB to 500MB for each project which is still a problem because that space is already occupied with modules, my subscription is still up to date but because I don't have poins things that shouldn't be there I haven't done my work for two weeks.๐ก๐ก๐ก๐ก๐ก๐ก๐ก
Hi guys!!
How to solve this error:
PHP Warning: fopen(Sample): failed to open stream: No such file or directory in source_file.php on line 6
PHP Warning: fgets() expects parameter 1 to be resource, booleanโฆ More given in source_file.php on line 8
PHP Warning: fclose() expects parameter 1 to be resource, boolean given in source_file.php on line 13Expected:
713.17
Output:
Thanks
Fayaz Ahmed Khan is
looking for answers.
Hi
I'm new with you here, I've been using Dcoder for months but I'm experiencing some problems
For example, the code will be deleted automatically after four days, and the output will remain and I donโt knowโฆ More how to publish the output through WhatsApp or Facebook. Is it possible, for example, to convert the output code into a simple application or to a file, meaning it can be used without entering Dcoder?
Thank you very very much.
Hello Dcoder Fam! I may not have posted in a long time because I was trying and mastering pieces of important Javascript to me.
Anyway, if you've been looking for a case-insensitive + global flag for the replace() method, then, ya can't slap two flags in a single replace(). You need a technique. So here is my solution:
<!DOCTYPE html>
<html>
<head>โฆ More
<title>Global Case-Insensitive Technique for Javascript search() method</title>
</head>
<body>
<!--Let me know what you think abut this technique in the comments.-->
</body>
<script type="text/javascript">
var test = "Sample Text. Currently no Lorem Ipsum because 'twas common as dirt.";
var i;
for (i=1; i<(parseInt(test.length)+3); i++)
{test = test.replace(/m/i, "So");}
document.write(test);
</script>
</html>
Further Explanation:
At the "for" loop, we have set the string's length as its limit(convert it to int), as well add 2 or 3 just to play safe. The /i flag does not replace all matches, so that's why I used a loop. Play with the code for a bit, then let me know at the comments what you think.









