我有这个PHP代码:
function ShowFileExtension($filepath)
{
preg_match('/[^?]*/', $filepath, $matches);
$string = $matches[0];
$pattern = preg_split('/\./', $string, -1, PREG_SPLIT_OFFSET_CAPTURE);
if(count($pattern) > 1)
{
$filenamepart = $pattern[count($pattern)-1][0];
preg_match('/[^?]*/', $filenamepart, $matches);
return strtolower($matches[0]);
}
}
Run Code Online (Sandbox Code Playgroud)
如果我有一个名为的文件my.zip,则此函数返回.zip.
我想反过来,我希望函数在my没有扩展名的情况下返回.
该文件只是变量中的一个字符串.
这与我的上一个问题有关.我在列表中创建了一个新的两列,一个用于组合视图views_point(每100个视图递增一次),另一个用于发布日期publishedon_hourly(仅按年 - 月 - 小时),以创建一些唯一值.
这是我的新表:
CREATE TABLE IF NOT EXISTS `listings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(1) NOT NULL DEFAULT '1',
`hash` char(32) NOT NULL,
`source_id` int(10) unsigned NOT NULL,
`link` varchar(255) NOT NULL,
`short_link` varchar(255) NOT NULL,
`cat_id` mediumint(5) NOT NULL,
`title` mediumtext NOT NULL,
`description` mediumtext,
`content` mediumtext,
`images` mediumtext,
`videos` mediumtext,
`views` int(10) unsigned NOT NULL DEFAULT '0',
`views_point` int(10) unsigned NOT NULL DEFAULT '0',
`comments` int(11) …Run Code Online (Sandbox Code Playgroud) 我有一个包含以下列的表:
id,name,age,surname,lastname,catgory,active
Run Code Online (Sandbox Code Playgroud)
代替: SELECT name,age,surname,lastname,catgory FROM table
我怎么能做这样的事情: SELECT * FROM table [but not select id,active]
我有这张桌子(500,000排)
CREATE TABLE IF NOT EXISTS `listings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(1) NOT NULL DEFAULT '1',
`hash` char(32) NOT NULL,
`source_id` int(10) unsigned NOT NULL,
`link` varchar(255) NOT NULL,
`short_link` varchar(255) NOT NULL,
`cat_id` mediumint(5) NOT NULL,
`title` mediumtext NOT NULL,
`description` mediumtext,
`content` mediumtext,
`images` mediumtext,
`videos` mediumtext,
`views` int(10) unsigned NOT NULL,
`comments` int(11) DEFAULT '0',
`comments_update` int(11) NOT NULL DEFAULT '0',
`editor_id` int(11) NOT NULL DEFAULT '0',
`auther_name` varchar(255) DEFAULT NULL,
`createdby_id` int(10) …Run Code Online (Sandbox Code Playgroud) 在twitter中这是正常的

这是悬停的光芒

有没有jquery插件或代码或css效果可以做到这一点
我正在尝试使用阿拉伯语外部字体:
@font-face {
font-family: "My";
src: url(GE_SS_TV_Bold.otf) format("truetype");
}
p.customfont {
font-family: "My", Verdana, Tahoma;
}
Run Code Online (Sandbox Code Playgroud)
它看起来像这样:
但它应该看起来像: