Jump to content

requinix

Administrators
  • Posts

    15,227
  • Joined

  • Last visited

  • Days Won

    427

Everything posted by requinix

  1. So your working code really has ".$name" in it? That is bad. Stop doing that. Use one table for the records from all users. The change should be simple: create one table with a name, add a column for the user ID (or if you don't have one, the name), and add appropriate WHERE conditions in the places you need that. What does "not working" mean? What does it do? What does it not do? What do you expect to see happen?
  2. Could be the syntax error in your SQL. Could be the table doesn't exist. Could be the table exists but doesn't have the right columns or types. Could be something related to earlier code which obviously exists but you decided not to show us.
  3. Help with what, exactly? What have you tried so far and what problem are you having with it?
  4. Note that your logic is wrong, so you'll have to change something.
  5. Sounds like you have two conflicting versions of FontAwesome. Get rid of one of those. It doesn't make sense to have two different copies. Figure out which is older and remove it, then fix the page it was being used be to work with the newer version. The specific icon you're dealing may have been added or removed between those two versions. Check the online documentation/icon list to see what is actually available. Otherwise I can't see what pages are working or not, I can't see what icons are working or not, I can't see what versions of FontAwesome you have or not...
  6. "Probably"? Get rid of one of them and see if that breaks a page. If it does, fix the page and see if that also resolves the icon problem.
  7. It should be very easy to find out if you're using two different font-awesome files by checking if you even have two font-awesome files. Is this site viewable somewhere?
  8. Creating your own attribute class will only work if Doctrine supports scanning custom attribute classes. I wouldn't really expect it to. What I mean by copying is, if you've got something in a parent class with attributes and you want to extend it in a child class, copy it with its attributes and then add whatever else you want to it. class ParentClass { #[FooAttribute] protected $foo; } class ChildClass extends ParentClass { #[FooAttribute] #[BarAttribute] protected $foo; }
  9. Copy/paste the whatsits. Attributes. Whatever.
  10. Locking because your other thread covers this same topic.
  11. Check the php.net documentation for a method that will allow PHP to ignore the file upload if it's too large. Hint: it's a hidden input in your <form>. That will only take effect after the file has been uploaded.
  12. You want to use PHP to compress the file... before it's uploaded? If you need to allow files of a certain size then change your PHP settings to allow files of a certain size.
  13. Depending on Doctrine you might be able to daisy-chain a few attributes together into an inheritance hierarchy. Personally, I would just copy/paste the annotations from the parent class.
  14. https://3v4l.org/nEML3#v8.0.9 When you redefine a property you redefine the property.
  15. Are you asking about how to download five separate PDF files? As in my browser says "this site is trying to download multiple files" and I acknowledge and then it downloads five files? Or to combine them together into one single PDF file that comes with one single download action?
  16. Nothing changed in PHP to make that stop working, but your PHP setup might be different. My guess what's wrong? header() only works if there hasn't been any output before it - or if you have a certain PHP setup which you really should not have. Showing the result in the browser means the Content-Disposition header was not sent, meaning there was some output. Probably a blank line or BOM. Make sure the <?php is at the very beginning of the file and there is no output of any kind after it. Also make sure your editor is not saving the .php file with a UTF-8 BOM.
  17. Trying to imagecreatefrompng() with an uploaded file will only work if the uploaded file was a PNG image. Use getimagesize() to detect whether the file is an image and, if so, what type it is.
  18. Not exactly the best library I've ever seen... Try changing $TagData['id3v2']['ETCO'] = [ to $TagData['id3v2']['event_timing_codes'] = [
  19. I don't see how that can be... What's the full code you have, covering the part where you set up the tag data and the part where you use the library to write it, as well as everything in between?
  20. Pull up your local copy of getID3's write.id3v2.php, jump down to the section about ETCO, and edit the first line of if (!$this->ID3v2IsValidETCOevent($val['typeid'])) { $this->errors[] = 'Invalid Event Type byte in '.$frame_name.' ('.$val['typeid'].')'; } elseif (($key != 'timestampformat') && ($key != 'flags')) { to be if (is_array($val) && !$this->ID3v2IsValidETCOevent($val['typeid'])) { You know. For the fun of it. When you say it doesn't write tags, does it not write any tags? Or writes tags except for the ETCO? What if you omit the ETCO tag and try to do everything else?
  21. Seconds apart and similarly phrased!
  22. Unless you need something immediately, I would wait on your issue. Looks like the author is still active.
  23. File uploads do not go in $_POST. They go in $_FILES. https://www.php.net/manual/en/features.file-upload.post-method.php
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.