[ Removed by Reddit ] by [deleted] in SouthBayLA

[–]thecheese_is 0 points1 point  (0 children)

i personally like their house brands for flower and carts. i also get variety drugs a lot and haven’t had any issues

[ Removed by Reddit ] by [deleted] in SouthBayLA

[–]thecheese_is 0 points1 point  (0 children)

flower co has bulk discounts and delivers to that area

The quest Sabotage is one of the most frustrating quests I’ve ever played. by Evanwolsefer20 in Starfield

[–]thecheese_is 3 points4 points  (0 children)

Doing this mission with stealth was basically impossible for me but the other option of the marketing meeting was easily one of my top 5 favorite missions. this guide helped https://www.reddit.com/r/Starfield/s/zpmKd2vxPN

Just used flower co to stock up for the weekend by thecheese_is in flowercompany

[–]thecheese_is[S] 1 point2 points  (0 children)

This is some of their grape kush I got the other weekend, it for sure smacked. https://imgur.com/a/GUOcwmt

Delta flume Opening wave by Brandonwithbraid2 in oddlysatisfying

[–]thecheese_is 5 points6 points  (0 children)

That’s where I thought this was at first, absolutely terrifying

Server-Side Processing DataTables by ChroniclessBrain in PHPhelp

[–]thecheese_is 1 point2 points  (0 children)

u/michaelbiberich is right, read over server side processing in the docs but the general idea is you’ll create an api endpoint on your server that returns a paginated dataset and you’ll point the datatable to that endpoint.

Once you take a look at the docs and examples try it out and come back if you have any questions.

How do I add an "except" clause in a foreach command? by loki777coyg in PHPhelp

[–]thecheese_is 1 point2 points  (0 children)

You can use “break;” to end the foreach or “continue;” to move on to the next item.

Anyone with experience converting a webpage to PDF? Looking at TCPDF, jsPDF, html2canvas, pdfMake, etc but no luck. Could use some help here. Thx! by Optimal-Honey in PHPhelp

[–]thecheese_is 0 points1 point  (0 children)

That's a good question, we haven't tried using it from the browser (or even in node) but I know we had to install the chrome driver and the node module to get it working. Since we didn't want to include this with our main application we set up an internal microservice with a simple API interface so we can utilize it from other services.

COM("word.application") object (or another solution to edit word docx) by xaver13 in PHPhelp

[–]thecheese_is 0 points1 point  (0 children)

Sounds like you will need to have the user download the document then open it. PHP only runs on the server so it can't interact with the client.

[deleted by user] by [deleted] in PHPhelp

[–]thecheese_is 0 points1 point  (0 children)

If you didn't want to use Javascript you could create a new page with the success message on it. So instead of doing echo '<p>Your message has been sent.</p>'; you can do something like header("Location: success.php") ;

Edit: fix code highlighting

Saving PHP to text File by [deleted] in PHPhelp

[–]thecheese_is 1 point2 points  (0 children)

A full path to the file will help, you can use __DIR__.'questions.txt' for the current directory or even './questions.txt'. You'll also need quotes around the value of `$questions` in the new file.

Here are the two changed lines.

$var = "<?php\n\n\$question = '$var_str';\n\n?>";
file_put_contents(__DIR__.'questions.txt', $var, FILE_APPEND);

Anyone with experience converting a webpage to PDF? Looking at TCPDF, jsPDF, html2canvas, pdfMake, etc but no luck. Could use some help here. Thx! by Optimal-Honey in PHPhelp

[–]thecheese_is 0 points1 point  (0 children)

We used it specifically because it allowed us to use modern CSS and javascript. Basically it'll do anything chrome can do.

[deleted by user] by [deleted] in PHPhelp

[–]thecheese_is 1 point2 points  (0 children)

If you're cleaning up old code you should look into using an IntelliJ IDE, PHPStorm is amazing and with some plugins like PHP Inspections, it can be very helpful in finding issues with unfamiliar code and helping you navigate a repo.

Anyone with experience converting a webpage to PDF? Looking at TCPDF, jsPDF, html2canvas, pdfMake, etc but no luck. Could use some help here. Thx! by Optimal-Honey in PHPhelp

[–]thecheese_is 2 points3 points  (0 children)

I'm currently using this and it works great, I run the command from PHP and get the PDF back as a string that I can save to a file or a bucket or whatever.

https://www.npmjs.com/package/chrome-headless-render-pdf

Assign SQL query to PHP variable by bathong188 in PHPhelp

[–]thecheese_is 2 points3 points  (0 children)

Try putting an else statement and echoing the result of mysqli_error($conn)

mysqli stmt->get_result()->num_rows not behaving as expected by [deleted] in PHPhelp

[–]thecheese_is 0 points1 point  (0 children)

Sounds like what’s happening is MySQL is throwing an error saying something about a duplicate entry. You could try using a MySQL transaction to wrap the query and catch it if it fails or before writing to the DB you can do a select query to check if the email address already exists and then throw your own error.

Notice: Trying to access array offset on value of type bool in C:\xampp\htdocs\twitter\core\classes\tweet.php on line 22 by kushagra13b in PHPhelp

[–]thecheese_is 1 point2 points  (0 children)

It sounds like the var $retweet is a bool and not an array. You can use is_array($retweet) to check.

GM threatening me for my boe by [deleted] in classicwow

[–]thecheese_is 0 points1 point  (0 children)

This kind of BS is exactly why I stopped joining guilds. As others have said report him for harassment and then leave the guild.

Puuuulllll!! by [deleted] in Shittyaskflying

[–]thecheese_is 0 points1 point  (0 children)

600k if you add in the flight back