Search found 7929 matches

Actual Results

Post Posted: October 19th, 2014, 9:59 pm

Here is the code generating the MP3 file [php]<?php // Starting the session so we could access the session variables session_start(); // Including our mp3 stitching class include_once('stitch_mp3.php'); // The captcha word we are making the audio for $captcha = $_SESSION['stuff']; // ...

Post Posted: October 19th, 2014, 9:15 pm

I think the issue I'm having would be more evident (more understandable) if you open that page in Firefox and in IE11 (or chrome), and then play the audio for the first generated captcha (in both browsers) and then reload the page (in both browsers) and then listen to the audio again (in both browse...

Post Posted: October 17th, 2014, 9:46 pm

That makes sense... what got me confused though, is the following:
PHP Code: [ Select ]
$s = $start = $this->start($contents);
if($s === false)
    return false;
    $contents = substr($contents, $start);
  1. $s = $start = $this->start($contents);
  3. if($s === false)
  4. {
  5.     return false;
  6. }
  7. else
  8. {
  9.     $contents = substr($contents, $start);
  10. }

It seems like the script is expecting both of those variables to hold different things...

Post Posted: October 16th, 2014, 7:37 pm

It's not the audio creating script. As it turns out, it has to do with the way Firefox reads HTML5 tags...

HTML5 either caches the created audio file or something, but it works if I just open audio.php on it's own

Post Posted: October 16th, 2014, 5:57 pm

I'm creating an audio extension to the captcha's I've created before. The audio thing is all created and everything like that, the only thing is, is when I refresh the page and generate a new captcha image, the audio file doesn't seem to be refreshing... Here is the example of what I'm talking about...

Post Posted: October 16th, 2014, 5:12 pm

I'm working on a project, and during searching for something for the project, I ran across the following line of code:
PHP Code: [ Select ]
$s = $start = $this->start($contents);
What I don't understand is why does it have two variables and two equal signs? What does/would '$s' hold and what does/would '$s...

Post Posted: October 16th, 2014, 4:45 pm

I've never used CKEditor before, but I don't think it comes by default with the capabilities of keeping original formatting of pasted text from Word.

You're in luck though, as there is a plugin for that for CKEditor. Hope this helps :thumbsup:

Post Posted: October 10th, 2014, 2:30 am

coding problems.jpg

Most can relate

Post Posted: May 13th, 2014, 10:32 pm

You're right... none are necessarily the 'right' way, but I'm hoping to find the best way. One thing about being self-taught is that you miss a lot of stuff when starting to learn programming so when you get to developing programs, even though you know the general idea of how to accomplish something...

Post Posted: May 13th, 2014, 4:34 pm

The thing with PDO is, I'm using MySQLi. I'm guessing it's a bit faster then PDO. Never heard of strategy pattern, though I have thought about doing it that way, but for some reason I wanted to use an abstract class instead, rather then a wrapper (kind of) class that chooses the type of mailer/db to...

Post Posted: May 11th, 2014, 9:17 pm

One thing that made me consider doing a factory (and why I chose to use it) is using a class with drivers (so to speak). For instance, I have a database abstract class with drivers... class that extends it... mysqli (with possible add-on drivers like postgreSQL, SQLlite, and so on)... these drivers ...

Post Posted: May 7th, 2014, 12:46 pm ... ivers.html

Post Posted: May 1st, 2014, 6:54 pm

Hehe didn't know you could do that. Thanks :D

Works great now, thanks.

Post Posted: May 1st, 2014, 11:20 am

To get a serial key for Cybersieve 3.0 you're supposed to purchase a license . If you are going through a router (have wifi) then most routers have parental controls built into them... you can block pages with certain terms in them, you can block specific URLs... every parental control system is dif...

Post Posted: May 1st, 2014, 11:14 am

I just tried that and it still blinks on and then off... I went to CMD and typed the following.

cd C:\Sources

start hello.exe

It opened the program but immediately turned it off

Post Posted: April 30th, 2014, 5:39 pm

Now the problem is, I run hello.exe and it opens a command prompt with Hello World written in there, and immediately turns off... I guess that is normal behavior, but how does the other programs that run are not closed off immediately? The same with everything... once it gets to displaying something...

Post Posted: April 30th, 2014, 5:34 pm

Ok, so I've removed cygwin and installed MinGW, but... I don't have G++ or GCC? I run g++ hello.c -o hello.exe and I get that 'g++' is not recognized as a command, operable program or a batch file... I obviously run that in the folder where hello.c resides in... maybe I did something wrong... I don'...

Post Posted: April 28th, 2014, 5:06 pm

What would she need to edit? Colors? Organization? Or just add/remove pictures and edit their properties/details?

How big would it be?

Post Posted: April 28th, 2014, 4:34 pm

Touch devices are much different then desktops, laptops or anything that uses a mouse in a way that web browsing experience changes in touch devices. One reason why that is true is because touch devices don't have hover events (onmousehover, onmouseblur) or anything like that... a touch is equal to ...

Post Posted: April 27th, 2014, 9:42 pm

I want to strengthen my web designing skills as well as I really suffer in this area. I don't know on which topics to search to be able to start... mainly, I don't know where to start. I also want to study a bit more on how to create the navigational/GUI aspect of web sites... I seem to do/try diffe...

Post Posted: April 24th, 2014, 10:48 pm

Which fonts could I use (without the need of any license or anything) in my scripts if I plan on redistributing my code? I've Googled royalty free fonts but I didn't find any decent ones for the captcha scripts I've created... At the moment I'm using: ⋅ arial ⋅ arialbd ⋅&nbs...

Post Posted: April 24th, 2014, 10:33 pm

Did you fix the problem? Did you clear your dns cache? start > run > cmd > ipconfig /cleardns I have this problem where if I loose internet connection, my router redirects me to the router diagnostics page no matter what URL I type (usually happens to since that is my home page)....

Post Posted: April 22nd, 2014, 7:24 pm


Nice! Lol

Post Posted: April 22nd, 2014, 6:44 pm

Oh, that makes sense now... thanks. I did think about doing it without a loop, but at first I was doing with three numbers instead of two (2+3-4 instead of 2+3), so that is why I started off with a loop, but I think it would be faster without the loop (and better on bandwidth).

Post Posted: April 22nd, 2014, 12:31 pm

Thanks, that seems to work... the thing though, I still don't understand why my way didn't work originally.

Post Posted: April 22nd, 2014, 12:18 pm

None really, more of a learning experience for me. Create a system and then work on making it faster and better. It's not a project I'm working for someone, it's something I started myself for the sake of strengthening my PHP knowledge (while I learn C). Also I'm in more power of how things work if ...

Post Posted: April 22nd, 2014, 1:31 am

I'm having problems getting my PHP to do simple math... such as add and subtract. I'm pretty sure it has to do with the logic of my code, but for the life of me, I can't seem to figure it out!! Any help? [php]<?php function generate_math() { // Initiating some variables used in the $i = 0; $int =...

Post Posted: April 21st, 2014, 11:17 pm

Here is the correct code... [php]<?php class math { // The captcha answer session name public $captcha_session = 'captcha'; // Available fonts private $fonts = array('arial', 'arialbd', 'arialbi', 'ariali', 'ariblk', 'bnjinx', 'bobcat', 'candles_', 'micross', 'narrow', 'neon2' ); // The directory...

Post Posted: April 21st, 2014, 10:42 pm

Nevermind, I figured it out!! :D In generate_content(); I used $this->color['..'] where it should be $this->color s ['...']. And also, the following function helped me solve the problem where some of the fonts in the font array were written wrong (oops... I tried my best). [php] public functio...
  • Sort by

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.