Jump to content

ala888

Members
  • Posts

    100
  • Joined

  • Last visited

Everything posted by ala888

  1. in the mysql manual it states that concurrent inserts only occur when no holes are present within a table? what are these 'holes' that the developers refer to? do they mean auto increment holes? if so, if a table does not have auto increment columns, does this mean it is impossible for it to have holes?
  2. basically Im asking: "how do I set a max-width property that respects the parent elements borders?" not max-width:100%, but something along the lines max-width: whatever space is left in the line
  3. when I use a block div with word-wrap:break-word; I get one giant section of text that automatically wraps around itself upon nearing the edges to the next line. However, I would like to make it so that if the text is really short, there isn't just a big giant colored background behind it. So I made it a inline-block instead. In order to prevent the Inline-block from wrapping to the next line, I used "white-space:nowrap" but now the divdoesn't even respect the borders, it just keeps on going indefinitely
  4. Hello, I did a full search on the forums and nothing on the topic came up. I want to create a thumbnail via FFMPEG from php.However, the two methods I see widespread across the internet each give me respectively only half of what I want.-s 100x100 gives me a thumbnail that is distorted while -vfilter 100:-1 leads to grossly varying dimensions of the thumbnails itself. Is there a way to achieve the best of both worlds into a seemingly "youtube" style format?Where the ratio of the original file is kept and merely scaled down to a set dimension(both x and y) and padded by black on both sides?Thanks for the help
  5. ala888

    memcaching in php

    So memcache to store a variable would be the ram equivalent of writing and reading from a textfile from disk?
  6. ala888

    memcaching in php

    So I heard about memcache and how people utilize it to store data in ram for faster access, say for example, the results of a query from a MYSQL server. But my question is, what is the point? Cant you just store the resultant data in an arbitrary variable in the php script itself, which would also be essentially in ram? Or does memcache actually keep the retrieved value across multiple php instances or something?(that would be the only reason I can think of it exists, but Im not sure about my statement)
  7. nvm, I figured it out. mysqli_errno checks for the last error in a specific connection to a database. If the connection itself did not exist due to failure, there would not be any errors
  8. So basically, Im trying to put a video file of variable size, both width and height, smack dab center of a page. The current code I have is .vid {position:absolute; top:0px bottom:0px; left:0px; right:0px; } however, I have some other content at the top of the screen that might be potentially blocked by this approach.Is there any other method to center a video file without restricting its width/height, but at the same time force it to not infringe upon the space of other elements?
  9. the die command works, except I want to do my own error handling and not terminate on the spot.mysqli_connect_errno is perfect. I just dont understand why mysqli_errno does not work. but its not a big deal
  10. To clarify my question, I am first checking if a file directory exists via file_exists in php, before creating and inserting uploaded files into it. However, since the server is a multithreaded one, I am afraid that two instances of the script might somehow check the same file name at the same type, before running into each other.
  11. it literally is just that, you can test it out yourself. If a video source file has any '#' in its name, the whole thing comes to a crashing halt. Im not so entangled as having to use the second one; but more like worried that its a manifestation of a greater problem/bug
  12. Im making a webserver that for every file received, finds a randomly generated folder name, checks if it already exists; and if it does not, it puts the files in there.But what if multiple instances are running at the same time, and by the luck of the draw, more than one batch of files gets dumped into the same folder since all the php instances though it didnt exist at the exact same time?Is there any way to prevent this?
  13. the source element within my video tag does not recognize files that have special characters in them!How do I get around this issue? <video> <source src="hello.mp4"> </video> This works <video> <source src="#hello.mp4"> </video> this doesnt why?
  14. ala888

    elastic div box

    #outer {position:relative;}#outer p:after {content: ""; position: absolute; top: 0; left: 0; right: 0; bottom:0; background-color: #CC9933; border: 2px solid red; z-index: -1;} can you explain this a little more to me? I tried it out and its not working.When I remove the innerHTML of the paragraphs "test" The div box just becomes a red line- but its still there !
  15. absolutely no error message, it doesn't return anything at all. only the php warning ("failed to connect to mysql server") that actual function msqli_errno doesnt return anything
  16. I tried substituting mysqli_connect_errno with mysqli_errno to no avail. Any Idea why it doesnt work? Is there some fundamental divide between error logging between connect functions and the rest?
  17. ala888

    FFMPEG PHP how

    Is it possible to add additional flags to existing programs? say to bypass the GUI for automation purposes? Or is this pointless if I dont have access to the source code and there is no inbuilt support for flags
  18. I've seen some individuals use the following method to validate whether or not an attempted connection to mySQL went through. $CON = mysqli_connect("localhost","root","123456","test")if($CON){......} First of all, I dont understand how an object evaluates to a boolean true. And secondly, how come mysqli_connect returns absolutely nothing when it does not work?
  19. ala888

    FFMPEG PHP how

    can the same flags be used for other programs then?
  20. ala888

    FFMPEG PHP how

    oftentimes, php users will execute ffmpeg in shell alongside a series of variables to designate a specific action that the individual wants to perform. However, I am not quite able to grasp the idea of how ffmpeg grabs the variables passed to it from shell? Is it because it contains inset capability of this? if so, could someone point me to what this type of C++/C programming feature is? Or rather, if its a capability of shell, could someone explain that to me? ffmpeg -i in.avi -codec:v libvpx -quality good -cpu-used 0 -b:v 500k -qmin 10 -qmax 42 -maxrate 500k -bufsize 1000k -threads 4 -vf scale=-1:480 -an out.webm like how does ffmpeg grab all these variables from shell?
  21. ala888

    elastic div box

    Any idea on how I can make a box with a set style(background,border) that is invisible when there is no text inside of it and is only as large as the amount of text inside of it? Ive tried not setting a width/height; but that ultimately culminates in screen scraping blocks. While the alternative, setting a fixed height/width, detracts from the original point of the "resizable" box
  22. connect already succeeded You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC) VALUES ('HI','HELLO','HAI')' at line 1 what does this mean? pretty sure syntax is right
  23. $con = mysqli_connect("localhost","root","asdsasds","test"); $SQL = " INSERT INTO info (PATH, TITLE, DESC) VALUES ('HI','HELLO','HAI') "; mysqli_query($con,$SQL) or die("######"); NURP, STILL DISPLAYING THEM ERROR MESSAGES
  24. $con = mysqli_connect("localhost","root","123456","test");$SQL = "INSERT INTO info (PATH, TITLE, DESC)VALUES ('HI','HELLO','HAI')";$con->query($SQL) or die("ERRORRRRRRR");//dies every time idk WHAT Im doing wrong. tried every method of troubleshooting. HELP!
×
×
  • Create New...