php Questions
2
Solved
5
Solved
I want to validate a 12-Hours time format like (01:05 PM) in PHP, Javascript and HTML.
I tried this:
((([1-9])|(1[0-2])):([0-5])(0|5)\s(A|P)M)
But I don't know why it doesn't work.
Bohemia asked 27/2, 2016 at 8:40
3
Solved
The database I'm working on has more than 100 tables, so I'm not going to sit here baking a model and controller for each one individually. I would like to bake all of the tables at the same time w...
Pounds asked 19/9, 2013 at 15:44
4
I am trying to get the current user in my laravel vue application. And whenever I trie to get it i am getting this error:
Symfony\Component\Routing\Exception\RouteNotFoundException:
Route [login]...
Nuncle asked 12/10, 2021 at 0:21
5
Solved
I've installed composer globally (and locally - just for testing) according to https://getcomposer.org/download/
Then, I'm trying composer create-project laravel/laravel and I receive an error:
co...
V1 asked 27/5, 2021 at 12:22
4
Solved
I've got an API I'm working with that accepts a call every 5 seconds, any more than that it wont respond. In each call it will accept 5 records in a batch. I've got a list of 1000s of records that ...
9
Solved
Im very new to laravel applications.What im trying to do is developing an outlook web addon that uses the API written in laravel . The problem here is ,it produces the CORS error while accessing AP...
Cithara asked 22/6, 2020 at 8:30
4
Currently I am building rest API using Laravel. For authentication, I am using the Sanctum package. Every time a user is logged in it generate a token that looks like this:
"token": "...
Region asked 7/9, 2021 at 6:37
2
Solved
I have a BLOB image that is stored when the user submits an advert form, they have the choice of uploading one image. The image is stored in the database with the other information.
Every time my ...
7
Solved
I have this code:
$rows = array();
$res = mysql_query($someQuery);
if(!mysql_errno())
while($row = mysql_fetch_assoc($res))
$rows[] = $row;
$someQuery is an arbitrary query that I write in to...
3
Solved
I have a PHP application running on docker and based on php:7.3-alpine3.9
For a big form, I am posting more than 1000 inputs, and I not only I get the error
Warning: Unknown: Input variables exce...
Expecting asked 8/8, 2019 at 13:40
5
Solved
I'm using the following code to display a 'previous posts' link on my Wordpress blog.
<nav>
<ul>
<li><?php previous_posts_link('Newer Entries &raquo;') ?></li>...
Tradescantia asked 27/4, 2010 at 17:21
3
Solved
I pass the location of the php file that contains the following code as parameter to the viewer.html file and it is displayed correctly but when clicking the download button in the pdf viewer the d...
8
I am new in both php and mysql. I want to create a dynamic table that will have all fields from table in mysql database. I am trying to get all column names in an array but fail to do. I am trying ...
3
Solved
We have a bunch of products with either:
No price
Zero price
We made them purchasable with the built-in hook but the cart still displays them as having a 0 price during checkout.
We'd like the...
Banwell asked 27/6, 2016 at 15:4
3
Solved
when I try to restart the apache server I got following response.
Redirecting to /bin/systemctl start apache2.service
Failed to start apache2.service: Unit not found.
2
Solved
I am using active records to access the database. However, an additional feature requires me to use standard SQL query. Is it possible to use both active records and standard SQL query in the same ...
Least asked 4/6, 2011 at 23:0
3
Solved
There are many PHP solutions and WP plugins, they all come with additional options that I don't want/need, i.e. how the converted files are served, where they are stored, etc.
I need none of all th...
2
Solved
I've created a package (innovareti/password-policy) and now I am trying to install it, but it is not found:
$ composer require innovareti/password-policy
...
[InvalidArgumentException]
Could not...
Ferriferous asked 2/12, 2022 at 1:40
2
Solved
I am using Laravel 5.8 .
I use Nikto to scan my site, I saw these issues.
Cookie XSRF-TOKEN created without the httponly flag
How do I patch these issues in my Laravel Site ?
I've tried , but it ...
Brigitta asked 2/1, 2020 at 19:27
4
I have a users table and a permissions table. It's a many-to-many relationship so I also have a users_permissions table with a user_id & module_permission_id column.
The user model has the fol...
Visitation asked 30/5, 2017 at 10:2
2
I want to connect to a secured site using PHP cURL. The site owners gave us four files:
sitename.key
sitename.p12
sitename.pem
icom-live-ca.pem
And the PEM pass phrase.
$curl_resource = curl_i...
4
I am using inertiajs/inertia-laravel 0.6.3 with Laravel 8.40.
I get this response every time I run my test, and I have checked everything. Sometimes, I use Assert instead of AssertableInertia.
If s...
5
Solved
I am using mPDF to save form input data to PDF. For English, it is working fine. Anyone can use this code to save HTML Form data to PDF.
Issue: In order to fulfill my project requirement I need to...
Activity asked 31/10, 2017 at 13:44
4
Solved
I would like to display the default product attributes form value and it's regular price in my front end template file.
The var_dump below shows options in an array. I Need to get the [default_attr...
Josephinejosephson asked 9/12, 2017 at 10:37
© 2022 - 2024 — McMap. All rights reserved.