User Profile

Collapse

Profile Sidebar

Collapse
beary
beary
Last Activity: Aug 23 '20, 07:53 AM
Joined: Nov 24 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Oh right. Well initially I'm trying to get it working on wamp 2 on my local machine. But ultimately I'll be uploading to a web host's server. Sounds like you're saying that I need to make sure I choose a web host that specifically has ffmpeg installed already?...
    See more | Go to post

    Leave a comment:


  • OK. Thanks again.

    I'd appreciate anyone else who has further clues on question 3 above.
    See more | Go to post

    Leave a comment:


  • Thanks for your quick answer. More questions.

    1) Is this the only accepted (or possible) way of doing what I need?

    2) When you say codecs, do you mean the H264, VP8 and Theora video codecs and the AAC and Vorbis audio codecs?

    3) For a newbie (to this) like me, are there any good instructions for how to install ffmpeg and the codecs on a server? I've designed large php/mysql websites before, just never...
    See more | Go to post

    Leave a comment:


  • beary
    started a topic convert video to html 5 format while uploading

    convert video to html 5 format while uploading

    Hope this is the right category.

    Let's say a site is designed to allow a user to upload a video. The video will later be accessed by the user or others.

    My understanding is the 3 formats are mp4, webm and ogg. If the user's video is in, say, avi or wmv format (or something other than the html 5 formats), is it essential for the user to convert the video themselves before upload, or can this somehow be done on the fly...
    See more | Go to post

  • beary
    replied to Website showing wrong time
    in PHP
    Thanks. I discovered that even though I had a pph.ini file in the root folder, php wasn't looking at that file. I changed the main ini file and it worked fine.
    See more | Go to post

    Leave a comment:


  • beary
    started a topic Website showing wrong time
    in PHP

    Website showing wrong time

    Hi,

    My php website is showing the wrong time. I don't think it's a timezone thing. The website is running purely on my local machine under localhost. It's around 10 hours slow, which means when I login this morning, Monday morning, the date shows up as Sunday still.

    In my php.ini file, I have

    date.timezone = Australia/Hobart

    But I'm wondering whether there's some other setting I'm not...
    See more | Go to post

  • beary
    replied to Divs not aligning vertically
    drhowardfine, You are an absolute lifesaver. Thankyou so much for the fix and the theory behind it as well. Works exactly as required now.

    Cheers
    See more | Go to post

    Leave a comment:


  • beary
    replied to Divs not aligning vertically
    Hey there drhowardfine

    Thanks for your quick reply. I added float:left to each div, but it hasn't quite fixed the issue. I'll show you the code I have now and also attach an image of what has resulted. As you can see, there are a couple of things that don't seem to work and which I don't understand why (I freely confess I'm not an expert here).

    Div A, B and C are now aligned correctly. However, the div inside which...
    See more | Go to post

    Leave a comment:


  • beary
    started a topic Divs not aligning vertically

    Divs not aligning vertically

    Hi,

    Below is a small piece of html. I'm using FF 3. It's of two divs. Inside the first Div are three divs: div A, div B and div C. Everything does what I need except that div B appears below div A and div C appears below div B. I need all three of div A, B and C to begin at the same vertical height.

    Would someone mind telling me what I need to tweak to make this happen?

    Code:
    <html>
    <head>
    ...
    See more | Go to post

  • beary
    replied to fush not flushing as expected
    in PHP
    Yes, I also figured the image header might have something to do with it. Does anyone know for sure?
    See more | Go to post

    Leave a comment:


  • beary
    started a topic fush not flushing as expected
    in PHP

    fush not flushing as expected

    Hi,

    Can someone please tell me why the code below is not flushing as I want it to? I need it to put a dot on the screen every second. All it's doing is echoing the whole thing at the end of 20 seconds. php.ini output_bufferin g is set to 0. Thanks.

    Code:
    <?php
    header("Content-type: image/png");
    $im = imagecreatetruecolor(600, 600);
    
    $white = imagecolorallocate($im, 255, 255, 255);
    ...
    See more | Go to post

  • beary
    replied to arrow keys in html form
    Hi RamananKaliraja n

    Thanks for your work on this. It's fantastic. It now works perfectly in IE. However, it doesn't work in FF, Safari, Chrome or Opera. I should note that the up/down arrowing works fine. It's the left/right arrowing that is the problem. Obviously I'd like to have it working in them too, or it won't be viable. I've included the error message for each browser below. If you know of a way to fix these I'd appreciate it....
    See more | Go to post

    Leave a comment:


  • beary
    started a topic arrow keys in html form

    arrow keys in html form

    Hi

    Being tested using FF 3 on WAMP server. I have spent a number of hours trying to figure this out myself.

    I have a html form using table cells and had a request to enable the arrow keys on a keyboard to move through the cells. I found some code and adapted it, and it works well now. Arrow keys move the cursor exactly to the correct cell. There are two things I can't do which I was hoping you guys would give me some...
    See more | Go to post

  • beary
    replied to will this if logic work?
    in PHP
    Moltendorf,

    Thanks muchly for your reply. I'll certainly change the rand part. I also like the idea of avoiding the while loop altogether.Did you have anything in mind for accomplishing that (guaranteeing it gets a unique result on the 1st try)?...
    See more | Go to post

    Leave a comment:


  • beary
    started a topic will this if logic work?
    in PHP

    will this if logic work?

    I have some code to generate a string of 3 letters followed by 3 numbers. The idea is that it generates a string, then looks in a mysql db to make sure the string doesn't exist, and if it doesn't, it accepts the code. Can anyone tell me whether the logic is sound? In other words, if it finds a match of the string in the db, will it make a different string? The code is

    Code:
    	$success='n';
    	while($success=='n')
    		{
    ...
    See more | Go to post

  • beary
    started a topic Send error to email from php.ini
    in PHP

    Send error to email from php.ini

    Using php 5
    I have access to my own php.ini file on the server

    I want to send any and all php errors to an email address

    I tried changing the line error_log = error_log to

    error_log = ("PHP error", 1, "myemail@mydoma in.com")

    but it hasn't worked. I basically just would like to know what my oho.ini file needs to have in order to send an email rather than logging...
    See more | Go to post

  • beary
    beary posted a Visitor Message for mideastgirl
    Hey mideastgirl,

    Did you sort the code problem out? Sometimes people here can be rather unhelpful. If you're still stuck, let me know. I remember being about where I think you are with php 3 years ago. It took a long time before I "got" what everyone else found so easy.

    Let me know

    beary
    See more | Go to post

  • beary
    replied to Prevent form running for one particular user
    in PHP
    Right. I understand what you've said, but doesn't this just get me back to where I started, of still having to have an if statement at every point on the site where a decision is to be made? That's what I was trying to avoid... (unless I've misunderstood)...
    See more | Go to post

    Leave a comment:


  • beary
    replied to Prevent form running for one particular user
    in PHP
    Thanks Markus for your code example. Dan, could you please say a little more about the config file idea? What does it involve?

    Thanks...
    See more | Go to post

    Leave a comment:


  • beary
    started a topic Prevent form running for one particular user
    in PHP

    Prevent form running for one particular user

    Hi,

    hope this is in the right topic...

    Running php5 on apache. I've setup a site where people can login as "demo", "demo" and play around with the functions of the site. Part of the functionality involves uploading files, deleting/editing using standard form fields and storing data in Mysql.

    I want people *not* to be able to delete things, or upload files bigger than 100KB when they're...
    See more | Go to post
No activity results to display
Show More
Working...